carefree0910/carefree-creator
AI magics meet Infinite draw board.
Featured achievements
The project's latest awards
#1 Repository of the month
#1 Repository of the month
#1 Repository of the month

An open sourced, AI-powered creator for everyone.
This is the backend project of the
Creatorproduct. If you are looking for the WebUI codes, you may checkout thecarefree-drawboard🎨 project.Most of the contents have been moved to the Wiki page.
Wiki | WebUI Codes
Installation
carefree-creator is built on top of carefree-learn, and requires:
Python>=3.8pytorch>=1.12.0. Please refer to PyTorch's official website, and it is highly recommended to pre-install PyTorch with conda.
Hardware Requirements
Related issue: #10.
This project will eat up 11~13 GB of GPU RAM if no modifications are made, because it actually integrates FIVE different SD versions together, and many other models as well. 🤣
There are two ways that can reduce the usage of GPU RAM - lazy loading and partial loading, see the following Run section for more details.
pip installation
pip install carefree-creator
If you are interested in the latest features, you may use pip to install from source as well:
git clone https://github.com/carefree0910/carefree-creator.git
cd carefree-creator
pip install -e .
Run
carefree-creator builds a CLI for you to setup your local service. For instance, we can:
cfcreator serve
If you don't have an NVIDIA GPU (e.g. mac), you may try:
cfcreator serve --cpu
If you are using your GPU-powered laptop, you may try:
cfcreator serve --limit 1
The
--limitflag is used to limit the number of loading models. By specifying1, only the executing model will be loaded, and other models will stay on your disk.See #10 for more details.
If you have plenty of RAM resources but your GPU RAM is not large enough, you may try:
cfcreator serve --lazy
With the
--lazyflag, the models will be loaded to RAM, and only the executing model will be moved to GPU RAM.So as an exchange, your RAM will be eaten up! 🤣
If you only want to try the SD basic endpoints, you may use:
cfcreator serve --focus sd.base
And if you only want to try the SD anime endpoints, you may use:
cfcreator serve --focus sd.anime
More usages could be found by:
cfcreator serve --help
Docker
Prepare
export TAG_NAME=cfcreator
git clone https://github.com/carefree0910/carefree-creator.git
cd carefree-creator
Build
docker build -t $TAG_NAME .
If your internet environment lands in China, it might be faster to build with Dockerfile.cn:
docker build -t $TAG_NAME -f Dockerfile.cn .
Run
docker run --gpus all --rm -p 8123:8123 $TAG_NAME:latest
Credits
- Stable Diffusion, the foundation of various generation methods.
- Stable Diffusion from runwayml, the adopted SD-inpainting method.
- Waifu Diffusion, the anime-finetuned version of Stable Diffusion.
- Real ESRGAN, the adopted Super Resolution methods.
- Latent Diffusion, the adopted Inpainting & Landscape Synthesis method.
- carefree-learn, the code base that has re-implemented all the models above and provided clean and handy APIs.
- And You! Thank you for watching!
Similar Projects
Discover other similar projects and AI models.
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
Image inpainting tool powered by SOTA AI Model. Remove any unwanted object, defect, people from your pictures or erase and replace(powered by stable diffusion) any thing on your pictures.
SD-XL 1.0-refiner Model Card !row01(01.png) Model !pipeline(pipeline.png) SDXL(https://arxiv.org/abs/2307.01952) consists of an ensemble of experts(https://arxiv.org/abs/2211.01324) pipeline for latent diffusion: In a first step, the base model (ava...
⚡ Flux.1-dev: Upscaler ControlNet ⚡ This is Flux.1-dev(https://huggingface.co/black-forest-labs/FLUX.1-dev) ControlNet for low resolution images developed by Jasper research team. How to use This model can be used directly with the diffusers library...
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...