Skip to content

Repository files navigation

AnimeIDF

Toolkit for Distinguishing Anime Images from Real Images With Lightweight Dependency.

PyPIPyPI - Downloads

Usage

pip install anime-identify
fromanime_identifyimportAnimeIDFdeftest_anime():
withopen("anime.jpg", "rb") asf:
f.seek(0) # IMPORTANT!!!poss= (AnimeIDF().predict_image(content=f))
print(poss)
assertposs>50, f"anime poss: {poss}"deftest_real():
poss=AnimeIDF().predict_image("real.jpg")
print(poss)
assertposs<50, f"real poss: {poss}"

About

🍡 Toolkit for Distinguishing Anime from Real Images With No Torch.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages