Huiwenshi commited on
Commit
dae702d
·
verified ·
1 Parent(s): 24a1277

Upload gradio_app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. gradio_app.py +6 -2
gradio_app.py CHANGED
@@ -1,5 +1,9 @@
1
  # pip install gradio==3.39.0
2
  import os
 
 
 
 
3
  import shutil
4
  import time
5
  from glob import glob
@@ -346,8 +350,8 @@ if __name__ == '__main__':
346
 
347
  rmbg_worker = BackgroundRemover()
348
  # t2i_worker = HunyuanDiTPipeline('Tencent-Hunyuan--HunyuanDiT-v1.1-Diffusers-Distilled')
349
- i23d_worker = Hunyuan3DDiTFlowMatchingPipeline.from_pretrained('Hunyuan3D-2')
350
- texgen_worker = Hunyuan3DPaintPipeline.from_pretrained('Hunyuan3D-2')
351
  floater_remove_worker = FloaterRemover()
352
  degenerate_face_remove_worker = DegenerateFaceRemover()
353
  face_reduce_worker = FaceReducer()
 
1
  # pip install gradio==3.39.0
2
  import os
3
+
4
+ os.system("cd /home/user/app/hy3dgen/texgen/differentiable_renderer/ && bash compile_mesh_painter.sh")
5
+ os.system("cd /home/user/app/hy3dgen/texgen/differentiable_renderer/custom_rasterizer && pip install .")
6
+
7
  import shutil
8
  import time
9
  from glob import glob
 
350
 
351
  rmbg_worker = BackgroundRemover()
352
  # t2i_worker = HunyuanDiTPipeline('Tencent-Hunyuan--HunyuanDiT-v1.1-Diffusers-Distilled')
353
+ i23d_worker = Hunyuan3DDiTFlowMatchingPipeline.from_pretrained('tencent/Hunyuan3D-2')
354
+ texgen_worker = Hunyuan3DPaintPipeline.from_pretrained('tencent/Hunyuan3D-2')
355
  floater_remove_worker = FloaterRemover()
356
  degenerate_face_remove_worker = DegenerateFaceRemover()
357
  face_reduce_worker = FaceReducer()