Open SikandAlex opened 4 years ago
Thanks for the info. I've followed the list and fixed the final issue. You have to add that 'loss_attr' to the file in the site-package rather than to the one in the current folder which is github cloned.
The output I got looks like this
The model and loaded state dict do not match exactly
unexpected key in source state_dict: roi_pool.linear.0.weight, roi_pool.linear.0.bias, concat.fc_fusion.weight, concat.fc_fusion.bias
[ Top3 Attribute Prediction ]
sleeve
knit
striped
[ Top5 Attribute Prediction ]
sleeve
knit
striped
stripe
denim
[ Top10 Attribute Prediction ]
sleeve
knit
striped
stripe
denim
leather
lace
maxi
shirt
wash
There's still error I hope I can figure out. Not sure if that affects the accuracy of the output.
@SikandAlex same error , did you find any solution ?
i found it ..you should add loss_attr in /usr/local/lib/python3.6/dist-packages/mmfashion-0.4.0-py3.6.egg/mmfashion/models/predictor/global_predictor.py and it'll work
I think it works but the prediction confidences are pretty low.
1) Clone project
2)
pip3 install scikit-build
3)
python setup.py install
4) Download Coarse Attribute Pre-Trained Model File here [ https://drive.google.com/file/d/1bOL4GhLyBEcXgATiVcZ-g3RD8xhKsj5f/view]()
wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1bOL4GhLyBEcXgATiVcZ-g3RD8xhKsj5f' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1bOL4GhLyBEcXgATiVcZ-g3RD8xhKsj5f" -O fine.pth && rm -rf /tmp/cookies.txt
5) Download Anno_Coarse folder from here https://drive.google.com/drive/folders/0B7EVK8r0v71pWWxJeGVqMjRkUVE
Place it in the proper directory
6)
python test_attr_predictor.py --checkpoint latest.pth --input test.jpg
7) According to #86 change the
init()
method inmmfashion/mmfashion/models/predictor/global_predictor.py
and add a parameterlos_attr
8) Same error occurs
Python 3.7.7
@liuziwei7 @veralauee @hellock