Comments (3)
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!
from carefree-creator.
Yes indeed!
The handy version
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:
The advanced version
I haven't documented these stuffs yet, but here are some brief guides:
- The local APIs are exposed from here on.
↑ You can ignore this if you just want to change the existing models, instead of introducing new models / endpoints / features!
-
The APIs are implemented in txt2img.py and img2img.py.
-
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 therun
method, where you need to generate the output (image) based on the input (theTxt2ImgSDModel
, 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! 😆
from carefree-creator.
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!
from carefree-creator.
Related Issues (20)
- Unable to use local model HOT 1
- Audit Algorithm too strict HOT 1
- On which port does the local server start? HOT 23
- Error when trying to run CPU mode HOT 9
- NSFW Allowed? HOT 8
- Is something updated? HOT 7
- When are the video features coming HOT 2
- carefree-creator version 0.2.1 fastapi openapi.json error HOT 1
- created a discord for community HOT 3
- 请问是否有支持controlnet计划 HOT 1
- Cannot install carefree-learn because these package versions have conflicting dependencies. HOT 3
- ImportError: /opt/conda/lib/python3.8/site-packages/transformer_engine_extensions.cpython-38-x86_64-linux-gnu.so: undefined symbol HOT 10
- Hey i just want to know what all different models exactly are being used here. Thanks!! HOT 3
- cannot import name 'TPair' from 'cflearn.api.cv.diffusion' HOT 8
- google colab 本地服务都用不了咯 HOT 5
- local deployment & Colab deployment 得到{"detail":"Not Found"} HOT 2
- cftool 1.0.7 requires requests==2.10.0, but you have requests 2.31.0 which is incompatible. HOT 2
- ImportError: cannot import name 'ExpandType' from 'cftool.geometry' (/opt/conda/lib/python3.10/site-packages/cftool/geometry.py) HOT 1
- Using API to generate images HOT 8
- How to use anime model with API HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carefree-creator.