Open gwern opened 7 years ago
I added this feature to another project. See https://github.com/nagadomi/animeface-2009#create-new-dataset-with-animeface-ruby
I see, thanks. Perhaps you could update the README.md for this project with a note that it's obsoleted by animeface-2009 and that animeface-2009 also provides a script for extracting faces?
I've updated README. If someone sends a pull request to add a cropping script like face_collector.rb I will merge it.
I experimented with using facedetect's cropping script on anime images to try to crop faces into separate files (the goal here being to experiment with modeling faces using WGAN to see if it improves on IllustrationGAN), but it didn't work at all. I tried using this, and it works much better but doesn't provide a simple interface/program for cropping images down to the face. I modified the example file to do this, and it seems to work OK:
Saved as
cropy.py
, this can then be run on a single file likeor run in parallel on many files using
parallel
like this:It would be great if you could provide something like this Python crop program in the repo.