Git Product home page Git Product logo

krita-ai-diffusion's Introduction

Generative AI for Krita

โœจFeatures | โญณ Download | ๐Ÿ› ๏ธInstallation | ๐ŸŽž๏ธ Video | ๐Ÿ–ผ๏ธScreenshots | ๐Ÿ“–Wiki | ๐Ÿ’ฌDiscussion

This is a plugin to use generative AI in image painting and editing workflows from within Krita. For a more visual introduction, see www.interstice.cloud

The main goals of this project are:

  • Precision and Control. Creating entire images from text can be unpredictable. To get the result you envision, you can restrict generation to selections, refine existing content with a variable degree of strength, focus text on image regions, and guide generation with reference images, sketches, line art, depth maps, and more.
  • Workflow Integration. Most image generation tools focus heavily on AI parameters. This project aims to be an unobtrusive tool that integrates and synergizes with image editing workflows in Krita. Draw, paint, edit and generate seamlessly without worrying about resolution and technical details.
  • Local, Open, Free. We are committed to open source models. Customize presets, bring your own models, and run everything local on your hardware. Cloud generation is also available to get started quickly without heavy investment.

Watch video demo

Features

  • Inpainting: Use selections for generative fill, expand, to add or remove objects
  • Live Painting: Let AI interpret your canvas in real time for immediate feedback. Watch Video
  • Upscaling: Upscale and enrich images to 4k, 8k and beyond without running out of memory.
  • Stable Diffusion: Supports Stable Diffusion 1.5, and XL. Partial support for SD3.
  • ControlNet: Scribble, Line art, Canny edge, Pose, Depth, Normals, Segmentation, +more
  • IP-Adapter: Reference images, Style and composition transfer, Face swap
  • Regions: Assign individual text descriptions to image areas defined by layers.
  • Job Queue: Queue and cancel generation jobs while working on your image.
  • History: Preview results and browse previous generations and prompts at any time.
  • Strong Defaults: Versatile default style presets allow for a streamlined UI.
  • Customization: Create your own presets - custom checkpoints, LoRA, samplers and more.

Getting Started

See the Plugin Installation Guide for instructions.

A concise (more technical) version is below:

Requirements

  • Windows, Linux, MacOS
  • On Linux/Mac: Python + venv must be installed
    • recommended version: 3.11 or 3.10
    • usually available via package manager, eg. apt install python3-venv

Hardware support

To run locally a powerful graphics card with at least 6 GB VRAM (NVIDIA) is recommended. Otherwise generating images will take very long or may fail due to insufficient memory!

NVIDIA GPUsupported via CUDA
AMD GPUlimited support, DirectML on Windows, ROCm on Linux (custom install)
Apple Siliconcommunity support, MPS on macOS
CPUsupported, but very slow

Installation

  1. If you haven't yet, go and install Krita! Required version: 5.2.0 or newer
  2. Download the plugin.
  3. Start Krita and install the plugin via Tools โ–ธ Scripts โ–ธ Import Python Plugin from File...
  4. Restart Krita and create a new document or open an existing image.
  5. To show the plugin docker: Settings โ€ฃ Dockers โ€ฃ AI Image Generation.
  6. In the plugin docker, click "Configure" to start local server installation or connect.

Note

If you encounter problems please check the FAQ / list of common issues for solutions.

Optional: Custom ComfyUI Server

The plugin uses ComfyUI as backend. As an alternative to the automatic installation, you can install it manually or use an existing installation. If the server is already running locally before starting Krita, the plugin will automatically try to connect. Using a remote server is also possible this way.

Please check the list of required extensions and models to make sure your installation is compatible.

Optional: Object selection tools (Segmentation)

If you're looking for a way to easily select objects in the image, there is a separate plugin which adds AI segmentation tools.

Contributing

Contributions are very welcome! Check the contributing guide to get started.

Gallery

Live painting with regions (Click for video) Watch video demo

Inpainting on a photo using a realistic model

Reworking and adding content to an AI generated image

Adding detail and iteratively refining small parts of the image

Modifying the pose vector layer to control character stances (Click for video) Watch video demo

Control layers: Scribble, Line art, Depth map, Pose Scribble control layer Line art control layer Depth map control layer Pose control layer

Technology

krita-ai-diffusion's People

Contributors

acly avatar danamir avatar jellydreams avatar yantoz avatar gergelyszaz avatar vtvrv avatar feepingcreature avatar huchenlei avatar daniel-richter avatar drewwalkup avatar fezinaru avatar miabrahams avatar moiri-gamboni avatar dyscorv avatar x1y2z3456 avatar sejoung 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.