Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -8,4 +8,20 @@ tags:
|
|
8 |
|
9 |
Anime background and wallpaper images based on [skytnt/anime-segmentation](https://huggingface.co/datasets/skytnt/anime-segmentation).
|
10 |
|
11 |
-
Archived with indexed tar files, you can easily download any of these images with `hfutils` library.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
|
9 |
Anime background and wallpaper images based on [skytnt/anime-segmentation](https://huggingface.co/datasets/skytnt/anime-segmentation).
|
10 |
|
11 |
+
Archived with indexed tar files, you can easily download any of these images with `hfutils` or `dghs-imgutils` library.
|
12 |
+
|
13 |
+
For example:
|
14 |
+
|
15 |
+
```python
|
16 |
+
from imgutils.resource import get_bg_image_file, random_image
|
17 |
+
|
18 |
+
# get and download this background image file
|
19 |
+
# return value should be the local path of given file
|
20 |
+
get_bg_image_file('000001.jpg')
|
21 |
+
|
22 |
+
# random select one background image from deepghs/anime-bg
|
23 |
+
random_image()
|
24 |
+
|
25 |
+
```
|
26 |
+
|
27 |
+
See [Documentation of imgutils.resource.background module](https://deepghs.github.io/imgutils/main/api_doc/resource/background.html) for more details.
|