Spaces:
Runtime error
Runtime error
Update gradio_app.py
Browse files- gradio_app.py +6 -6
gradio_app.py
CHANGED
@@ -25,9 +25,9 @@ from apps.utils import *
|
|
25 |
_TITLE = '''CraftsMan: High-fidelity Mesh Generation with 3D Native Generation and Interactive Geometry Refiner'''
|
26 |
_DESCRIPTION = '''
|
27 |
<div>
|
28 |
-
|
29 |
<br>
|
30 |
-
By mimicking the artist/craftsman modeling workflow, we propose CraftsMan (aka 匠心)
|
31 |
then a multi-view normal enhanced image generation model is used to refine the mesh.
|
32 |
We provide the coarse 3D diffusion part here.
|
33 |
<br>
|
@@ -191,12 +191,12 @@ if __name__=="__main__":
|
|
191 |
)
|
192 |
|
193 |
# for 3D latent set diffusion
|
194 |
-
|
195 |
-
|
196 |
# ckpt_path = hf_hub_download(repo_id="wyysf/CraftsMan", filename="image-to-shape-diffusion/clip-mvrgb-modln-l256-e64-ne8-nd16-nl6/model.ckpt", repo_type="model")
|
197 |
# config_path = hf_hub_download(repo_id="wyysf/CraftsMan", filename="image-to-shape-diffusion/clip-mvrgb-modln-l256-e64-ne8-nd16-nl6/config.yaml", repo_type="model")
|
198 |
-
ckpt_path = hf_hub_download(repo_id="wyysf/CraftsMan", filename="image-to-shape-diffusion/clip-mvrgb-modln-l256-e64-ne8-nd16-nl6/model-300k.ckpt", repo_type="model")
|
199 |
-
config_path = hf_hub_download(repo_id="wyysf/CraftsMan", filename="image-to-shape-diffusion/clip-mvrgb-modln-l256-e64-ne8-nd16-nl6/config.yaml", repo_type="model")
|
200 |
scheluder_dict = OrderedDict({
|
201 |
"DDIMScheduler": 'diffusers.schedulers.DDIMScheduler',
|
202 |
# "DPMSolverMultistepScheduler": 'diffusers.schedulers.DPMSolverMultistepScheduler', # not support yet
|
|
|
25 |
_TITLE = '''CraftsMan: High-fidelity Mesh Generation with 3D Native Generation and Interactive Geometry Refiner'''
|
26 |
_DESCRIPTION = '''
|
27 |
<div>
|
28 |
+
<span style="color: red;">Important: The ckpt models released have been primarily trained on character data, hence they are likely to exhibit superior performance in this category. We are also planning to release more advanced pretrained models in the future.</span>
|
29 |
<br>
|
30 |
+
By mimicking the artist/craftsman modeling workflow, we propose CraftsMan (aka 匠心) which uses 3D Latent Set Diffusion Model that directly generates coarse meshes,
|
31 |
then a multi-view normal enhanced image generation model is used to refine the mesh.
|
32 |
We provide the coarse 3D diffusion part here.
|
33 |
<br>
|
|
|
191 |
)
|
192 |
|
193 |
# for 3D latent set diffusion
|
194 |
+
ckpt_path = "./ckpts/image-to-shape-diffusion/clip-mvrgb-modln-l256-e64-ne8-nd16-nl6/model.ckpt"
|
195 |
+
config_path = "./ckpts/image-to-shape-diffusion/clip-mvrgb-modln-l256-e64-ne8-nd16-nl6/config.yaml"
|
196 |
# ckpt_path = hf_hub_download(repo_id="wyysf/CraftsMan", filename="image-to-shape-diffusion/clip-mvrgb-modln-l256-e64-ne8-nd16-nl6/model.ckpt", repo_type="model")
|
197 |
# config_path = hf_hub_download(repo_id="wyysf/CraftsMan", filename="image-to-shape-diffusion/clip-mvrgb-modln-l256-e64-ne8-nd16-nl6/config.yaml", repo_type="model")
|
198 |
+
# ckpt_path = hf_hub_download(repo_id="wyysf/CraftsMan", filename="image-to-shape-diffusion/clip-mvrgb-modln-l256-e64-ne8-nd16-nl6/model-300k.ckpt", repo_type="model")
|
199 |
+
# config_path = hf_hub_download(repo_id="wyysf/CraftsMan", filename="image-to-shape-diffusion/clip-mvrgb-modln-l256-e64-ne8-nd16-nl6/config.yaml", repo_type="model")
|
200 |
scheluder_dict = OrderedDict({
|
201 |
"DDIMScheduler": 'diffusers.schedulers.DDIMScheduler',
|
202 |
# "DPMSolverMultistepScheduler": 'diffusers.schedulers.DPMSolverMultistepScheduler', # not support yet
|