-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Namespace' object has no attribute 'cache' #57
Description
When I tried to run the custom dataset, by creating the EXP file like shown in tutorial , this error occur.
File "/mnt/d/PycharmProjects/YOLOX/YOLOX/yolox/core/launch.py", line 98, in launch
main_func(*args)
│ └ (╒══════════════════╤════════════════════════════════════════════════════════════════════════════════════════════════════════...
└ <function main at 0x7f4d8504f9d0>
File "tools/train.py", line 100, in main
trainer.train()
│ └ <function Trainer.train at 0x7f4d867fdc10>
└ <yolox.core.trainer.Trainer object at 0x7f4d85055e20>
File "/mnt/d/PycharmProjects/YOLOX/YOLOX/yolox/core/trainer.py", line 70, in train
self.before_train()
│ └ <function Trainer.before_train at 0x7f4d85031430>
└ <yolox.core.trainer.Trainer object at 0x7f4d85055e20>
File "/mnt/d/PycharmProjects/YOLOX/YOLOX/yolox/core/trainer.py", line 149, in before_train
cache_img=self.args.cache,
│ └ Namespace(batch_size=1, ckpt='pretrained/yolox_s.pth', devices=1, dist_backend='nccl', dist_url=None, exp_file='exps/example/...
└ <yolox.core.trainer.Trainer object at 0x7f4d85055e20>
AttributeError: 'Namespace' object has no attribute 'cache'