Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐ŸŽจ Python์œผ๋กœ ๋งŒ๋“  ๋ฌดํ•œ ๋“œ๋กœ์ž‰ ๋ณด๋“œ

์‹œ์Šคํ…œ ๋ฐ ์ธํ”„๋ผ

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

carefree-drawboard ๐ŸŽจ

Carefree Drawboard


โœจ Build performant, business ready web apps in pure Python.


Open In Colab PyPI version Checks License

Documentation | Examples


Installation

carefree-drawboard ๐ŸŽจ requires the following to get started:

To be exact, we need ^14.13.1 || ^16 || >=18 because of the [email protected] package.

pip install carefree-drawboard
npm install --global yarn

Although we'll always try to help you install the frontend packages, it is recommended to install them beforehands because you can receive much more verbose:

cfdraw install

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-drawboard.git
cd carefree-drawboard
pip install -e .

Your first carefree-drawboard ๐ŸŽจ App

Create a folder (e.g., my_fancy_app) wherever you like, get into it, and run

cfdraw init

This command will write two files to your folder (my_fancy_app). After which you can run the app in development mode:

cfdraw run

When you run this command for the first time and have not called cfdraw install before, we will use yarn to install the JavaScript dependencies for you, which may be quite slow!

And you should see your app running at http://localhost:5123. Now you can play with the generated app.py file and see warm reload (yeah, not hot enough because we rely on the reload provided by uvicorn ๐Ÿคฃ).

Notice that the generated template implements a GaussianBlur plugin, which requires an image to pop up. You can upload an image either by dragging it directly to the drawboard ๐ŸŽจ, or by clicking the Plus button at the top right corner and select Upload Image.

Demo Video

Examples

  • Getting Started, which is a more detailed tutorial to guide you step by step.
  • Image Processing, which implements three common image processing plugins. It also shows how to use the IPluginGroup in carefree-drawboard ๐ŸŽจ to group the plugins together and make the UI cleaner.
  • Stable Diffusion, which utilizes the famous diffusers library and implements two common SD plugins.
  • Caption & Diffusion, which shows how can we combine two different kinds of models (Image Captioning & Stable Diffusion) and make them work together.
  • Stable Diffusion Inpainting, which shows how can we implement complicated plugins like StableDiffusionInpainting very easily.
  • Stable Diffusion ControlNet, which shows how can we decouple complicated workflows like ControlNet into separate, lightweight, and reusable plugins very easily.
  • Carefree Creator, which contains a free, public-available demo of the real world business ready product we are selling. It is a web app with tons of AI magics, but still remains easy for carefree-drawboard ๐ŸŽจ to implement them.

Status

carefree-drawboard ๐ŸŽจ is at a VERY early stage (it is launched in April 2023), so although it could be production ready (see here for more details), it does not have many real world use cases (yet).

But we will rapidly update this project and launch new features every week (or, even everyday), so โญ star and ๐Ÿ‘€ watch this repository to stay up to date!

Contributing

  • It might be the best to start from the Contributing page.
  • If you are truly an enthusiast, you may check out our Roadmap, pick up what you are interested, and create the corresponding PR!

Style Guide

If you are still interested: carefree-drawboard ๐ŸŽจ adopted black and mypy to stylize its codes, so you may need to check the format, coding style and type hint with them before your codes could actually be merged.

Q&A

Where are my creations stored?

They are stored on your local machine, so you're 100% privacy secured!

The default dir is ~/.cache/carefree-draw, but you can change it manually

Why Using ๐ŸŽจ All Around?

Good question, so I asked GPT-4, it said:

๐ŸŽจ (Artist Palette) - This emoji represents creativity, design, and artistic expression, which are all key aspects of the carefree-drawboard ๐ŸŽจ platform.

Cool!

Will there be a Discord Community?

Many thanks to JSDu, who created a Discord channel for my projects!!

ๅฆ‚ๆžœๆœ‰็ƒญๅฟƒ่ง‚ไผ—ๅฏน่ฟ™ไธช้กน็›ฎๆ„Ÿๅ…ด่ถฃๅนถๆ„ฟๆ„ๅธฎๅฟ™ๅปบ็ซ‹ไธ€ไธชไธญๆ–‡็คพๅŒบ๏ผŒๆฌข่ฟŽ่”็ณปๆˆ‘๏ผŒๆˆ‘ไผš้žๅธธๆ„Ÿๆฟ€็š„๏ผ๏ผ

ๆ›ดๆ–ฐ๏ผš ็ƒญๅฟƒ่ง‚ไผ—๏ผˆJSDu๏ผ‰ๅ‡บ็Žฐๅ•ฆ๏ผ้žๅธธๆ„Ÿ่ฐข๏ผ๏ผ๏ผ๏ผˆ็Œ›ๆˆณ่ฟ™้‡ŒๅŠ ๅ…ฅๆˆ‘ไปฌ๏ผ๏ผ‰

Why do you build this project?

Also check Design Philosophy.

In short, I believe that:

  • Infinite Drawboard can unleash Infinite possibilities.
  • If we can use Python to interact with it and even craft new plugins for it, it will be even better.

So here comes the carefree-drawboard ๐ŸŽจ, which is a Python interactible/customizable Infinite Drawboard. ๐ŸŽ‰

My another motivation is that I love HuggingFace ๐Ÿค— models, and would love to use most if not all of them in one, single, integrated space. This actually inspires me the following idea: to build an 'AI Operation System' which can drive all the 'Softwares' (the AI models) and make them work together seamlessly.

See Brainstorm for more details!

My final goal is to make carefree-drawboard ๐ŸŽจ a platform which can be used to build all kinds of AI applications. I know it will be a long journey but it is definitely worth trying.

And the middle-term goal is to make ๐Ÿค— & ๐ŸŽจ appear together more often. We may think ๐Ÿค—๐ŸŽจ as HuggingFace models using a powerful palette to create the world (with AI)!

Credits

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ