gelbooru-webp-4Mpixel
收藏魔搭社区2024-12-20 更新2024-12-21 收录
下载链接:
https://modelscope.cn/datasets/deepghs/gelbooru-webp-4Mpixel
下载链接
链接失效反馈官方服务:
资源简介:
# Gelbooru 4M Re-encoded Dataset
This is the re-encoded dataset of [deepghs/gelbooru_full](https://huggingface.co/datasets/deepghs/gelbooru_full). And all the resized images are maintained here.
There are 10030168 images in total. The maximum ID of these images is 11139277. Last updated at `2024-12-15 03:53:57 UTC`.
# How to Painlessly Use This
Use [cheesechaser](https://github.com/deepghs/cheesechaser) to quickly get images from this repository.
Before using this code, you have to **grant the access from this gated repository**. And then **set your personal HuggingFace token into `HF_TOKEN` environment variable** to give the code authorization for this repository.
```python
from cheesechaser.datapool import GelbooruWebpDataPool
pool = GelbooruWebpDataPool()
pool.batch_download_to_directory(
# download images #7000000-7000100, any ranges or id lists are okay
resource_ids=range(7000000, 7000100),
# save to directory /data/gelbooru_webp
dst_dir='/data/gelbooru_webp',
)
```
# Gelbooru 4M 重编码数据集
本数据集是对[deepghs/gelbooru_full](https://huggingface.co/datasets/deepghs/gelbooru_full)的重编码版本,所有经尺寸调整的图像均留存于此。
本数据集共包含10030168张图像,图像的最大ID为11139277,最后更新时间为`2024-12-15 03:53:57 UTC`。
# 便捷使用指南
可通过[cheesechaser](https://github.com/deepghs/cheesechaser)快速从本仓库获取图像资源。
在运行以下代码前,您需要**先申请本权限管控仓库的访问权限**,并将您的个人Hugging Face 令牌(HuggingFace Token)配置到`HF_TOKEN`环境变量中,以授予代码访问本仓库的权限。
python
from cheesechaser.datapool import GelbooruWebpDataPool
pool = GelbooruWebpDataPool()
pool.batch_download_to_directory(
# 下载ID范围为7000000至7000099的图像,支持任意范围或ID列表
resource_ids=range(7000000, 7000100),
# 将图像保存至目录 /data/gelbooru_webp
dst_dir='/data/gelbooru_webp',
)
提供机构:
maas
创建时间:
2024-12-03



