minto5050 / NSFW-detection

Trained tensorflow model for detecting nudity in images
119 stars 28 forks source link

Python 3 update? #3

Open ghost opened 4 years ago

ghost commented 4 years ago

I am wondering if this will be compatible with Python 3 code, or if it will otherwise be ported with such compatibility in mind. I do believe this is one of the most effective pieces of software I've come across for this purpose. I tried using something like openNSFW by Yahoo!, but that needed Python 2.7 to work.

paqman85 commented 4 years ago

I took the liberty of updating this code to python 3 - and will now submit a PR.

ghost commented 4 years ago

Thank you, the code works fine.

minto5050 commented 4 years ago

My PC is busted now, I will merge the PR once I get it set up with Tensorflow

Josephat90 commented 4 years ago

Instead of passing image as an argument, I want to pass the directory contains 500 images for checking if it is NSFW or SFW. How can I do it?. I am beginner to pyhton