Zeqiang-Lai / OpenDMD

Open source implementation and models of One-step Diffusion with Distribution Matching Distillation
GNU General Public License v2.0
94 stars 11 forks source link

Have you happened to check if gradio_dmd.py works? #3

Open EYcab opened 2 months ago

EYcab commented 2 months ago

I have followed your instruction, but it seems your model files in huggingface don't work with your gradio_dmd.py 1712667450641

Zeqiang-Lai commented 2 months ago

It should work, if you have any issue, could you share the error messages so that I can help

EYcab commented 2 months ago

edf3ae1736fa7b3e3874927b9b2af72 Above is a part of your code and below is the result. 1712752013277

EYcab commented 2 months ago

I have followed your instruction, but it seems your model files in huggingface don't work with your gradio_dmd.py 1712667450641

It suggests that your --model-path file is missing something.

EYcab commented 2 months ago

@Zeqiang-Lai

yethu commented 2 months ago

@EYcab I was having the same problem but running sanity_check.py fixed it. Now, I am facing an entirely new error in the next step.

root@machine:/workspace/OpenDMD# python gradio_dmd.py --unet-path '/workspace/dreamshaper-8' --model-path '/workspace/dreamshaper-8-dmd-kl-only-6kstep'
Traceback (most recent call last):
  File "/workspace/OpenDMD/gradio_dmd.py", line 18, in <module>
    pipe = DiffusionPipeline.from_pretrained(args.model_path, unet=unet)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 119, in _inner_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/diffusers/pipelines/pipeline_utils.py", line 692, in from_pretrained
    config_dict = cls.load_config(cached_folder)
  File "/usr/local/lib/python3.10/dist-packages/huggingface_hub/utils/_validators.py", line 119, in _inner_fn
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/diffusers/configuration_utils.py", line 374, in load_config
    raise EnvironmentError(
OSError: Error no file named model_index.json found in directory /workspace/dreamshaper-8-dmd-kl-only-6kstep.
EYcab commented 2 months ago

Well,I have been there before @yethu