Closed anoadragon453 closed 1 year ago
Yes indeed!
If you need a handy version (e.g. placing any *.ckpt
in some directory and get it working), it is currently not supported (it's on my TODO though), but we have:
I haven't documented these stuffs yet, but here are some brief guides:
↑ You can ignore this if you just want to change the existing models, instead of introducing new models / endpoints / features!
I'm currently using my own library (carefree-learn) to implement the APIs, but you can re-implement the APIs with whatever you want! Take the basic text2img
feature as an example:
a. Rewrite the initialize
method, where you can initialize your models.
b. Rewrite the run
method, where you need to generate the output (image) based on the input (the Txt2ImgSDModel
, which contains almost all the necessary arguments)
Once all the modifications are done (on your own fork / a PR to a new branch of this project), you can modify the Install carefree-creator
section in the Google Colab, and change this line:
!git clone https://github.com/carefree0910/carefree-creator.git
into the corresponding git-clone-url, so the Colab will install your own customized version and serve it!
Please feel free to comment if you encountered any trouble! 😆
Thank you so much! This is definitely enough to get me started.
I think I'll close this issue as you've answered my question - if you want to go for a less advanced version that should probably be designed in a new issue.
I'll make a new issue if I run in to any problems as well. Thanks!
In case your are still interested: now we have a more handy way to use your own checkpoints!
I've updated the README
(here) but I'm not sure whether I've made a clear instruction... So I wish I can get some feedback from you. 🤣
BTW: we also supported
Textual Inversion
now as well!
I saw the following paragraph in the README:
Would it be possible to implement a generic way to import 1 or more custom models server-side, then communicate that to the webUI and allow the user to choose the model to use when using image generation/manipulation features? Much how AUTOMATIC1111/stable-diffusion-webui allows placing any
*.ckpt
in amodels/
directory.