-
Notifications
You must be signed in to change notification settings - Fork 10
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
Running demo.py and AttributeError: module 'pycocotools' has no attribute '__version__' #17
Comments
You can refer to this site |
I'm sorry, but you may have misunderstood my problem. The solution you provided for the "AttributeError" was to "pip uninstall pycocotools and reinstall mmpycocotools". I have already tried that, but after trying the same command again,
I encountered a "ValueError". Upon researching the solution for the "ValueError", it suggests to "install pycocotools". Does this mean that my previous step of "uninstalling pycocotools" was unnecessary? As you can imagine, after installing pycocotools to resolve the "ValueError", the "AttributeError" reappeared. |
This error is caused by the old version of numpy, you can refer to this solution. I suggest you install libraries with the same version as mine. |
Thank you very much for your prompt response. There's one thing I need to clarify. The description of the "ValueError" I encountered is "Expected 96 from C header, got 80 from PyObject," which is slightly different from the referenced "ValueError: Expected 88 from C header, got 80 from PyObject." However, I have also tried changing the version of numpy and tried to match my environment as closely as possible to yours, but I am still experiencing these issues. I hope you can help me clarify this further.
|
It is hard for me to give you some useful suggestions with the above list of libraries and their versions. But I think the best try is that you reinstall your environment following my libraries dependency. |
Thanks for your response once again. I have another question: Have you tried running MSMDFusion with the latest version of mmdetection3d? I initially attempted to use the latest version, but encountered issues, possibly due to a conflict with the mmengine and mmcv-full which now is renamed to mmcv. |
The latest version of mmdetection3d refactors their coordinate system and should be cooperated with a new version of mmcv. I do not adapt my codebase to the latest mmdetection3d. |
Hello, have you trained this model? I'm using A800 here but still not enough to train. If you've trained, can you give me an answer to the reason for my lack of memory here, thank you |
Checklist
Describe the bug
Hello, I followed your environment setup and installed mmcv-full=1.3.0, mmdet=2.10.0, mmdet3d=0.10.0, mmpycocotools=12.0.3 and pycocotools=2.0.1. During the verification process, I tried to run demo.py to validate the successful installation of mmdet3d. However, I encountered an error that says "AttributeError: module 'pycocotools' has no attribute 'version'". I checked the faq.md , you mentioned that uninstalling mmpycocotools and pycocotools, then reinstalling mmpycocotools could resolve the issue. I tried this solution, but it didn't work. If I only install mmpycocotools, a new issue appeared.
So I found the solution in the mmdetection3d documentation. The solution proposed there is similar to your suggestion, but it includes an additional step of installing pycocotools==2.0.1. However, the bug ‘’AttributeError: module 'pycocotools' has no attribute 'version' ‘’ recurrence when I installed pycocotools.
Reproduction
I didn't make any modifications.
demo.py
Environment
python mmdet3d/utils/collect_env.py
to collect necessary environment infomation and paste it here.Error traceback
If applicable, paste the error trackback here.
Bug fix
If you have already identified the reason, you can provide the information here. If you are willing to create a PR to fix it, please also leave a comment here and that would be much appreciated!
The text was updated successfully, but these errors were encountered: