Super efficient CPU-optimized Discord bot that detects and deletes NSFW images using Marqo/nsfw-image-detection-384 model
Python
0
1 commits
updated Apr 6, 2026
CPU-optimized Discord bot that detects and deletes NSFW images using Marqo/nsfw-image-detection-384 model.
# Install dependencies
pip install -r requirements.txt
# Optional: Install ONNX for faster CPU inference
pip install optimum[onnxruntime]
# Run
export DISCORD_TOKEN="your_bot_token_here"
python efficient_nsfw_bot.py
Edit Config class in the code to adjust:
nsfw_threshold: Detection sensitivity (default 0.7)max_image_size: Max image dimension (default 2048)clear_cache_interval: GC frequency (default 10)max_concurrent_checks: Parallel download limit (default 3)Super efficient CPU-optimized Discord bot that detects and deletes NSFW images using Marqo/nsfw-image-detection-384 model
Python
0
1 commits
updated Apr 6, 2026
CPU-optimized Discord bot that detects and deletes NSFW images using Marqo/nsfw-image-detection-384 model.
# Install dependencies
pip install -r requirements.txt
# Optional: Install ONNX for faster CPU inference
pip install optimum[onnxruntime]
# Run
export DISCORD_TOKEN="your_bot_token_here"
python efficient_nsfw_bot.py
Edit Config class in the code to adjust:
nsfw_threshold: Detection sensitivity (default 0.7)max_image_size: Max image dimension (default 2048)clear_cache_interval: GC frequency (default 10)max_concurrent_checks: Parallel download limit (default 3)