Spaces:
Sleeping
Sleeping
Commit ·
9d86353
1
Parent(s): c0d1e9d
Update model.py
Browse files
model.py
CHANGED
|
@@ -33,7 +33,7 @@ class Model(LabelStudioMLBase):
|
|
| 33 |
|
| 34 |
image_path = task["data"]["image"]
|
| 35 |
image = Image(image_path)
|
| 36 |
-
|
| 37 |
with torch.no_grad():
|
| 38 |
|
| 39 |
inputs = image_processor(images=image, return_tensors="pt")
|
|
|
|
| 33 |
|
| 34 |
image_path = task["data"]["image"]
|
| 35 |
image = Image(image_path)
|
| 36 |
+
original_width, original_height = image.size
|
| 37 |
with torch.no_grad():
|
| 38 |
|
| 39 |
inputs = image_processor(images=image, return_tensors="pt")
|