Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,14 +32,14 @@ MARKDOWN = """
|
|
| 32 |
3. If you want the refine result to be more consistent with the image, please manually increase the CFG strength.
|
| 33 |
"""
|
| 34 |
EXAMPLES = [
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
]
|
| 44 |
|
| 45 |
|
|
@@ -122,9 +122,6 @@ def run_refinement(
|
|
| 122 |
if randomize_seed:
|
| 123 |
seed = random.randint(0, MAX_SEED)
|
| 124 |
|
| 125 |
-
# print("rgb_image", rgb_image)
|
| 126 |
-
# print("mesh", rgb_image)
|
| 127 |
-
|
| 128 |
if not isinstance(rgb_image, Image.Image) and "image" in rgb_image:
|
| 129 |
rgb_image = rgb_image["image"]
|
| 130 |
|
|
|
|
| 32 |
3. If you want the refine result to be more consistent with the image, please manually increase the CFG strength.
|
| 33 |
"""
|
| 34 |
EXAMPLES = [
|
| 35 |
+
[
|
| 36 |
+
{
|
| 37 |
+
"image": os.path.join(os.path.dirname(os.path.abspath(__file__)), "assets/image/100.png"),
|
| 38 |
+
},
|
| 39 |
+
os.path.join(os.path.dirname(os.path.abspath(__file__)), "assets/model/100.glb"),
|
| 40 |
+
42,
|
| 41 |
+
False,
|
| 42 |
+
]
|
| 43 |
]
|
| 44 |
|
| 45 |
|
|
|
|
| 122 |
if randomize_seed:
|
| 123 |
seed = random.randint(0, MAX_SEED)
|
| 124 |
|
|
|
|
|
|
|
|
|
|
| 125 |
if not isinstance(rgb_image, Image.Image) and "image" in rgb_image:
|
| 126 |
rgb_image = rgb_image["image"]
|
| 127 |
|