I spent some time this afternoon vibe coding a python script to categorize image files I've collected randomly using cafeai/cafe_style. It is a pre-sort of truly random stuff. Later, I'm going to throw all the actual anime art into a big pool and let Hydrus do the AI tagging and cataloging, by character name etc. The cafeai sorter pretty much works, the biggest fail is characterizing realistic AI art (like Asuka below) as 'real_life', where I guess it was trained on traditional 2D styles. This project was on my list for a long time!
sort_images.py — Sort images into categories using cafeai/cafe_style. Output folders match the model's official label names: anime/ anime illustration art real_life/ photographs of real people/scenes 3d/ 3D rendered art manga_like/ manga style black & white art other/ everything else, plus low-confidence results bad_files/ unreadable files with corrupt headers or unsupported formats Usage: python sort_images.py /path/to/images [options]