ebroky/nsfw
๐ Detect NSFW content with this lightweight HTTP API. Ideal for CPU machines, it identifies sensitive images quickly and efficiently.
What's novel
๐ Detect NSFW content with this lightweight HTTP API. Ideal for CPU machines, it identifies sensitive images quickly and efficiently.
Code Analysis
13 files read ยท 4 roundsA FastAPI HTTP service that wraps a pre-trained ONNX NSFW detection model, accepting image URLs or file uploads, running inference, and returning SFW/NSFW probability scores.
Strengths
The ONNX model is loaded once at startup for performance, and the image preprocessing pipeline (resize, normalize, GIF frame extraction) is reasonably well-implemented with proper edge case handling for different image formats.
Weaknesses
Massive code duplication between check() and post_check(), significant dead code (rate limiting, DB models, email validation), no tests, and the README describes a completely different product (desktop app with .exe/.dmg) than what the code actually is (Docker-based Python API service).
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
31
Contributors
2
Files
34
Active weeks
5
Repository
Language
Python
Stars
1
Forks
1
License
AGPL-3.0