Spaces:
Sleeping
Sleeping
owaiskha9654
commited on
Commit
•
ceb9553
1
Parent(s):
74c94c2
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ FILENAME = "best.pt"
|
|
8 |
|
9 |
yolov7_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
|
10 |
|
11 |
-
model = torch.hub.load('WongKinYiu/yolov7',
|
12 |
|
13 |
def object_detection(im, size=416):
|
14 |
results = model(im) # inference
|
|
|
8 |
|
9 |
yolov7_weights = hf_hub_download(repo_id=REPO_ID, filename=FILENAME)
|
10 |
|
11 |
+
model = torch.hub.load('WongKinYiu/yolov7', model=yolov7_weights, autoshape=True) # local repo
|
12 |
|
13 |
def object_detection(im, size=416):
|
14 |
results = model(im) # inference
|