Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General use. #3

Open
Rich700000000000 opened this issue Jun 29, 2016 · 15 comments
Open

General use. #3

Rich700000000000 opened this issue Jun 29, 2016 · 15 comments

Comments

@Rich700000000000
Copy link

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.

@bakwc
Copy link
Owner

bakwc commented Jun 29, 2016

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.

@Rich700000000000
Copy link
Author

color histogram

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

@bakwc
Copy link
Owner

bakwc commented Jun 29, 2016

indoor/outdoor

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

@bakwc
Copy link
Owner

bakwc commented Jun 29, 2016

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.

@Rich700000000000
Copy link
Author

Rich700000000000 commented Jun 30, 2016

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

@bakwc
Copy link
Owner

bakwc commented Jul 17, 2016

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.

@Rich700000000000
Copy link
Author

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

@bakwc
Copy link
Owner

bakwc commented Jul 18, 2016

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

@Rich700000000000
Copy link
Author

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

@bakwc
Copy link
Owner

bakwc commented Aug 22, 2016

Added neural-network detector (nnpcr.py).

@Rietaros
Copy link

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

@bakwc
Copy link
Owner

bakwc commented Apr 25, 2017

1 - porn, 0 - not-porn

@Rietaros
Copy link

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

@bakwc
Copy link
Owner

bakwc commented Apr 26, 2017

Some random categories from flickr.

@iDXM
Copy link

iDXM commented Apr 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants