-
Notifications
You must be signed in to change notification settings - Fork 621
Description
Prerequisite
- I have searched the existing and past issues but cannot get the expected help.
- I have read the FAQ documentation but cannot get the expected help.
- The bug has not been fixed in the latest version.
🐞 Describe the bug
I receive the bug:
ModuleNotFoundError: No module named 'mmyolo.apis'
Steps followed:
-
python 3.8 installation
creating virtual environment after installing python 3.8
virtualenv -p="C:\Users\mypc\AppData\Local\Programs\Python\Python38\python.exe" python38 -
Installing mmcv
pip install mmcv==2.0.0rc4 -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.7/index.html -
Installing compatible torch
pip install torch===1.7.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install Torchvision===0.8.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install mmdet
pip install mmyolo
Python code main file has the following imports:
from mmdet.apis import init_detector, inference_detector
from mmyolo.apis import init_detector as init_yolo_detector, inference_detector as inference_yolo_detector
import mmcv
Environment
return torch._C._cuda_getDeviceCount() > 0
sys.platform: win32
Python: 3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
CUDA available: False
MUSA available: False
numpy_random_seed: 2147483648
MSVC: Microsoft (R) C/C++ Optimizing Compiler Version 19.44.35209 for x64
GCC: n/a
PyTorch: 1.7.0
PyTorch compiling details: PyTorch built with:
- C++ Version: 199711
- MSVC 192729112
- Intel(R) Math Kernel Library Version 2020.0.0 Product Build 20191125 for Intel(R) 64 architecture applications
- Intel(R) MKL-DNN v1.6.0 (Git Hash 5ef631a030a6f73131c77892041042805a06064f)
- OpenMP 2019
- CPU capability usage: AVX2
- Build settings: BLAS=MKL, BUILD_TYPE=Release, CXX_FLAGS=/DWIN32 /D_WINDOWS /GR /EHsc /w /bigobj -openmp:experimental -DNDEBUG -DUSE_FBGEMM -DUSE_VULKAN_WRAPPER, PERF_WITH_AVX=1, PERF_WITH_AVX2=1, PERF_WITH_AVX512=1, USE_CUDA=ON, USE_EXCEPTION_PTR=1, USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, USE_MKLDNN=ON, USE_MPI=OFF, USE_NCCL=OFF, USE_NNPACK=OFF, USE_OPENMP=ON,
TorchVision: 0.8.0
OpenCV: 4.11.0
MMEngine: 0.10.7
MMCV: 2.0.0rc4
MMDetection: 3.3.0
MMYOLO: 0.6.0+
Additional information
No response