KaiyangZhou / mixstyle-release

Domain Generalization with MixStyle (ICLR'21)
MIT License
268 stars 39 forks source link

Great work! But I met some issues #12

Open a791702141 opened 2 years ago

a791702141 commented 2 years ago

Great works! It can get amazing results in image classification generalization. But when I run the reid code, I met this problem:

Traceback (most recent call last): File "main.py", line 214, in main() File "main.py", line 139, in main cfg.merge_from_list(args.opts) File "/opt/conda/lib/python3.8/site-packages/yacs/config.py", line 223, in merge_from_list _assert_with_logging( File "/opt/conda/lib/python3.8/site-packages/yacs/config.py", line 545, in _assert_with_logging assert cond, msg AssertionError: Override list has odd length: ['osnet_x1_0_ms23_a0d1', 'data.save_dir', 'output/osnet_x1_0_ms23_a0d1/market2duke']; it must be a list of pairs Traceback (most recent call last): File "main.py", line 214, in main() File "main.py", line 139, in main cfg.merge_from_list(args.opts) File "/opt/conda/lib/python3.8/site-packages/yacs/config.py", line 223, in merge_from_list _assert_with_logging( File "/opt/conda/lib/python3.8/site-packages/yacs/config.py", line 545, in _assert_with_logging assert cond, msg AssertionError: Override list has odd length: ['osnet_x1_0_ms23_a0d1', 'data.save_dir', 'output/osnet_x1_0_ms23_a0d1/duke2market']; it must be a list of pairs

And another problem is I don't find how to organize the data and where to download them, should I just put Market1501 and Duke in the same folder as "data_dir"?

KaiyangZhou commented 2 years ago

The error is probably caused by a incorrect command. What command did you use?

For the datasets, you can follow Torchreid's documentation.

a791702141 commented 2 years ago

Thanks, I have solved the problem.

Nirmala891 commented 8 months ago

Thanks, I have solved the problem.

Hi, I am facing the same issue. Can you please help me out. Thanks.