Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def inference(image):
|
|
38 |
# height = image.height
|
39 |
|
40 |
# img = np.array(image.resize((500, height)))
|
41 |
-
outputs = predictor(
|
42 |
|
43 |
v = Visualizer(img,scale=1.2)
|
44 |
out = v.draw_instance_predictions(outputs["instances"].to("cpu"))
|
|
|
38 |
# height = image.height
|
39 |
|
40 |
# img = np.array(image.resize((500, height)))
|
41 |
+
outputs = predictor(image)
|
42 |
|
43 |
v = Visualizer(img,scale=1.2)
|
44 |
out = v.draw_instance_predictions(outputs["instances"].to("cpu"))
|