Update app.py
Browse files
app.py
CHANGED
|
@@ -60,7 +60,7 @@ def get_depth_image(image):
|
|
| 60 |
depth_estimator = pipeline('depth-estimation')
|
| 61 |
pil_image = depth_estimator(pil_image)['depth']
|
| 62 |
pil_image = np.array(pil_image)
|
| 63 |
-
pil_image = pil_image[:, None]
|
| 64 |
pil_image = np.concatenate([pil_image, pil_image, pil_image], axis=2)
|
| 65 |
return PIL.Image.fromarray(pil_image)
|
| 66 |
|
|
|
|
| 60 |
depth_estimator = pipeline('depth-estimation')
|
| 61 |
pil_image = depth_estimator(pil_image)['depth']
|
| 62 |
pil_image = np.array(pil_image)
|
| 63 |
+
pil_image = pil_image[:, :, None]
|
| 64 |
pil_image = np.concatenate([pil_image, pil_image, pil_image], axis=2)
|
| 65 |
return PIL.Image.fromarray(pil_image)
|
| 66 |
|