ByteTrack icon indicating copy to clipboard operation
ByteTrack copied to clipboard

Namespace' object has no attribute 'cache'

Open ImSuMyatNoe opened this issue 4 years ago • 5 comments

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'

ImSuMyatNoe avatar Nov 05 '21 08:11 ImSuMyatNoe

It seems you are using a new version of YOLOX, we use the old version.

ifzhang avatar Nov 08 '21 09:11 ifzhang

@ifzhang Thank you very much for your reply. Do you use "0.1.0 release", of YOLOX?

ImSuMyatNoe avatar Nov 09 '21 01:11 ImSuMyatNoe

May I ask that How can I replace YOLOX with the new version

fu-sg avatar Jan 29 '23 13:01 fu-sg

It seems you are using a new version of YOLOX, we use the old version.where l can find the old version?

Fishsoup0 avatar Apr 06 '23 15:04 Fishsoup0