135 karma · joined Oct 7, 2022 (4y ago) · 27 submissions
comment 3y ago · link · parent
`carefree-drawboard` made assumptions that:
* It is a painful process to spend time thinking and designing the layout of various UIs.
* Most user interactions can be abstracted into "send something to server" & "receive something to server".
* A completely decoupled system is what we dreamed of, because it can be easily customized, extended and maintained.
* An infinite drawboard is capable of building (almost) all the desired applications.
So, we derived the following design principles:
* Everything is a plugin on an infinite drawboard.
* Plugin Styles should be fully declarative and should contain a smart layout system (which should also be declarative).
* Plugin Logics should only have access to the data from:
> Itself (e.g., some input fields declared by the Styles).
> The selecting Node(s).
Under these principles, no matter what programming languages (even JSON, if your plugins contain no logics) you are using, you can easily extend the functionality of `carefree-drawboard` by writing plugins.
And since:
* We love Python.
So (currently) we provide a python binding, the `cfdraw` package, for you to write plugins (both styles and logics) using Python. However, theoretically speaking, any backend programming languages are able to write plugins that work with `carefree-drawboard`. I've already wrote a brief introduction in the wiki page about this topic, if you are really interested, please check it out and send feedbacks to me!
2.
Show HN: AI-powered infinite drawboard in Python(github.com ↗)
3 points · by carefree0910 · 3y ago · 1 comment
comment 4y ago · link · parent
If I didn't get you wrong, maybe another project (carefree-learn) meets your needs better: https://github.com/carefree0910/carefree-learn.
This is an old project, with a VERY outdated document, but all the features of carefree-creator can be achieved with one or few lines of code from carefree-learn.
Take the typical text to image feature as an example, here's a piece of minimal-working-codes:
```python
import torch, cflearn
api = cflearn.cv.DiffusionAPI.from_sd("cuda:0", use_half=True)
api.txt2img("a beautiful, fantasy landscape", "out.png") # this will save the generated image to `out.png`
```
And you can install it with `pip install carefree-learn[cv]` XD.
comment 4y ago · link · parent
And since ONNX is not a forced requirement, maybe the following guides can make things easier:
1. Install `carefree-learn` instead of `carefree-learn[cv]`
2. Install the following packages manually:
ftfy regex lmdb albumentations carefree-cv
> I'll consider removing the `onnx` requirements from the `cv` spec in the near future!
comment 4y ago · link · parent
And for your requirement, actually carefree-creator is built to be a stand-alone backend server, so you can indeed customize your own frontend if you like, as I mentioned here (the first point): https://github.com/carefree0910/carefree-creator/issues/11#i...
And if you are interested in customizing carefree-creator itself (like integrating your fancy model into it), I haven't written any documentation yet, but here are some brief guides: https://github.com/carefree0910/carefree-creator/issues/8#is...
Feel free to contact me if you encountered any trouble!
comment 4y ago · link · parent
Here's the onnx-simplifier project: https://pypi.org/project/onnx-simplifier/, looks like it already goes to 0.4.8.
I'll try to reproduce the error, before that maybe you can try the Google Colab solution:
https://colab.research.google.com/github/carefree0910/carefr...
comment 4y ago · link · parent
Just as you said, I'm trying to make it a studio-ish product which combines various AI magics, so they can work together and create something that a single AI model can hardly achieve.
Here's my future plan: I'm going to integrate natural language generation, music generation, video generation... Into this project, so you can make something really cool with and only with AI!
And the most important part: it will always be completely open source and free, and (maybe) a Google Colab is enough to serve all these stuffs XD.
comment 4y ago · link · parent
https://github.com/carefree0910/carefree-creator/issues/2
Apart from the technical concerns (huge code base, lack of documentation, etc.), I'm also pretty afraid of someone (or some company) just taking away the codes and make profits or even claim that they make it, because webui codes (especially as production ready as this project) are something that's easy to copy and HARD to protect...
But if more and more people get to know this project, this concern will no longer exist, and I'll definitely open source the webui codes XD!
After all, I do want more and more people to be able to enjoy the current AI magics, for free, and forever!
comment 4y ago · link · parent
By saying 'better', I'm not actually 'willing' to become better. In fact, I enjoy drawing even if the outcomes are 'bad'.
The hard part is, when I want to draw something 'concrete', I can't... For example, a story between a boy and a girl - The only thing I can do is to draw two sticks in order to make them consistent frame by frame XD.
So yes, I have to admit that I still want to share my creations with others, and without being better I can hardly do so... I think artists like Picasso are at another level, because they might treat art as their whole life, and might have the ability to focus and only focus on their own arts.
And me, as a normal person, will still need some compliment XD.
comment 4y ago · link · parent
https://colab.research.google.com/github/carefree0910/carefr...
Which means you can use the Google Colab as the product's backend, so you can enjoy all the AI magics for free forever XD.
25.
Show HN: AI magics meet Infinite draw board(github.com ↗)
200 points · by carefree0910 · 4y ago · 69 comments