Skip to content

🔥🔥NSFW implement in pytorch(色情图&性感图识别,本程序经过了线上大数据集测试,性能优异效果良好)🔥🔥

Notifications You must be signed in to change notification settings

shuDaoNan9/nsfw-resnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

NSFW

Python 2.6 Pytorch 0.4.0 cuDNN 7.3.1 License CC BY-NC

Description

Trained on 300,000 labled pictures:

  • porn - pornography images
  • hentai - hentai images, but also includes pornographic drawings
  • sexy - sexually explicit images, but not pornography. Think nude photos, playboy, bikini, etc.
  • neutral - safe for work neutral images of everyday things and people
  • drawings - safe for work drawings (including anime)

Requeriments

pytorch 0.4.0

Usage

python train.py --model resnet101 --epochs 100

Current status

Detail

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

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.

Join us

If you have good points.Join us! You can attach me by:
[email protected]
https://twitter.com/yangbisheng2009

About

🔥🔥NSFW implement in pytorch(色情图&性感图识别,本程序经过了线上大数据集测试,性能优异效果良好)🔥🔥

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.7%
  • Shell 2.3%