Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SafeVision

SafeVision is an advanced, highly customizable pipeline for downloading, managing, and training on NSFW and SFW datasets. Its primary goal is to detect and block NSFW content using machine learning, while offering flexible control over dataset sources, labeling, filtering, and model training.


πŸš€ Features

  • πŸ” Custom Dataset Collection: Download datasets containing NSFW and SFW images from various sources with fine-grained filters.
  • 🧠 Model Training: Train powerful deep learning models to detect NSFW content.
  • βš™οΈ Highly Configurable: Control sources, categories, labeling rules, preprocessing steps, and model hyperparameters.
  • πŸ”’ Content Filtering: Deploy the trained model to scan and block NSFW content in real-time.
  • πŸ—ƒοΈ Dataset Curator Mode: Review, relabel, or remove samples before training.

πŸ“¦ Installation

# Clone the repository
git clone https://github.com/yourusername/SafeVision.git
cd SafeVision

# (Optional) Create a virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

πŸ› οΈ Usage

# Download datasets with custom filters
python safevision.py download --type nsfw --source danbooru --limit 1000

# Train the detection model
python safevision.py train --epochs 10 --batch-size 32

# Use the model to scan images
python safevision.py detect --input /path/to/images

For full list of commands and options, run:

python safevision.py --help

🧩 Extensibility

SafeVision is built with modular components:

  • Add new data sources
  • Plug in custom image augmentations
  • Swap out models and loss functions
  • Integrate with existing moderation pipelines

🀝 Contributing

Contributions are welcome! If you have suggestions for features or improvements, feel free to open an issue or pull request.


⚠️ Disclaimer

This project is intended strictly for research and moderation purposes. Please use it responsibly and respect privacy, ethics, and legal constraints.


πŸ“„ License

MIT License. See LICENSE for details.

About

πŸ” SafeVision β€” A customizable pipeline for downloading NSFW/SFW datasets, training models, and detecting/blocking NSFW content using AI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages