Open hinneslung opened 4 years ago
The pretrained checkpoint --checkpoint checkpoint/landmark/resnet50.pth
you used is wrong. This is the model to do landmark prediction, not the model to do category and attribute prediction. Please download the right one from the Model Zoo.
Would you mind reviewing the links in model zoo md? I am downloading https://drive.google.com/file/d/1zsgxJAkdumpw4uDkapb1Ulq-aG1Hwz45/view?usp=sharing shown under https://github.com/open-mmlab/mmfashion/blob/master/docs/MODEL_ZOO.md#category-and-attribute-predictionfine
I got same problem.....
you can change the landmark size to [1, 8, 2] to get the code run https://github.com/open-mmlab/mmfashion/blob/master/demo/test_cate_attr_predictor.py#L44, but that won't give you a good result since the landmark is missing.
my understanding is the demo code needs to first predict landmark https://github.com/open-mmlab/mmfashion/issues/120
The pretrained checkpoint
--checkpoint checkpoint/landmark/resnet50.pth
you used is wrong. This is the model to do landmark prediction, not the model to do category and attribute prediction. Please download the right one from the Model Zoo.
I have downloaded the right checkpoint file, but occurs the same error.
I am using the recently added more accurate attribute predictor with landmark pooling. I placed the downloaded model in checkpoint/landmark/resnet50.pth, and a backbone resnet50 model in checkpoint/resnet50.pth, and run the below command:
And got the error:
Environment: Python 3.8.3 Package Version
addict 2.2.1
cycler 0.10.0
decorator 4.4.2
flake8 3.8.3
future 0.18.2
imageio 2.9.0
isort 5.3.0
joblib 0.16.0
kiwisolver 1.2.0
matplotlib 3.3.0
mccabe 0.6.1
mmcv 1.0.5
mmfashion 0.4.0
networkx 2.4
numpy 1.19.1
opencv-python 4.2.0.34 Pillow 7.2.0
pip 19.2.3
pycodestyle 2.6.0
pyflakes 2.2.0
pyparsing 2.4.7
python-dateutil 2.8.1
PyWavelets 1.1.1
PyYAML 5.3.1
scikit-image 0.17.2
scikit-learn 0.23.2
scipy 1.5.2
setuptools 41.2.0
six 1.15.0
threadpoolctl 2.1.0
tifffile 2020.7.24 torch 1.5.0
torchvision 0.6.0
yapf 0.30.0