Skip to content
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

Error connecting to the stable diffusion respository #95

Open
justin1230 opened this issue Aug 30, 2024 · 6 comments
Open

Error connecting to the stable diffusion respository #95

justin1230 opened this issue Aug 30, 2024 · 6 comments

Comments

@justin1230
Copy link

Couldn't connect to the Hub: 401 Client Error. (Request ID: Root=1-66d19326-2f1f18937689e5ee3b0c5308;509ffcf1-2502-4014-ac86-8996368fa1e7)

Repository Not Found for url: https://hf-mirror.com/api/models/runwayml/stable-diffusion-v1-5.
Please make sure you specified the correct repo_id and repo_type.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid username or password..
Will try to load from local cache.

is there any alternative and how to edit?

@orientalnipper
Copy link

author has remove this repo
https://huggingface.co/runwayml/stable-diffusion-v1-5

so use this one which i tested works:
ZeroCool94/stable-diffusion-v1-5

there are 3 places you need to change

app\all_models.py:
9: base_model = "runwayml/stable-diffusion-v1-5"

custum_3d_diffusion\custum_modules\unifield_processor.py:
73: init_unet_path: str = "runwayml/stable-diffusion-v1-5"

scripts\sd_model_zoo.py:
7: DEFAULT_BASE_MODEL = "runwayml/stable-diffusion-v1-5"

Linux command:
find . -type f -exec sed -i 's/runwayml/stable-diffusion-v1-5/ZeroCool94/stable-diffusion-v1-5/g' {} +

@justin1230
Copy link
Author

it works, thanks.!!

@josepmy
Copy link

josepmy commented Aug 30, 2024

Hi @justin1230 @orientalnipper this solve the attempting to load the lambdalabs/sd-image-variations-diffusers model?
The file diffusion_pytorch_model.safetensors is missing

@orientalnipper
Copy link

hi @josepmy
as far a I know it would still work, just not so safe as .bin file could be injected with malicious code
if it did not find .safetensors it will just use .bin available

@mattia-z
Copy link

Do you were able to replace stable-diffusion-1.5 with more recent models like stable diffusion 3 or Flux.1?

@josepmy
Copy link

josepmy commented Sep 16, 2024

@mattia-z interesting, should be possible for SD3.0 but the hard part is tune the pipeline settings for SD3.0, I'm not an expert but you can test and share the results. Also, SD30 involves updating diffusers too
Maybe @justin1230 @orientalnipper any thoughts about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants