Spaces:
Sleeping
Sleeping
Update my_model/object_detection.py
Browse files
my_model/object_detection.py
CHANGED
|
@@ -66,7 +66,7 @@ class ObjectDetector:
|
|
| 66 |
try:
|
| 67 |
model_path = get_model_path('deformable-detr-detic')
|
| 68 |
self.processor = AutoImageProcessor.from_pretrained(model_path)
|
| 69 |
-
self.model = AutoModelForObjectDetection.from_pretrained(model_path
|
| 70 |
except Exception as e:
|
| 71 |
print(f"Error loading Detic model: {e}")
|
| 72 |
raise
|
|
|
|
| 66 |
try:
|
| 67 |
model_path = get_model_path('deformable-detr-detic')
|
| 68 |
self.processor = AutoImageProcessor.from_pretrained(model_path)
|
| 69 |
+
self.model = AutoModelForObjectDetection.from_pretrained(model_path)
|
| 70 |
except Exception as e:
|
| 71 |
print(f"Error loading Detic model: {e}")
|
| 72 |
raise
|