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

Whenever I try to load the model, it returns an error #7

Open
Catnip202X opened this issue Mar 6, 2023 · 3 comments
Open

Whenever I try to load the model, it returns an error #7

Catnip202X opened this issue Mar 6, 2023 · 3 comments

Comments

@Catnip202X
Copy link

pipeline = StableDiffusionPipeline.from_pretrained(save_dir,torch_dtype=torch.float32)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'save_dir' is not defined

What should I do?

@d1g1t
Copy link

d1g1t commented Mar 7, 2023

Did you define the variable save_dir?

Assuming you're running convert_lora_safetensor_to_diffusers.py, the model_id or save_dir in your case should be a hugging face repo of the base model or the path to a local copy of the diffuser

@Catnip202X
Copy link
Author

ah ok, is there a more in depth guide that I can follow? thanks in advance

@d1g1t
Copy link

d1g1t commented Mar 10, 2023

It's unclear which file you're trying to run/what you're trying to do.

If you're trying to load into your model, a lora safetensors file that uses Stable Diffusion 1.5 as the base, you can simply edit the convert_lora_safetensor_to_diffusers.py to replace onePieceWanoSagaStyle_v2Offset.safetensors with the path to your file

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

2 participants