Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Namespace' object has no attribute 'train_datasets' #92

Open
ForawardStar opened this issue Mar 11, 2022 · 2 comments
Open

Comments

@ForawardStar
Copy link

ForawardStar commented Mar 11, 2022

When I launched the 2nd stage training using :

horovodrun -np 4 python pretrain_vcr.py --config config/pretrain-vcr-base-4gpu.json \
    --output_dir $PRETRAIN_VCR_EXP

An error occured, which is:

Traceback (most recent call last):

File "pretrain_vcr.py", line 560, in <module>

main(args)

File "pretrain_vcr.py", line 205, in main

all_dbs = [db for datasets in [opts.train_datasets, opts.val_datasets]

AttributeError: 'Namespace' object has no attribute 'train_datasets'

How to fix this problem? Thanks.

@linjieli222
Copy link
Collaborator

train_datasets is indeed in opts (which is loaded from config)

"train_datasets": [

@ForawardStar
Copy link
Author

ForawardStar commented Mar 16, 2022

Thanks for your reply! It is helpful to me. Here I want to launch the first stage pre-training on COCO, Visual Genome, CC, and SBU. Can your provide the linking for downloading CC, and SBU? If their sizes are too large, can you simply provide the .db file of text input, or the scripts for producing such .db file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants