Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -176,8 +176,8 @@ def server(input: Inputs, output: Outputs, session: Session):
|
|
176 |
""" Prepare Inputs """
|
177 |
# get input points prompt (grid of points)
|
178 |
input_points = generate_input_points(image)
|
179 |
-
print(np.array(input_points).shape)
|
180 |
-
print(image.
|
181 |
|
182 |
# prepare image and prompt for the model
|
183 |
inputs = processor(image, input_points=input_points, return_tensors="pt")
|
|
|
176 |
""" Prepare Inputs """
|
177 |
# get input points prompt (grid of points)
|
178 |
input_points = generate_input_points(image)
|
179 |
+
print("INPUT POINTS SHAPE", np.array(input_points).shape)
|
180 |
+
print("IMAGE DIMENSIONS", image.width, image.height)
|
181 |
|
182 |
# prepare image and prompt for the model
|
183 |
inputs = processor(image, input_points=input_points, return_tensors="pt")
|