Spaces:
Sleeping
Sleeping
diegokauer
commited on
Commit
•
3980c97
1
Parent(s):
65a5971
Update model.py
Browse files
model.py
CHANGED
@@ -43,8 +43,8 @@ class Model(LabelStudioMLBase):
|
|
43 |
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = get_credentials()
|
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 |
|
|
|
43 |
os.environ["GOOGLE_APPLICATION_CREDENTIALS"] = get_credentials()
|
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-v2")
|
47 |
+
seg_model = Swinv2ForImageClassification.from_pretrained("diegokauer/int-pet-classifier-v2")
|
48 |
id2label = model.config.id2label
|
49 |
seg_id2label = seg_model.config.id2label
|
50 |
|