Trained on 300,000 labled pictures:
porn
- pornography imageshentai
- hentai images, but also includes pornographic drawingssexy
- sexually explicit images, but not pornography. Think nude photos, playboy, bikini, etc.neutral
- safe for work neutral images of everyday things and peopledrawings
- safe for work drawings (including anime)
pytorch 0.4.0
python train.py --model resnet101 --epochs 100
I have tried various methods include some pretrained models like resnet/inceptionv3 and data augumentation and finetuing.
Here are some tips which make a greate effect to the final result:
- data augumentation - make image rotaed,shifted,cropped,zoomed,flipped
- use pretrained model - use pretrained model by torchvision
- lock some layer and finetune FC - after train_init.py then lock some layer just finetune the FC
- adjust batch size - adjust the batch size meke it faster
- adjust learning rate - make lr dynamic when training in order to get saddle point
Thanks for my wife FeiFei Li. She gave me lots of encouragement. And made the beautiful logo for NSFW preject.
Thanks for my workmate Kuai Li. He gave me lots of good suggestion.
If you have good points.Join us!
You can attach me by:
[email protected]
https://twitter.com/yangbisheng2009