A NSFW checker for Web UI. Replaces non-worksafe images with black squares. Install it from UI.
automatic1111 / stable-diffusion-webui-nsfw-censor Goto Github PK
View Code? Open in Web Editor NEWstable-diffusion-webui-nsfw-censor
stable-diffusion-webui-nsfw-censor
A NSFW checker for Web UI. Replaces non-worksafe images with black squares. Install it from UI.
I'm investigating this issue:
Kilvoctu/aiyabot#103
In short, a bot using A1111 API can bypass nsfw extension and generate nsfw images as normal.
It appears that extensions only apply when image is generated from A1111 web UI, but not when called via API.
So if nsfw checker was built-in, it would help with this issue I'm having.
most of the pictures are not accurately judged as nsfw, I many plain face-only pictures will be judged as nsfw and be rendered as black which is most of the images.
Anyone know how this plugin works with Comfy UI please?
Inaccurate test results, 80% of the time will be black image
Why is it detecting NSFW even when I upload a some image?
image is:
my code:
def check_image(input_image):
test_image = Image.open(input_image)
x_image = np.array(test_image)
_, has_nsfw_concept = check_safety(x_image)
return has_nsfw_concept
print(check_image("bug.png"))
print result:
Potential NSFW content was detected in one or more images. A black image will be returned instead. Try again with a different prompt and/or seed.
[True]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.