ImportError: Failed to import DetInferencer
. Please confirm you have installed 'mmdet>=3.0.0'
#991
Closed
byungjinku
started this conversation in
General
Replies: 1 comment
-
I forgot to put the model type on command line |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(sahi) bjku@bjku:~$ sahi predict --slice_width 640 --slice_height 640 --overlap_height_ratio 0.1 --overlap_width_ratio 0.1 --model_confidence_threshold 0.25 --source /home/bjku/sahi/data/pexels-pavel-danilyuk-8381411.mp4 --model_path /home/bjku/FCS/ObjectDetection/yolov5/runs/train/exp/weights/best.pt --model_config_path /home/bjku/FCS/ObjectDetection/yolov5/data/coco.yaml
Traceback (most recent call last):
File "/home/bjku/miniconda3/envs/sahi/bin/sahi", line 8, in
sys.exit(app())
File "/home/bjku/miniconda3/envs/sahi/lib/python3.10/site-packages/sahi/cli.py", line 31, in app
fire.Fire(sahi_app)
File "/home/bjku/miniconda3/envs/sahi/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/bjku/miniconda3/envs/sahi/lib/python3.10/site-packages/fire/core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/home/bjku/miniconda3/envs/sahi/lib/python3.10/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/home/bjku/miniconda3/envs/sahi/lib/python3.10/site-packages/sahi/predict.py", line 506, in predict
detection_model = AutoDetectionModel.from_pretrained(
File "/home/bjku/miniconda3/envs/sahi/lib/python3.10/site-packages/sahi/auto_model.py", line 66, in from_pretrained
return DetectionModel(
File "/home/bjku/miniconda3/envs/sahi/lib/python3.10/site-packages/sahi/models/mmdet.py", line 109, in init
raise ImportError("Failed to import
DetInferencer
. Please confirm you have installed 'mmdet>=3.0.0'")ImportError: Failed to import
DetInferencer
. Please confirm you have installed 'mmdet>=3.0.0'can sombody explain this error?
Beta Was this translation helpful? Give feedback.
All reactions