youqingxiaozhua / APViT

PaddlePaddle and PyTorch implementation of APViT and TransFER
Apache License 2.0
38 stars 10 forks source link

import error #6

Closed xiaohoua closed 1 year ago

xiaohoua commented 1 year ago

Hi,I get an error when i run tools/test.py. the error is : ImportError: cannot import name 'wrap_fp16_model' from 'mmcls.core' I can't find 'wrap_fp16_model' in 'mmcls.core'. I would be appreciated if you could help me!

xiaohoua commented 1 year ago

DO i need to run train.py firstly?

youqingxiaozhua commented 1 year ago

No, it does not need to retrain the model for testing. Could you please provide more context details about the error message? For example, which line raised this error?

xiaohoua commented 1 year ago

line 13 in test.py ( from mmcls.core import wrap_fp16_model)

youqingxiaozhua commented 1 year ago

I guess it may be caused by an incompatible mmcls installation. Did you install mmcls manually? Try to run pip uninstall mmcls,and try again.

xiaohoua commented 1 year ago

thanks for your patient answer. I solve this problem by delete mmclassification i used downloaded. But there is another problem about the dataset RAF-DB。I had send email to get this dataset.But it dosen't reply. So may I ask if you keep a copy of RAF-DB data there? If so, would it be convenient to send it to me? there are my email : 332858@whut.edu.cn 2889608379@qq.com I am looking forward to receiving your reply!