In the last article, win10 installs detectron2 (0.1 or 0.4.1) based on Python 1.8.1 and cuda11.1.1. After installing detectron2, run the test Demo:
python demo/demo.py --config-file configs/COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x
.yaml --input predict\input\1.jpg --output predict\output --opts MODEL.WEIGHTS weights/e2e_mask_rcnn_R-101-FPN_1x.pkl
The following error occurred:
No module named ‘win32con’ and no module named ‘antlr4’
It is useless to install through pip, but there are two libraries through PIP list query
By directly looking at the file addresses of the above two packages, we found that there was no relevant py file in them. Finally, we successfully solved the problem by installing the compiled binary WHL file
pip install antlr4_python3_runtime-4.9.2-py3-none-any.whl
pip install pywin32-300-cp36-cp36m-win_amd64.whl
Run the command again to get the output:
Read More:
- [Solved] No module named ‘pywt‘ or ModuleNotFoundError: No module named ‘skimage.metrics‘
- How to Solve ModuleNotFoundError: No module named ‘_bz2‘
- [Solved] Docker+uWSGI+Flask Error: ModuleNotFoundError: No module named ‘flask‘
- [Solved] Tensorflow-gpu 2.0.0 Run Error: ModuleNotFoundError: No module named ‘tensorflow_core.estimator‘
- The solution of no module named ‘jinja2. Asyncsupport’
- ImportError: No module named google.protobuf.internal
- [Solved] CMake Error: Could not create named generator Visual Studio 16 2019 -A Win64
- JMeter JDBC Error: No pool found named: ‘test‘ [How to Solve]
- [Solved] There is no getter for property named ‘distinct’ in…
- Error: Unable to build IHost No DbContext named ‘PersistedGrantDbContext‘ was found.
- [Solved] SpringBoot Project Start Error: No bean named ‘org.springframework.context.xxxxx.importRegistry‘ available
- [Solved] QT Warning: Slots named on_foo_bar are error prone
- [Solved] swiper Error: The requested module ‘react’ is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export
- How to Solve 0xc1900101 Error (Win10 upgrade Win11)
- [Solved] Vue.js error: Module build failed: Error: No parser and no file path given, couldn’t infer a parser.
- Pytorch error: `module ‘torch‘ has no attribute ‘__version___‘`
- [Jeston Xavier NX Compile librealsense Error] AttributeError: module ‘pyrealsense2‘ has no attribute ‘pipeline‘
- [How to Solve] Tesorflow: module ‘pandas.core.computation’ has no attribute ‘expressions’
- [Solved] Module ‘scipy.misc‘ has no attribute ‘imread‘
- [Solved] OpenCV Error: AttributeError: module ‘cv2‘ has no attribute ‘data‘