Spaces:
Sleeping
Sleeping
Commit
·
40bdaa3
1
Parent(s):
aa96f98
Update model.py
Browse files
model.py
CHANGED
|
@@ -44,8 +44,8 @@ class Model(LabelStudioMLBase):
|
|
| 44 |
|
| 45 |
def __init__(self):
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
|
| 50 |
def predict(self, tasks, **kwargs):
|
| 51 |
""" This is where inference happens: model returns
|
|
|
|
| 44 |
|
| 45 |
def __init__(self):
|
| 46 |
|
| 47 |
+
self.image_processor = AutoImageProcessor.from_pretrained("diegokauer/conditional-detr-coe-int")
|
| 48 |
+
self.model = AutoModelForObjectDetection.from_pretrained("diegokauer/conditional-detr-coe-int")
|
| 49 |
|
| 50 |
def predict(self, tasks, **kwargs):
|
| 51 |
""" This is where inference happens: model returns
|