Spaces:
Running
on
Zero
Running
on
Zero
Update gradio_app.py
Browse files- gradio_app.py +8 -6
gradio_app.py
CHANGED
@@ -42,10 +42,10 @@ _CITE_ = r"""
|
|
42 |
π **Citation**
|
43 |
If you find our work useful for your research or applications, please cite using this bibtex:
|
44 |
```bibtex
|
45 |
-
@article{
|
46 |
author = {Weiyu Li and Jiarui Liu and Rui Chen and Yixun Liang and Xuelin Chen and Ping Tan and Xiaoxiao Long},
|
47 |
title = {CraftsMan: High-fidelity Mesh Generation with 3D Native Generation and Interactive Geometry Refiner},
|
48 |
-
journal = {
|
49 |
year = {2024},
|
50 |
}
|
51 |
```
|
@@ -191,10 +191,12 @@ if __name__=="__main__":
|
|
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 |
scheluder_dict = OrderedDict({
|
199 |
"DDIMScheduler": 'diffusers.schedulers.DDIMScheduler',
|
200 |
# "DPMSolverMultistepScheduler": 'diffusers.schedulers.DPMSolverMultistepScheduler', # not support yet
|
@@ -289,12 +291,12 @@ if __name__=="__main__":
|
|
289 |
# backgroud_color = gr.ColorPicker(label="Background Color", value="#7F7F7F", interactive=True)
|
290 |
|
291 |
with gr.Row():
|
292 |
-
mvimg_guidance_scale = gr.Number(value=
|
293 |
mvimg_steps = gr.Number(value=30, minimum=20, maximum=100, label="2D Sample Steps")
|
294 |
|
295 |
with gr.Accordion('Advanced options (3D)', open=False):
|
296 |
with gr.Row():
|
297 |
-
guidance_scale = gr.Number(label="3D Guidance Scale", value=
|
298 |
steps = gr.Number(value=50, minimum=20, maximum=100, label="3D Sample Steps")
|
299 |
|
300 |
with gr.Row():
|
|
|
42 |
π **Citation**
|
43 |
If you find our work useful for your research or applications, please cite using this bibtex:
|
44 |
```bibtex
|
45 |
+
@article{li2024craftsman,
|
46 |
author = {Weiyu Li and Jiarui Liu and Rui Chen and Yixun Liang and Xuelin Chen and Ping Tan and Xiaoxiao Long},
|
47 |
title = {CraftsMan: High-fidelity Mesh Generation with 3D Native Generation and Interactive Geometry Refiner},
|
48 |
+
journal = {arXiv preprint arXiv:2405.14979},
|
49 |
year = {2024},
|
50 |
}
|
51 |
```
|
|
|
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-aligned-vae/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-aligned-vae/config.yaml", repo_type="model")
|
200 |
scheluder_dict = OrderedDict({
|
201 |
"DDIMScheduler": 'diffusers.schedulers.DDIMScheduler',
|
202 |
# "DPMSolverMultistepScheduler": 'diffusers.schedulers.DPMSolverMultistepScheduler', # not support yet
|
|
|
291 |
# backgroud_color = gr.ColorPicker(label="Background Color", value="#7F7F7F", interactive=True)
|
292 |
|
293 |
with gr.Row():
|
294 |
+
mvimg_guidance_scale = gr.Number(value=3.0, minimum=1, maximum=10, label="2D Guidance Scale")
|
295 |
mvimg_steps = gr.Number(value=30, minimum=20, maximum=100, label="2D Sample Steps")
|
296 |
|
297 |
with gr.Accordion('Advanced options (3D)', open=False):
|
298 |
with gr.Row():
|
299 |
+
guidance_scale = gr.Number(label="3D Guidance Scale", value=5.0, minimum=1.0, maximum=10.0)
|
300 |
steps = gr.Number(value=50, minimum=20, maximum=100, label="3D Sample Steps")
|
301 |
|
302 |
with gr.Row():
|