Coder Social home page Coder Social logo

leodotpy / sd-pixel Goto Github PK

View Code? Open in Web Editor NEW
45.0 2.0 3.0 1.53 MB

Quickly and easily perform downscaling, color palette limiting, and other useful pixel art effects through the extras tab.

License: GNU Affero General Public License v3.0

Python 100.00%
ai-art automatic1111 extension pixel-art stable-diffusion stable-diffusion-webui webui

sd-pixel's Introduction

Pixel

Adds various useful tools for pixel art to the Extras tab.

Purpose

This extension is used to fix asymmetrical pixels in AI-generated pixel art through downscaling. It also can be used to limit color palette and clamp grayscale values to get more stylized results. You can also use the rescale feature to get a higher resolution image (best for preview on the webui canvas).

For use with this webui

Installation Guide

Install from webui's Extensions tab.

Extensions > Install from URL > Paste https://github.com/Leodotpy/sd-pixel.git > Install

Or install via the extensions menu by searching for "Pixel".

(Restart the webui via the Extensions menu to load the extension. If you run into issues loading the extension, reboot the app completely)

Feature Comparison Examples

Effect Before After
Downscale
Color Palette Limit
Gray Limit bad apple

Supported Downscaling Modes

Original Nearest Bicubic Bilinear Hamming Lanczos

Credits

  • Thanks AUTOMATIC1111 for an awesome sd webui

sd-pixel's People

Contributors

leodotpy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sd-pixel's Issues

The extension can't run on WebUI 1.3.0

•  version: [v1.3.0]
•  python: 3.10.6  
•  torch: 2.0.1+cu118  
•  xformers: 0.0.17  
•  gradio: 3.31.0  
•  checkpoint: [da5224a242]

The extension can't run on WebUI. No extra tabs or extra buttons.
After shutting down and restarting the server a few warnings displayed in the console.

E:\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py:1002: UserWarning: You have unused kwarg parameters in Checkbox, please remove them: {'on_change': <bound method ScriptPostprocessingUpscale.on_pixelate_change of <postprocessing_pixel.py.ScriptPostprocessingUpscale object at 0x000001B493D30EB0>>, 'hover_text': 'Enable or disable pixelation.'}
  IOComponent.__init__(
E:\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py:1002: UserWarning: You have unused kwarg parameters in Checkbox, please remove them: {'enabled': False, 'hover_text': 'Enable or disable rescaling.'}
  IOComponent.__init__(
E:\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py:836: UserWarning: You have unused kwarg parameters in Slider, please remove them: {'enabled': True, 'hover_text': 'Adjust the downscaling factor.'}
  IOComponent.__init__(
E:\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py:1002: UserWarning: You have unused kwarg parameters in Checkbox, please remove them: {'on_change': <bound method ScriptPostprocessingUpscale.on_pixelate_change of <postprocessing_pixel.py.ScriptPostprocessingUpscale object at 0x000001B493D30EB0>>, 'hover_text': 'Enable or disable palette limit.'}
  IOComponent.__init__(
E:\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py:836: UserWarning: You have unused kwarg parameters in Slider, please remove them: {'enabled': True, 'on_change': <bound method ScriptPostprocessingUpscale.on_palette_size_change of <postprocessing_pixel.py.ScriptPostprocessingUpscale object at 0x000001B493D30EB0>>, 'hover_text': 'Adjust the palette size.'}
  IOComponent.__init__(
E:\sd\stable-diffusion-webui\venv\lib\site-packages\gradio\components.py:836: UserWarning: You have unused kwarg parameters in Slider, please remove them: {'enabled': True, 'on_change': <bound method ScriptPostprocessingUpscale.on_graylimit_change of <postprocessing_pixel.py.ScriptPostprocessingUpscale object at 0x000001B493D30EB0>>, 'hover_text': 'Adjust the graylimit value.'}
  IOComponent.__init__(

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.