Closed ozlem-atiz closed 3 years ago
@ozlem-atiz
model = torch.hub.load('ultralytics/yolov5', 'yolov5s', force_reload=True)
@glenn-jocher I can't run it on a computer with a gpu. I did what you said and I get the same error. Frames came very low on the computer with CPU. I get 1 frame in 5 seconds. It's pretty low. For this reason, I wanted to run it on a computer with a GPU. But it doesn't work here :((
@ozlem-atiz see YOLOv5 PyTorch Hub to get started.
I'm deleting the model loading part. But this error is falling in front of me. There is no problem with the codes. i am looking your send site . But same error @glenn-jocher
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.
Access additional YOLOv5 🚀 resources:
Access additional Ultralytics ⚡ resources:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!
Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐!
Hello my teacher. I'm getting a problem here. Try force_reload= true feedback. I couldn't understand even if I tried. The same error continues. Can you please help?
Thanks
this is my code
``import numpy as np import cv2 import time import torch model = torch.hub.load('ultralytics/yolov5', 'custom', path='best.pt',force_reload=True) model1 = torch.hub.load('ultralytics/yolov5', 'custom', path='best1.pt',force_reload=True) cap = cv2.VideoCapture(0) prev_frame_time = 0 new_frame_time = 0
while(cap.isOpened()): ret, frame = cap.read() if not ret: break gray = frame gray = cv2.resize(gray, (500, 300))
cap.release() cv2.destroyAllWindows() ``