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
HentaiCosplayDataPool
- class cheesechaser.datapool.hentaicosplay.HentaiCosplayDataPool(repo_id: str = 'deepghs/hentai_cosplay_trans', revision: str = 'main', base_level: int = 3)[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.
- __init__(repo_id: str = 'deepghs/hentai_cosplay_trans', revision: str = 'main', base_level: int = 3)[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.