vgvm commited on
Commit
222641c
1 Parent(s): 42d94b5

3d object texture is breaking babylon.js and hence gradios (Babylon.js v4.2.2 - WebGL2 babylon.js:16:321072 ; Uncaught TypeError: N[Ge] is undefined ), disabling it for now... sadly

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -51,6 +51,8 @@ class face_image_to_face_mesh:
51
  Saves to OBJ since gltf does not support quad faces. The 3d viewer has Y pointing the opposite direction from Blender, so ya hafta spin it.
52
 
53
  The face depth with Zoe can be a bit much and without it is a bit generic. In blender you can fix this just by snapping to the high poly model.
 
 
54
  """)
55
 
56
  with gr.Row():
@@ -186,7 +188,7 @@ class face_image_to_face_mesh:
186
  quadIndex = 0
187
  for quad in QUADS:
188
  quadIndex = 1 + quadIndex
189
- if True:
190
  # is this is breaking babylonjs and hence gradio's 3D component?
191
  lines.append( "f " + " ".join([f'{vertex}/{vertex}/{quadIndex}' for vertex in quad]) )
192
  else:
 
51
  Saves to OBJ since gltf does not support quad faces. The 3d viewer has Y pointing the opposite direction from Blender, so ya hafta spin it.
52
 
53
  The face depth with Zoe can be a bit much and without it is a bit generic. In blender you can fix this just by snapping to the high poly model.
54
+
55
+ Highly recommend and running it locally. The 3D model has texture info but is bugged atm in the gradios viewer (wip)
56
  """)
57
 
58
  with gr.Row():
 
188
  quadIndex = 0
189
  for quad in QUADS:
190
  quadIndex = 1 + quadIndex
191
+ if not True:
192
  # is this is breaking babylonjs and hence gradio's 3D component?
193
  lines.append( "f " + " ".join([f'{vertex}/{vertex}/{quadIndex}' for vertex in quad]) )
194
  else: