Spaces:
Running
on
Zero
Running
on
Zero
xinjie.wang
commited on
Commit
·
e3ebdbb
1
Parent(s):
5638c1f
update
Browse files
embodied_gen/models/sam3d.py
CHANGED
|
@@ -94,7 +94,8 @@ class Sam3dInference:
|
|
| 94 |
) -> dict:
|
| 95 |
if isinstance(image, Image.Image):
|
| 96 |
image = np.array(image)
|
| 97 |
-
|
|
|
|
| 98 |
return self.pipeline.run(
|
| 99 |
image,
|
| 100 |
None,
|
|
|
|
| 94 |
) -> dict:
|
| 95 |
if isinstance(image, Image.Image):
|
| 96 |
image = np.array(image)
|
| 97 |
+
if mask is not None:
|
| 98 |
+
image = self.merge_mask_to_rgba(image, mask)
|
| 99 |
return self.pipeline.run(
|
| 100 |
image,
|
| 101 |
None,
|