Replies: 3 comments 1 reply
-
torch: 1.12.1+cu116 |
Beta Was this translation helpful? Give feedback.
-
I locate the error in prediction.py in : from sahi.utils.coco import CocoAnnotation, CocoPrediction, |
Beta Was this translation helpful? Give feedback.
-
I had the same problem torch : '1.8.0+cu111'
detection_model = mmdet.MmdetDetectionModel( |
Beta Was this translation helpful? Give feedback.
-
RuntimeError: random_device could not be read
I write a test script below:
from sahi.model import Yolov5DetectionModel
import yolov5
model = yolov5.load("/home/user/zrt/Projects/301_defect_detect/yolov5_streamlit/weights/best_1227.pt", device="cuda:0")
it runs error:RuntimeError: random_device could not be read
But delete first line :from sahi.model import Yolov5DetectionModel
it runs well
how does it happends this error ? thanks
Beta Was this translation helpful? Give feedback.
All reactions