open-mmlab / mmfashion

Open-source toolbox for visual fashion analysis based on PyTorch
https://open-mmlab.github.io/
Apache License 2.0
1.24k stars 281 forks source link

FileNotFoundError: file "/mmfashion/configs/attribute_predict/global_predictor_vgg_attr.py" does not exist #150

Open maizer2 opened 2 years ago

maizer2 commented 2 years ago

python demo/test_attr_predictor.py --input demo/imgs/attr_pred_demo1.jpg

Traceback (most recent call last):
  File "demo/test_attr_predictor.py", line 62, in <module>
    main()
  File "demo/test_attr_predictor.py", line 38, in main
    cfg = Config.fromfile(args.config)
  File "/opt/conda/lib/python3.7/site-packages/mmcv/utils/config.py", line 341, in fromfile
    use_predefined_variables)
  File "/opt/conda/lib/python3.7/site-packages/mmcv/utils/config.py", line 183, in _file2dict
    check_file_exist(filename)
  File "/opt/conda/lib/python3.7/site-packages/mmcv/utils/path.py", line 23, in check_file_exist
    raise FileNotFoundError(msg_tmpl.format(filename))
FileNotFoundError: file "/mmfashion/configs/attribute_predict/global_predictor_vgg_attr.py" does not exist

change '/mmfashion/demo/test_attr_predictor.py' file 29 line

# default='configs/attribute_predict/global_predictor_vgg_attr.py')
default='configs/attribute_predict_coarse/global_predictor_vgg_attr.py')