Spaces:
Sleeping
Sleeping
fix: syntax error
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ def process_refexp(image: Image, prompt: str):
|
|
125 |
print(f"processed prompt: {prompt}")
|
126 |
|
127 |
# convert coordinates from tensor image size to input image size
|
128 |
-
out_size = (
|
129 |
translate_point_coords_from_out_to_in(point=center_point, input_image_size=image.size, output_image_size=out_size)
|
130 |
|
131 |
x = math.floor(width*center_point["x"])
|
|
|
125 |
print(f"processed prompt: {prompt}")
|
126 |
|
127 |
# convert coordinates from tensor image size to input image size
|
128 |
+
out_size = (processor.image_processor.size[1], processor.image_processor.size[0])
|
129 |
translate_point_coords_from_out_to_in(point=center_point, input_image_size=image.size, output_image_size=out_size)
|
130 |
|
131 |
x = math.floor(width*center_point["x"])
|