Skip to content

[feat]: Router in API with model opennsfw2 and nsfw-detector #1

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

Open
wants to merge 46 commits into
base: master
Choose a base branch
from

Conversation

Cryptoverso
Copy link

feat: add NSFW detection models (nsfw-detector and OpenNSFW2)

  • Added the nsfw_mobilenet2.224x224.h5 model to apps/pyserver/app/nsfw_model/, used for detecting NSFW (Not Safe for Work) content.
  • Integrated OpenNSFW2 model from UOL to enhance detection accuracy.
  • These models classify images into categories such as: porn, hentai, drawings, sexy, and neutral.

Example output:
{
"/tmp/tmp.jpg": {
"drawings": 0.0057,
"hentai": 0.0006,
"neutral": 0.3629,
"porn": 0.0116,
"sexy": 0.6192
}
}

  • Models align with the detection logic of https://nsfwjs.com.
  • Updated existing object detection endpoints under the /oracle route instead of the default path.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant