-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: runwayml/stable-diffusion-v1-5 does not appear to have a file named config.json. #16
Comments
我也遇到了这个问题 请问解决了吗 |
The problem may have been resolved by utilizing Google colab, but I encountered the same issue when attempting to run it locally. |
Could you please tell me how to operate google colab? In addition, if the config error is reported, I can run it locally, but not on the server |
还没有解决,好兄弟 |
|
But I started reporting errors in the inference.ipynb load model step of the code, the same error, runwayml/stable-diffusion-v1-5 does not appear to have a file named config.json. |
HF_ENDPOINT=https://hf-mirror.com python inference.py --num_steps 2 --ensemble_size 4 --img assets/dog.png --ckpt checkpoints/depthfm-v1.ckpt |
fix it by change |
我自己的原因是在 from_pretrained 参数里没有正确指定 safety_checker=None 这个变量,加进去就好了 |
Traceback (most recent call last):
File "/home/lhs/project/nerf...wu/depth-fm-main/inference.py", line 113, in
main(args)
File "/home/lhs/project/nerf...wu/depth-fm-main/inference.py", line 64, in main
model = DepthFM(args.ckpt)
^^^^^^^^^^^^^^^^^^
File "/home/lhs/project/nerf...wu/depth-fm-main/depthfm/dfm.py", line 21, in init
self.vae = AutoencoderKL.from_pretrained(vae_id, subfolder="vae")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/lhs/.conda/envs/depthfm/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 119, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/lhs/.conda/envs/depthfm/lib/python3.11/site-packages/diffusers/models/modeling_utils.py", line 569, in from_pretrained
config, unused_kwargs, commit_hash = cls.load_config(
^^^^^^^^^^^^^^^^
File "/home/lhs/.conda/envs/depthfm/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 119, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "/home/lhs/.conda/envs/depthfm/lib/python3.11/site-packages/diffusers/configuration_utils.py", line 402, in load_config
raise EnvironmentError(
OSError: runwayml/stable-diffusion-v1-5 does not appear to have a file named config.json.
The text was updated successfully, but these errors were encountered: