Open EYcab opened 2 months ago
It should work, if you have any issue, could you share the error messages so that I can help
Above is a part of your code and below is the result.
I have followed your instruction, but it seems your model files in huggingface don't work with your gradio_dmd.py
It suggests that your --model-path file is missing something.
@Zeqiang-Lai
@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.
Well,I have been there before @yethu
I have followed your instruction, but it seems your model files in huggingface don't work with your gradio_dmd.py