-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
load_checkpoint(model, checkpoint, map_location='cpu') NameError: name 'load_checkpoint' is not defined #2
Comments
It seems that the dependencies of full version are not installed correctly. Did you install |
Also, |
Closing this issue due to lack of activity. Please feel free to re-open it if you have any further questions. |
May I ask that which pytorch, mmdet and nncore version are you using? |
consnet 1.0.5 /home/jh/code/CosNet |
nncore 0.2.6 is not tested for this repo, the version we used is 0.2.4. Also, if you meet some problem when |
Hi. Thanks for the docs. I am getting the same error as faced by two others - NameError: name 'load_checkpoint' is not defined. I did install consnet from the source and didn't do pip install consnet. Also, I checked the versions of pytorch, mmdet and nncore - they are 1.8.1+cu102, 2.11.0 and 0.2.4 respectively. Could you please help? |
Thanks for your feedback. May I ask that did you install consnet from source using |
Hi. Thank you @yeliudev for the reply. |
Also @yeliudev may I ask that what is the object detection mAP (not the HOI mAP using the complete model) on the HICO-DET test set of the two object detectors which you used - first one pretrained on COCO and the other one finetuned on HICO-DET? |
I'm not pretty sure since this project was finished years ago. I remember that the mAP of COCO detector was about 13, and the HICO-DET finetuned one shall be about 20. |
Thanks for your response @yeliudev. |
But, I installed it using the pip install command given in your docs. Also, I tried to uninstall mmcv but upon doing that it says mmcv not found, which means that mmcv-full was installed. Would you please help? |
There are two versions of mmcv, one is called |
Thanks for the reply. Would you please check and share the exact version of your mmcv-full? |
1.3.8 |
Thanks for sharing the version. I will check by installing this version on the system. Also, will the CUDA version matter? I don't have 10.2 in my system. Is the issue coming because of that? |
I don't think the CUDA version matters. Compiling |
Would you please clarify the meaning of "compiling" mmcv-full using your own CUDA? Is compiling a separate step to be done after installing mmcv-full? If yes, would you please share the command for doing so. |
Simply running |
Thanks for your quick responses @yeliudev. |
Hi. I was able to resolve the mmcv error. But, now I am encountering another error. I installed the packages as follows -
With the above 3 steps, the command of python tools/build_dataset.py started executing correctly and the hdf5 files were making up (i.e. the detection step and extraction of features). But allennlp wasn't installed. So, once I understood that mmcv is working fine, I interrupted the above execution. Then, I installed allenlp using -
After this, I again ran the same command (python tools/build_dataset.py), but it errored out. Attaching the traceback below. |
It seems that the version of package |
thanks a lot for great documentation. got an error in this step
The text was updated successfully, but these errors were encountered: