cheesechaser.datapool.hentaicosplay
This module provides functionality for managing and accessing a Hentai Cosplay data pool.
The module includes a class HentaiCosplayDataPool which extends IncrementIDDataPool. It’s designed to handle data stored in a specific structure within a Hugging Face repository. The data is organized in archive files (.tar) with a hierarchical directory structure based on resource IDs.
Key features:
Manages access to data stored in Hugging Face repositories
Implements a natural sorting algorithm for archive directories
Provides methods to locate and retrieve specific resources based on their IDs
Note
The dataset deepghs/hentai_cosplay_trans is private, you have to get the access of it before using this module.
HentaiCosplayDataPool
- class cheesechaser.datapool.hentaicosplay.HentaiCosplayDataPool(repo_id: str = 'deepghs/hentai_cosplay_trans', revision: str = 'main', base_level: int = 3, hf_token: str | None = None)[source]
A class representing a data pool for Hentai Cosplay resources.
This class extends IncrementIDDataPool and provides specific functionality for managing and accessing Hentai Cosplay data stored in Hugging Face repositories.
- Parameters:
repo_id (str) – The ID of the Hugging Face repository containing the data.
revision (str) – The revision of the repository to use.
base_level (int) – The base level for ID modulo operations.
hf_token (Optional[str]) – Optional Hugging Face authentication token.
- Usage:
>>> pool = HentaiCosplayDataPool() >>> resource = pool.get(12345) # Retrieves resource with ID 12345
- __init__(repo_id: str = 'deepghs/hentai_cosplay_trans', revision: str = 'main', base_level: int = 3, hf_token: str | None = None)[source]
Initialize the HentaiCosplayDataPool.
- Parameters:
repo_id (str) – The ID of the Hugging Face repository containing the data.
revision (str) – The revision of the repository to use.
base_level (int) – The base level for ID modulo operations.
hf_token (Optional[str]) – Optional Hugging Face authentication token.