PornDetector icon indicating copy to clipboard operation
PornDetector copied to clipboard

General use.

Open Rich700000000000 opened this issue 9 years ago • 15 comments

I was about to train this, when I had an Idea: Since I provide all the data for this, couldn't I technically use this to detect anything in an image? Like guns, or cars?

I'm not trying to be a prude and attack your hard work, I was just wondering.

Rich700000000000 avatar Jun 29 '16 17:06 Rich700000000000

You can try. The first classifier, based on key-points is ok. But not shoure about the second one - color histogram may be not very usefull to detect guns or cars.

bakwc avatar Jun 29 '16 17:06 bakwc

color histogram

Hmm.. Ok, what about indoor/outdoor? That seems really color/lighting based.

Rich700000000000 avatar Jun 29 '16 17:06 Rich700000000000

indoor/outdoor

That can be good for color/lighting based classifier, but not sure about key-points one :) You should try - why not.

bakwc avatar Jun 29 '16 17:06 bakwc

I want to try deep neural network with convolution laywers - may be it can provide a better quality. But not sure if it's possible to train on a small dataset.

bakwc avatar Jun 29 '16 17:06 bakwc

You can train on a small dataset, You just have to use more of the image.

Rich700000000000 avatar Jun 30 '16 04:06 Rich700000000000

I tried tensorflow convolution neural network, it gave even better quality. I checked again, current detector provide only 84% quality, and I was able to achieve 89% with tensorflow. I will upload soon.

bakwc avatar Jul 17 '16 20:07 bakwc

Hey what about different kinds of porn? Straight/Gay?

Rich700000000000 avatar Jul 17 '16 22:07 Rich700000000000

I don't have training data for that. If you have one - I can check.

bakwc avatar Jul 18 '16 07:07 bakwc

Not to be crude, but that should be really, really easy to gather, shouldn't it?

Here: https://github.com/Rich700000000000/Fourchan-All-Images-Archiver

Rich700000000000 avatar Jul 18 '16 08:07 Rich700000000000

Added neural-network detector (nnpcr.py).

bakwc avatar Aug 22 '16 08:08 bakwc

I have tried your model.bin and nnmodel.bin for porn image and I don't know which one is predicted as porn or not-porn. What the meaning of 0 and 1?

Is it 0 for porn and 1 for not-porn?

Thank you

Rietaros avatar Apr 25 '17 06:04 Rietaros

1 - porn, 0 - not-porn

bakwc avatar Apr 25 '17 06:04 bakwc

Can I know what kind of picture that you used for training the not-porn class?

Rietaros avatar Apr 26 '17 03:04 Rietaros

Some random categories from flickr.

bakwc avatar Apr 26 '17 07:04 bakwc

I'm fresh in CNN. I can't understand your "readme" about how to use your model to test a image on tensorflow, can you give me more details about this? thank you very much! I just run the code below. from nnpcr import NNPCR model = NNPCR() model.loadModel('nnmodel.bin') predictions = model.predict(['image1.jpg', 'image2.jpg', 'image3.jpg']) print predictions And I get this report after running it. ImportError: No module named nnpcr

iDXM avatar Apr 18 '18 13:04 iDXM