GithubHelp home page GithubHelp logo

carefree0910 / carefree-drawboard Goto Github PK

View Code? Open in Web Editor NEW
939.0 939.0 129.0 7.12 MB

๐ŸŽจ Infinite Drawboard in Python

Home Page: https://drawboard-demo.nolibox.com

License: Apache License 2.0

Python 34.40% HTML 0.15% TypeScript 65.39% SCSS 0.05%
drawboard framework fullstack infrastructure python stable-diffusion web

carefree-drawboard's Issues

Unable to install frontend packages

Hello!

I successfully installed carefree-drawboard=0.0.2a0 by pip install -e ..

But when I run cfdraw run in the examples/carefree_creator, the following error occurs, and those urls are invalid.

image
image

blank page

Hi, looks really interesting project.

I follow the installation using conda env and when I run cfdraw run and I go to http://localhost:5123/ I get a blank white page ;-(

What am I missing

Setup is missing package "regex"

Describe the bug
When launching the first time, a message error appears :

    import regex as re
ModuleNotFoundError: No module named 'regex'

To Reproduce
Steps to reproduce the behavior:

  1. install via git clone and pip install -e ., or pip install carefree-drawboard
  2. launch any cfdraw command line (i.e init, run ...)
  3. See error

Solution
Simply install regex, or add it to setup.py .

pip install regex

Return data from selecting multiple overlapping images

Hi~

I'm creating a new plugin to merge the two images based on this nice UI, but I'm having some problems.

My plugin is defined as follows:

class Fusing(IFieldsPlugin):
    @property
    def settings(self) -> IPluginSettings:
        return IPluginSettings(
            ...
            ),
        )

    async def process(self, data: ISocketRequest) -> List[Image.Image]:
        url_nodes = self.filter(data.nodeDataList, SingleNodeType.IMAGE)
        img_url0 = url_nodes[0].src
        img_url1 = url_nodes[1].src
        img0 = Image.open(BytesIO(requests.get(img_url0).content))
        img1 = Image.open(BytesIO(requests.get(img_url1).content))
        ...
        return img_fused


class ImagesFollowers(IPluginGroup):
    @property
    def settings(self) -> IPluginSettings:
        return IPluginSettings(
            ...
            nodeConstraintRules=NodeConstraintRules(
                exactly=[NodeConstraints.IMAGE, NodeConstraints.IMAGE]
            ),
            ...
            pluginInfo=IPluginGroupInfo(
                ...
                plugins={
                    "fusing": Fusing,
                },
            ),
        )

However, when I selected A and B in the drawboard (B covers A), I only get the full B and the part A that overlaps B.

image

the full B

the part A

If I expect to get more intuitive results full A, full B, and part B. Where can I modify the logic here?

This seems to involve React development, but I'm not familiar with it. ๐Ÿ˜ตโ€๐Ÿ’ซ

Would you please give me some advice, thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.