cheesechaser.datapool.zerochan

This module provides data pool classes for accessing Zerochan image datasets.

It includes two main classes:

  1. ZerochanDataPool: For accessing the full Zerochan dataset.

  2. ZerochanWebpDataPool: For accessing the WebP-formatted Zerochan dataset.

These classes inherit from IncrementIDDataPool and provide easy access to Zerochan images stored in Hugging Face repositories.

Note

The datasets deepghs/zerochan_full and deepghs/zerochan-webp-4Mpixel is gated, you have to get the access of it before using this module.

ZerochanWebpDataPool

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

A data pool for accessing the WebP-formatted Zerochan image dataset.

This class provides access to WebP-formatted Zerochan images stored in the ‘deepghs/zerochan-webp-4Mpixel’ Hugging Face repository. It uses an incremental ID system for efficient data retrieval.

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

  • hf_token (Optional[str]) – Optional Hugging Face authentication token for accessing private repositories.

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

Initialize the ZerochanWebpDataPool.

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

  • hf_token (Optional[str]) – Optional Hugging Face authentication token for accessing private repositories.

ZerochanDataPool

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

A data pool for accessing the full Zerochan image dataset.

This class provides access to Zerochan images stored in the ‘deepghs/zerochan_full’ Hugging Face repository. It uses an incremental ID system for efficient data retrieval.

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

  • hf_token (Optional[str]) – Optional Hugging Face authentication token for accessing private repositories.

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

Initialize the ZerochanDataPool.

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

  • hf_token (Optional[str]) – Optional Hugging Face authentication token for accessing private repositories.