Delete test.py

parent c0ab93b2
import torch
import cv2
model = torch.hub.load('ultralytics/yolov5', 'custom', path='model/best.pt')
img = cv2.imread('upload/x.jpg')
results = model(img)
results.print()
results.show()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment