Code Monkey home page Code Monkey logo

stable-diffusion-webui-adverse-cleaner-tab's Introduction

stable-diffusion-webui-adverse-cleaner-tab

Adverse Cleaner as a tab extension for AUTOMATIC1111's webui.

Features

  • Easy to remove adversarial noise from a single image
  • Batch processing that can remove noise from multiple images.

Troubleshooting

  • ModuleNotFoundError: No module named 'cv2.ximgproc'

You need to manually install opencv-contrib-python because the webui uses opencv-python, so the extension can't modify the opencv package while running.

First you open the stable-diffusion-webui folder in terminal.

cd /path/to/stable-diffusion-webui

Activate venv,

./venv/Scripts/activate

Install opencv-contrib-python

pip install opencv-contrib-python

Screenshots

screenshot1

screenshot2

Related links

stable-diffusion-webui-adverse-cleaner-tab's People

Contributors

l4ph avatar p1atdev avatar w-e-w 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stable-diffusion-webui-adverse-cleaner-tab's Issues

has new error, git pull the S-D-webui new version , at 3/25

i have git pull the S-D-webui new version , at 3/25

and start S-D-webui has error,
how to solve this error:

Error executing callback ui_tabs_callback for D:\stable-diffusion-webui\extensions\stable-diffusion-webui-adverse-cleaner-tab\scripts\main.py
Traceback (most recent call last):
File "D:\stable-diffusion-webui\modules\script_callbacks.py", line 125, in ui_tabs_callback
res += c.callback() or []
File "D:\stable-diffusion-webui\extensions\stable-diffusion-webui-adverse-cleaner-tab\scripts\main.py", line 197, in on_ui_tabs
start_btn.click(
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\events.py", line 129, in call
dep, dep_index = self.trigger.set_event_trigger(
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 195, in set_event_trigger
check_function_inputs_match(fn, inputs, inputs_as_dict)
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 940, in check_function_inputs_match
if not is_special_typed_parameter(name):
File "D:\stable-diffusion-webui\venv\lib\site-packages\gradio\utils.py", line 929, in is_special_typed_parameter
is_event_data = issubclass(parameter_types.get(name, int), EventData)
TypeError: issubclass() arg 1 must be a class

cv2.ximgproc

hi, i can't run extension a of cv2.ximgproc.

I tried to reinstall it using these commands but it didn't work.

pip uninstall opencv-contrib-python opencv-python

pip install opencv-contrib-python

log :

Error running install.py for extension extensions\stable-diffusion-webui-adverse-cleaner-tab.
Command: "E:\ia\stable-diffusion-webui\venv\Scripts\python.exe" "extensions\stable-diffusion-webui-adverse-cleaner-tab\install.py"
Error code: 1
stdout:
stderr: Traceback (most recent call last):
File "E:\ia\stable-diffusion-webui\extensions\stable-diffusion-webui-adverse-cleaner-tab\install.py", line 3, in
if not launch.is_installed("cv2.ximgproc"):
File "E:\ia\stable-diffusion-webui\launch.py", line 127, in is_installed
spec = importlib.util.find_spec(package)
File "C:\Python310\lib\importlib\util.py", line 114, in find_spec
raise ValueError('{}.spec is None'.format(name))
ValueError: cv2.ximgproc.spec is None

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.