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

how to solve this problem? #18

Open
Steven-Xiong opened this issue May 15, 2021 · 1 comment
Open

how to solve this problem? #18

Steven-Xiong opened this issue May 15, 2021 · 1 comment

Comments

@Steven-Xiong
Copy link

While training python train.py --config configs/config.py , I meet this problem:

Traceback (most recent call last):
File "train.py", line 150, in
main()
File "train.py", line 55, in main
train(config, device, args.save_checkpoint)
File "train.py", line 101, in train
train_dataset, val_dataset, test_dataset = make_dataset(config, train_transform, val_transform)
File "/home/xiongzhexiao/light-weight-face-anti-spoofing-master/utils.py", line 177, in make_dataset
datasets = get_datasets(config)
File "/home/xiongzhexiao/light-weight-face-anti-spoofing-master/datasets/database.py", line 67, in get_datasets
'external_train': partial(external_reader, **config.external.train_params),
File "/home/xiongzhexiao/anaconda3/lib/python3.8/site-packages/attrdict/mixins.py", line 80, in getattr
raise AttributeError(
AttributeError: 'AttrDict' instance has no attribute 'train_params'
I have changed the root dir of the three datasets.

@manhdoan291
Copy link

error is easy. I have fixed. you can ignore 'external_train': partial(external_reader, **config.external.train_params)

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