Commit 0cf10dc4 authored by narugo1992's avatar narugo1992
Browse files

dev(narugo): recreate classify benchmark

parent c30c0a61
Loading
Loading
Loading
Loading
+0 −2293

File deleted.

Preview size limit exceeded, changes collapsed.

+17 −0
Original line number Diff line number Diff line
"""
Overview:
    A model for classifying anime images into 4 classes (``3d``, ``bangumi``, ``comic`` and ``illustration``).

    The following are sample images for testing.

    .. image:: classify.plot.py.svg
        :align: center

    This is an overall benchmark of all the classification validation models:

    .. image:: classify_benchmark.plot.py.svg
        :align: center

    The models are hosted on
    `huggingface - deepghs/anime_classification <https://huggingface.co/deepghs/anime_classification>`_.
"""
from functools import lru_cache
from typing import Tuple, Optional, Dict