-
Notifications
You must be signed in to change notification settings - Fork 85
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
Use my own model? #7
Comments
You need to modify |
What could happen if you use your own API key? They can know what you create? |
I don't want to download a bunch of extra data, when I already have models locally. |
@ahrm I don't want to make my own model. I just want to know where I should put my model.ckpt file? |
I don't think it is as simple as replacing a |
I'm on my phone, if this doesn't help I'll do better later. Whenever a model is initialized from a pre trained set, you can point it at a local file instead. Edit lines like this; diffusionserver.py, line 24: The "CompVis/stable-diffusion-v1-4" is the model. Replace that with your local model file, using ideally relative paths. This works for literally any object being initialized by For bonus points, you can symlink files in Windows with mklink. If you need more, reply and I'll get around to it when I'm at a computer because this sucks lol |
I feel this is really close. |
Okay so I could swear I had this running someplace but now I can't find it. I'm messing with like six different Stable Diffusion iterations right now, lol, so my drive is a -mess-. Anyway -- add EDIT 2: Also will likely want to remove "use_auth_token=token" param given that you're trying to use local data. If you do manage to get a working statement on that line, please paste it here to share. |
@ZeroCool22 - No, none of the Stable Diffusion packages available do any form of feedback that I'm aware of. Mostly, loading a local model is useful in the instance of so-called "fine-tuned" models -- Waifu Diffusion being one of the more popular, though I haven't used it -- to return customized results. Several UIs allow more seamless integration of custom models, those using the HuggingFace API would need to be modified to a different, public model or a local instance if one were doing homebrew work. |
No dice. Still getting the same.. |
Roger. Will pursue and report back if solved, I swear I saw it someplace... |
Without the dots .. I don't know how to properly indent here .. pipe = ComposableStableDiffusionPipeline.from_pretrained( def dummy(images, **kwargs): |
Does not address the issue, which is an error initiating the model in the first from_pretrained function call. |
@TheSeanLavery -- Model config seems to be imported from a json file typically packaged with the model. I'm not sure if the |
I can "sort of" use my own model like this:
by not using the .custom_pipeline.pipeline_stable_diffusion imports Generate works OK, but not reimagine. |
Can you provide instructions for using this without downloading the model from hugging faces?
I don't want to use my API key
The text was updated successfully, but these errors were encountered: