How alex000kim/nsfw_data_scraper works
NSFW Data Scraper collects labeled images for five categories, prepares train and test sets, and supports CNN training. The documented workflow is URL collection, image downloading, dataset cleanup and assembly, test splitting, then notebook-based model training. Optional downloads add drawing and neutral images from external datasets. No source excerpts were provided, so relationships below rely on README documentation; implementation details beyond that are omitted.
Main entry points: 1_get_urls_.sh Harvest image URLs · raw_data Raw URL lists · 2_download_from_urls_.sh Download images · 3_optional_download_drawings_.sh Download drawings
Components 17
Image collection
- Category URL lists
scripts/source_urls - Harvest image URLs
scripts/1_get_urls_.sh - Raw URL lists
raw_data - Download images
scripts/2_download_from_urls_.sh - Collected images
raw_data - Download drawings
scripts/3_optional_download_drawings_.sh - Download neutral images
scripts/4_optional_download_neutral_.sh
Dataset preparation
- Build training set
scripts/5_create_train_.sh - Training images
scripts/5_create_train_.sh - Create test split
scripts/6_create_test_.sh - Test images
scripts/6_create_test_.sh
Model training
- Train CNN classifier
train_model.ipynb
Other components
- Dataset operator
- Ripme
- Danbooru2018
- Caltech256
- fastai
Connections 16
- Dataset operator → Harvest image URLs: runs collection
README.md - Category URL lists → Harvest image URLs: provides URLs
README.md - Harvest image URLs → Ripme: uses
README.md - Harvest image URLs → Raw URL lists: writes URLs
README.md - Raw URL lists → Download images: supplies URLs
README.md - Download images → Collected images: downloads images
README.md - Dataset operator → Download drawings: may run
README.md - Download drawings → Danbooru2018: downloads from
README.md - Dataset operator → Download neutral images: may run
README.md - Download neutral images → Caltech256: downloads from
README.md - Collected images → Build training set: provides images
README.md - Build training set → Training images: creates and cleans
README.md - Training images → Create test split: provides images
README.md - Create test split → Test images: moves random images
README.md - Dataset operator → Train CNN classifier: runs notebook
README.md - Train CNN classifier → fastai: requires
README.md