Skip to content

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

License

Notifications You must be signed in to change notification settings

TelechaBot/anime-identify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnimeIDF

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

PyPI PyPI - Downloads

Usage

pip install anime-identify
from anime_identify import AnimeIDF


def test_anime():
    with open("anime.jpg", "rb") as f:
        f.seek(0)  # IMPORTANT!!!
        poss = (AnimeIDF().predict_image(content=f))
    print(poss)
    assert poss > 50, f"anime poss: {poss}"


def test_real():
    poss = AnimeIDF().predict_image("real.jpg")
    print(poss)
    assert poss < 50, f"real poss: {poss}"

About

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

Topics

Resources

License

Stars

Watchers

Forks

Languages