anime-bg
收藏魔搭社区2025-11-27 更新2024-12-07 收录
下载链接:
https://modelscope.cn/datasets/deepghs/anime-bg
下载链接
链接失效反馈官方服务:
资源简介:
Anime background and wallpaper images based on [skytnt/anime-segmentation](https://huggingface.co/datasets/skytnt/anime-segmentation).
Archived with indexed tar files, you can easily download any of these images with `hfutils` or `dghs-imgutils` library.
For example:
```python
from imgutils.resource import get_bg_image_file, random_image
# get and download this background image file
# return value should be the local path of given file
get_bg_image_file('000001.jpg')
# random select one background image from deepghs/anime-bg
random_image()
```
See [Documentation of imgutils.resource.background module](https://deepghs.github.io/imgutils/main/api_doc/resource/background.html) for more details.
本数据集为基于[skytnt/anime-segmentation](https://huggingface.co/datasets/skytnt/anime-segmentation)构建的动漫背景与壁纸图像集。
数据集采用索引化tar归档格式存储,可通过`hfutils`或`dghs-imgutils`库便捷下载任意目标图像。
示例代码如下:
python
from imgutils.resource import get_bg_image_file, random_image
# 获取并下载指定的背景图像文件
# 函数返回值为对应文件的本地存储路径
get_bg_image_file('000001.jpg')
# 从deepghs/anime-bg数据集中随机选取一张背景图像
random_image()
更多细节可参阅[imgutils.resource.background模块官方文档](https://deepghs.github.io/imgutils/main/api_doc/resource/background.html)。
提供机构:
maas
创建时间:
2024-12-03



