hhatto / nude.py

Nudity detection with Python
MIT License
921 stars 131 forks source link

mudepy is maintained fork of nudepy #29

Open yaroslaff opened 2 months ago

yaroslaff commented 2 months ago

Currently this project is not working for some users including me (does not compile on my machines), incompatible with latest versions of it's dependencies (e.g. pillow>10.0.0) and was not updated for 4 years.

Please keep this issue open if possible so users who cannot use nudepy would use mudepy. But I'd be happy if @hhatto would reproduce things from mudepy into nudepy. (But most important thing is to provide manylinux wheels, which could not be solved as git pull-request)

mudepy

Mudepy is maintained fork of nudepy.
Github URL: https://github.com/yaroslaff/mudepy Disclaimer: this is my project. My other project nudecrawler depends on nudepy too, but can not be installed with current nudepy version (0.5.1) because fails to compile binary wheel, so I created this replacement. For now I do not promise to maintain mudepy for long time (maybe I will abandon this project if @hhatto will fix nudepy). But usually I'm quite stable and my other projects lives for long time.

How to switch to mudepy Just change one letter, nudepy -> mudepy when installing. Mudepy uses same module name (nude.py), same class name (Nude), same console script (nudepy) - so you do not have to change anything else. If you will like to change back - change one letter again. To install it: pip install mudepy. To use as dependency - use mudepy. Not very hard.

How mudepy is better

  1. mudepy comes with binary wheels (manylinux wheels), so it's easier to install for user, has lower requirements (no need for cython or longintrepr.h). I will try to make such wheels for platforms which I can access. For other systems (like MacOS) I may need help from someone, who can compile it there and provide me package file.

  2. in mudepy I fixed another problem which comes with newer (10.0.0, since 1st Jul 2023) version of Pillow PIL.Image.ANTIALIAS which produces this error: AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' https://stackoverflow.com/questions/76616042/attributeerror-module-pil-image-has-no-attribute-antialias

I do not plan to invest much of time into mudepy to develop it - it's mission is to be 'working version of nudepy': lightweight, simple, easy to use, easy to embed with your project. No new features expected, but it must be working, compatible with recent packages and newer python and OS.