Spaces:
Runtime error
Runtime error
moyanxinxu
commited on
Commit
•
6f7501d
1
Parent(s):
d3b1997
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,8 @@ import supervision as sv
|
|
3 |
from func import detect_and_track
|
4 |
from transformers import AutoImageProcessor, AutoModelForObjectDetection
|
5 |
|
6 |
-
processor =
|
7 |
-
model =
|
8 |
tracker = sv.ByteTrack()
|
9 |
|
10 |
mask_annotator = sv.MaskAnnotator()
|
|
|
3 |
from func import detect_and_track
|
4 |
from transformers import AutoImageProcessor, AutoModelForObjectDetection
|
5 |
|
6 |
+
processor = DetrImageProcessor.from_pretrained("facebook/detr-resnet-50")
|
7 |
+
model = DetrForObjectDetection.from_pretrained("facebook/detr-resnet-50")
|
8 |
tracker = sv.ByteTrack()
|
9 |
|
10 |
mask_annotator = sv.MaskAnnotator()
|