You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: