cheesechaser.datapool.anime_pictures

This module provides a data pool implementation for anime pictures.

It defines a class AnimePicturesDataPool which inherits from IncrementIDDataPool. This class is designed to manage and access a repository of anime pictures, utilizing an incremental ID system for efficient data retrieval.

Note

The dataset deepghs/anime_pictures_full is gated, you have to get the access of it before using this module.

AnimePicturesDataPool

class cheesechaser.datapool.anime_pictures.AnimePicturesDataPool(revision: str = 'main', hf_token: str | None = None)[source]

A data pool class for managing and accessing anime pictures.

This class extends the IncrementIDDataPool to provide specific functionality for handling anime picture data. It uses a predefined repository for storing and retrieving anime pictures.

Parameters:
  • revision (str) – The revision of the data to use, defaults to ‘main’.

  • hf_token (Optional[str]) – Optional Hugging Face token for authentication, defaults to None.

Usage:
>>> pool = AnimePicturesDataPool()
>>> pool = AnimePicturesDataPool(revision='v1.0')
>>> pool = AnimePicturesDataPool(revision='main', hf_token='your_hf_token')

Note

The class uses the same repository for both data and index storage.

__init__(revision: str = 'main', hf_token: str | None = None)[source]

Initialize the AnimePicturesDataPool.

This method sets up the data pool by calling the parent class constructor with specific parameters for the anime pictures repository.

Parameters:
  • revision (str) – The revision of the data to use, defaults to ‘main’.

  • hf_token (Optional[str]) – Optional Hugging Face token for authentication, defaults to None.