-
Notifications
You must be signed in to change notification settings - Fork 162
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
Generating NSFW compliant images #338
Comments
This sounds more like a problem with the specific model you're trying to use. Neither Fooocus nor Fooocus-API are censored and are generating NSFW images just fine. The screen recording you attached cannot be played, therefore more info about the model or what's happening is needed. |
Hi @davefojtik , thank you for your response. Let me see if I can clarify a few things. The issue is that it looks like new changes are coming to Fooocus library that appear to break Fooocus API requests from our initial tests. Let me provide some context We're testing out a new feature that utilizes models that help to filter OUT NSFW content – that black them out – introduced in this pull request The feature is available in the "develop" branch (here) and will be introduced into master soon I presume. We've tested this branch as well as @mashb1t's fork of Fooocus (here) and each time it breaks our text-to-image requests. We brought it up with the maintainers of the Fooocus library (here) and they suggested we raise the issue here. We did also set the NSFW config boolean to false and the request also produces an error. The only type of successful response we got was when making a ping pong request. We can confirm that the Fooocus library is running Steps to reproduce:
Result:
|
@pribeh the error message hints at apply_wildcards not being in modules.sdxl_styles, but both Fooocus and Fooocus-API have the method there. Is it possible that this method has been deleted by accident in your code? |
You can't just replace the supported Fooocus with a different fork, newer version or in this case even a dev branch and expect it to work flawlessly. The API is written for a specific version for a reason. I suggest waiting for it to be released both in Fooocus and then in Fooocus-API or helping to add it via pull request so it can be added in the next compatibility update. |
@PrinceDisant @pribeh After the preliminary test, nsfw checker is work well. If you want to block nsfw result, set you can do more test, if any questions, reply here |
It actually worked! I was able to integrate, I was missing the advanced params integration. Thank you so much @mrhan1993 and @mashb1t for this. Our users would not be able to use our app safely. |
Description:
Thank you for great job that you are doing with FooocusApi.
We are attempting to incorporate NSFW models into our API built from the repo-- Fooocus-API. We have added some new models to have the API generate NSFW compliant images. However, we are currently facing an issue where the app does not generate any images. Do you have any ideas on how to integrate nsfw into the repo?
Expected Behavior:
The app should generate NSFW compliant images.
Actual Behavior:
The models take an excessively long time to load and do not generate any images.
Attachments:
Additional Context:
We are using the following environment setup:
The text was updated successfully, but these errors were encountered: