-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add nsfw image censoring via config and checkbox #958
Conversation
activatable via config, uses CompVis/stable-diffusion-safety-checker
…add-nsfw-filter # Conflicts: # modules/async_worker.py
f26d2e7
to
3dc69a5
Compare
…lter # Conflicts: # modules/async_worker.py # modules/config.py
now has config path support as mentioned in #1418 |
makes both enabling via config and checkbox possible, where config overrides the checkbox value
guys when will be this ready to pull? thanks a lot, appreciate ur job |
@R080T Waiting for the review, probably mid/end of January as mentioned in Line 1 in 8e62a72
|
Thanks guys, I will be also available for testing as I work as a qa automation engineer for 3 years, feel free to contact me if you’re interested. Regards,RobiOn 31 Dec 2023, at 00:31, Manuel Schmid ***@***.***> wrote:
guys when will be this ready to pull? thanks a lot, appreciate ur job
@R080T Waiting for the review, probably mid/end of January as mentioned in https://github.com/lllyasviel/Fooocus/blob/8e62a72a63b30a3067d1a1bc3f8d226824bd9283/update_log.md?plain=1#L1
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
# Conflicts: # modules/advanced_parameters.py
Any plans to merge? Seems to be useful. Thanks |
Hey im trying to use the censor but im not sure how to add it to my file i created censor .py and add the lines on the other files but im still able to generate nsfw |
@Msumri please check if you've activated the feature either using the config or the checkbox in the developer debug mode. |
how do i activate it using config. im sorry im new to all this Just editing this. I totally overlooked the False value on the config file sorry |
i activated it but im still able to generate NSFW |
@Msumri first of all: it's important to note that you can activate this feature by using either config or checkbox. Second: is the text "Checking for NSFW content" shown as last step of each image generation? If not, ensure you have applied the necessary code adjustments to all 8 affected files. You can go to https://colab.research.google.com/github/lllyasviel/Fooocus/blob/main/fooocus_colab.ipynb and replace the content of the playbook with the following code to spin up a Colab instance with all changes of this feature branch:
If this works you've missed some changes (i've already double checked, works fine for me after checking the checkbox "Black Out NSFW"). |
Thanks it worked |
# Conflicts: # modules/advanced_parameters.py # modules/async_worker.py # modules/config.py # webui.py
fyi I was able to remove the dependency of diffusers by extracting the needed classes into extras. |
Description: We have successfully integrated the Fooocus API and are now attempting to incorporate NSFW models into our API built from the repo-- Fooocus-API. We have added the new models by replacing the existing folders in our repository with Expected Behavior: Actual Behavior: Additional Context:
|
@PrinceDisant please open an issue / discussion in Fooocus-API repository as this as nothing to do with Fooocus, where the feature has been implemented in develop and is working correctly in 2.4.0-RC1/2 as well as in my fork. |
@mashb1t Thank you for the prompt response, I will certainly open an issue there. |
* add nsfw image censoring activatable via config, uses CompVis/stable-diffusion-safety-checker * fix progressbar call for nsfw output * use config to set cache dir for safety checker * add checkbox black_out_nsfw makes both enabling via config and checkbox possible, where config overrides the checkbox value * fix: add missing diffusers package * feat: extract safety checker, remove dependency to diffusers * feat: make code compatible again after merge with main * feat: move censor to extras, optimize safety checker file handling * refactor: rename folder safety_checker_models to safety_checker
activatable via config, uses CompVis/stable-diffusion-safety-checker
closes #950