Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ async def segment(file: UploadFile):
|
|
| 27 |
base_image_pil = Image.open(io.BytesIO(base_image_data))
|
| 28 |
base_image = np.array(base_image_pil)[:, :, ::-1].copy()
|
| 29 |
|
| 30 |
-
depth_image = np.array(depth_PIL)
|
| 31 |
|
| 32 |
segment_images = Start_Program(depth_image, base_image).run()
|
| 33 |
|
|
|
|
| 27 |
base_image_pil = Image.open(io.BytesIO(base_image_data))
|
| 28 |
base_image = np.array(base_image_pil)[:, :, ::-1].copy()
|
| 29 |
|
| 30 |
+
depth_image = np.array(depth_PIL).copy()
|
| 31 |
|
| 32 |
segment_images = Start_Program(depth_image, base_image).run()
|
| 33 |
|