narugo commited on
Commit
542999d
1 Parent(s): 89900d7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md CHANGED
@@ -12,3 +12,19 @@ size_categories:
12
  ---
13
 
14
  Tar index files for [nyanko7/danbooru2023](https://huggingface.co/datasets/nyanko7/danbooru2023).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  ---
13
 
14
  Tar index files for [nyanko7/danbooru2023](https://huggingface.co/datasets/nyanko7/danbooru2023).
15
+
16
+ You can download images from both [nyanko7/danbooru2023](https://huggingface.co/datasets/nyanko7/danbooru2023) and [deepghs/danbooru_newest](https://huggingface.co/datasets/deepghs/danbooru_newest) with [cheesechaser](https://github.com/deepghs/cheesechaser).
17
+
18
+ ```python
19
+ from cheesechaser.datapool import DanbooruNewestDataPool
20
+
21
+ pool = DanbooruNewestDataPool()
22
+
23
+ # download danbooru original images from 7200000-7201000, to directory /data/danbooru_original
24
+ pool.batch_download_to_directory(
25
+ resource_ids=range(7200000, 7201000),
26
+ dst_dir='/data/danbooru_original',
27
+ max_workers=12,
28
+ )
29
+
30
+ ```