KaiyangZhou / mixstyle-release

Domain Generalization with MixStyle (ICLR'21)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Great work! But I met some issues

a791702141 opened this issue · comments

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"?

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

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

Thanks, I have solved the problem.

Thanks, I have solved the problem.

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