Spaces:
Sleeping
Sleeping
Commit
·
e63e5de
1
Parent(s):
307cad5
Update model.py
Browse files
model.py
CHANGED
@@ -44,7 +44,7 @@ class Model(LabelStudioMLBase):
|
|
44 |
image_processor = AutoImageProcessor.from_pretrained("diegokauer/conditional-detr-coe-int")
|
45 |
model = AutoModelForObjectDetection.from_pretrained("diegokauer/conditional-detr-coe-int")
|
46 |
seg_image_processor = ViTImageProcessor.from_pretrained("diegokauer/int-pet-classifier")
|
47 |
-
seg_model =
|
48 |
id2label = model.config.id2label
|
49 |
seg_id2label = seg_model.config.id2label
|
50 |
|
|
|
44 |
image_processor = AutoImageProcessor.from_pretrained("diegokauer/conditional-detr-coe-int")
|
45 |
model = AutoModelForObjectDetection.from_pretrained("diegokauer/conditional-detr-coe-int")
|
46 |
seg_image_processor = ViTImageProcessor.from_pretrained("diegokauer/int-pet-classifier")
|
47 |
+
seg_model = Swinv2ForImageClassification.from_pretrained("diegokauer/int-pet-classifier")
|
48 |
id2label = model.config.id2label
|
49 |
seg_id2label = seg_model.config.id2label
|
50 |
|