Coder Social home page Coder Social logo

sdpaint's Introduction

SdPaint

A simple python script that lets you paint on a canvas and sends that image every stroke to the automatic1111 API and updates the canvas when the image is generated

Updates

  • added the possibility to save the image created by pressing the s key
  • You can use the scrollmouse key to change the brush size

Installation

Run the Start.bat file and it will create a venv and install a few packages

Usage

Make sure you have the automatic1111 webui in API mode running in the background and that you have the controlnet extension installed and activated To start the webui with the API enabled modify the webui-user.bat file by adding --api after set COMMANDLINE_ARGS= You also need to make sure the "Allow other script to control this extension" option is enabled in the settings of control net

You can modify the payload.json file for a different prompt, seed or different controlnet model. When you save the json file the program will use it after the next brush stroke. in the extra folder there are the names of different controlnet models you may have. replace this part "control_sd15_scribble [fef5e48e]", in the Payload.json with a different one from the modelnames.txt left mouse to draw and middlemouse to erase press backspace to erase the image. the program is bound to 512x512 images right now and doesn't have the ability to save the image right now. I may add more features at a later time.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

sdpaint's People

Contributors

houseofsecrets avatar svenneve avatar

Stargazers

 avatar

Watchers

 avatar

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.