Spaces:
Sleeping
Sleeping
staswrs
commited on
Commit
·
a25e098
1
Parent(s):
144fa82
add octree depth controls fix 6
Browse files
app.py
CHANGED
@@ -86,7 +86,8 @@ def generate(image_path, face_number=50000, guidance_scale=5.0, num_steps=25, oc
|
|
86 |
num_inference_steps = round(float(num_steps)), # 👈 исправлено_et
|
87 |
guidance_scale=float(guidance_scale),
|
88 |
faces=round(float(face_number)), # 👈 исправлено_et
|
89 |
-
octree_depth=int(octree_depth), # 👈 добавлено_et
|
|
|
90 |
)
|
91 |
|
92 |
if mesh is None or mesh.vertices.shape[0] == 0 or mesh.faces.shape[0] == 0:
|
|
|
86 |
num_inference_steps = round(float(num_steps)), # 👈 исправлено_et
|
87 |
guidance_scale=float(guidance_scale),
|
88 |
faces=round(float(face_number)), # 👈 исправлено_et
|
89 |
+
# octree_depth=int(octree_depth), # 👈 добавлено_et
|
90 |
+
octree_depth = round(float(octree_depth)) # 👈 исправлено_et
|
91 |
)
|
92 |
|
93 |
if mesh is None or mesh.vertices.shape[0] == 0 or mesh.faces.shape[0] == 0:
|