Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -86,7 +86,7 @@ def run_detailgen3d(
|
|
| 86 |
guidance_scale,
|
| 87 |
):
|
| 88 |
surface = load_mesh(mesh)
|
| 89 |
-
|
| 90 |
|
| 91 |
batch_size = 1
|
| 92 |
|
|
@@ -126,8 +126,8 @@ def run_refinement(
|
|
| 126 |
if randomize_seed:
|
| 127 |
seed = random.randint(0, MAX_SEED)
|
| 128 |
|
| 129 |
-
if not isinstance(rgb_image, Image.Image) and "image" in rgb_image:
|
| 130 |
-
|
| 131 |
|
| 132 |
print("rgb_image",rgb_image)
|
| 133 |
|
|
|
|
| 86 |
guidance_scale,
|
| 87 |
):
|
| 88 |
surface = load_mesh(mesh)
|
| 89 |
+
image = Image.open(image).convert("RGB")
|
| 90 |
|
| 91 |
batch_size = 1
|
| 92 |
|
|
|
|
| 126 |
if randomize_seed:
|
| 127 |
seed = random.randint(0, MAX_SEED)
|
| 128 |
|
| 129 |
+
# if not isinstance(rgb_image, Image.Image) and "image" in rgb_image:
|
| 130 |
+
# rgb_image = rgb_image["image"]
|
| 131 |
|
| 132 |
print("rgb_image",rgb_image)
|
| 133 |
|