Giter VIP home page Giter VIP logo

sd-webui-stable-makeup's Introduction

sd-webui-Stable-Makeup

sm_teaser

About

The extension sd-webui-Stable-Makeup brings Xiaojiu-z's Stable-Makeup to the stable-diffusion-webui, making it easy to use. You can find the original project here: Xiaojiu-z/Stable-Makeup.

I'm new to making extensions, so if there are any problems, feel free to help me fix them. I've tried to make it user-friendly by allowing it to download all models by itself.

This extension has advantages over the original Stable-Makeup, such as working with smaller faces. However, it also has some disadvantages, like making the process slower. You can downscale the image to something like 512x512 to make it much faster.

webui-vs-orginal

Screenshot 2024-05-23 005128

Installation

  1. Open the Extensions tab.
  2. Click on Install from URL.
  3. Enter the URL for the extension's git repository.
  4. Click Install.
  5. Restart WebUI.
  6. sometimes at first you need to run automatic1111 two times or more to install and download the necessary

Important Notes:

  1. The first installation will take some time.
  2. Also, add --disable-safe-unpickle to webui-user.bat next to COMMANDLINE_ARGS (I wish if someone can help me fix this).
  3. Don't use --no-half, as this will make it slower.
  4. sometimes at first you need to run automatic1111 two times or more to install and download the necessary

To-Do List

  • Make it work with many faces
  • Make it faster by adding an option to downscale images
  • Make it work with Stable Diffusion WebUI model (need someone to help with that)
  • Try to remove box from some photos by adding seg (for now, if you face this issue, upscale the image)

sd-webui-stable-makeup's People

Contributors

kigy1 avatar

Stargazers

 avatar  avatar Jonathan Fischoff avatar alleniver avatar Shika Sensei avatar Samuel avatar  avatar  avatar  avatar  avatar Antonio Vaca Cozar avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

harrywenjie

sd-webui-stable-makeup's Issues

errors

its not working at all giving so many errors

No module named 'launch'

/sd-webui-Stable-Makeup/install.py", line 1, in
*** import launch
*** ModuleNotFoundError: No module named 'launch'
add Codeadd Markdown

errors

*** Error verifying pickled file from /opt/conda/lib/python3.10/site-packages/spiga/models/weights/spiga_300wpublic.pt
*** The file may be malicious, so the program is not going to read it.
*** You can skip this check with --disable-safe-unpickle commandline argument.


Traceback (most recent call last):
  File "/kaggle/working/stable-diffusion-webui/modules/safe.py", line 83, in check_pt
    with zipfile.ZipFile(filename) as z:
  File "/opt/conda/lib/python3.10/zipfile.py", line 1269, in __init__
    self._RealGetContents()
  File "/opt/conda/lib/python3.10/zipfile.py", line 1336, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/kaggle/working/stable-diffusion-webui/modules/safe.py", line 137, in load_with_extra
    check_pt(filename, extra_handler)
  File "/kaggle/working/stable-diffusion-webui/modules/safe.py", line 104, in check_pt
    unpickler.load()
  File "/opt/conda/lib/python3.10/pickle.py", line 1213, in load
    dispatch[key[0]](self)
KeyError: 60

*** Error loading script: template_on_tab.py
Traceback (most recent call last):
File "/kaggle/working/stable-diffusion-webui/modules/scripts.py", line 508, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "/kaggle/working/stable-diffusion-webui/modules/script_loading.py", line 13, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/kaggle/working/stable-diffusion-webui/extensions/sd-webui-Stable-Makeup/scripts/template_on_tab.py", line 10, in
from spiga_draw import *
File "/kaggle/working/stable-diffusion-webui/extensions/sd-webui-Stable-Makeup/spiga_draw.py", line 10, in
processor = SPIGAFramework(ModelConfig("300wpublic"))
File "/opt/conda/lib/python3.10/site-packages/spiga/inference/framework.py", line 44, in init
self.model.load_state_dict(model_state_dict)
File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2140, in load_state_dict
raise TypeError(f"Expected state_dict to be dict-like, got {type(state_dict)}.")
TypeError: Expected state_dict to be dict-like, got <class 'NoneType'>.

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.