Spaces:
Sleeping
Sleeping
Commit ·
28f91bd
1
Parent(s): b170e19
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,9 +25,9 @@ def process_class_list(classes_string: str):
|
|
| 25 |
return classes_list
|
| 26 |
|
| 27 |
|
| 28 |
-
def model_inference(img,
|
| 29 |
-
feature_extractor = AutoFeatureExtractor.from_pretrained(f"hustvl/
|
| 30 |
-
model = YolosForObjectDetection.from_pretrained(f"hustvl/
|
| 31 |
|
| 32 |
img = Image.fromarray(img)
|
| 33 |
|
|
|
|
| 25 |
return classes_list
|
| 26 |
|
| 27 |
|
| 28 |
+
def model_inference(img, prob_threshold, classes_to_show):
|
| 29 |
+
feature_extractor = AutoFeatureExtractor.from_pretrained(f"hustvl/yolos-small-dwr")
|
| 30 |
+
model = YolosForObjectDetection.from_pretrained(f"hustvl/yolos-small-dwr")
|
| 31 |
|
| 32 |
img = Image.fromarray(img)
|
| 33 |
|