Spaces:
Runtime error
Runtime error
LittleApple_fp16
commited on
Commit
·
1808e2f
1
Parent(s):
69a6cef
exists determine
Browse files
cyberharem/dataset/crawler.py
CHANGED
|
@@ -155,6 +155,10 @@ def crawl_dataset_to_huggingface(
|
|
| 155 |
if not repository:
|
| 156 |
repository = f'AppleHarem/{get_alphabet_name(name)}'
|
| 157 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
origin_source = get_main_source(source, no_r18, bg_color, no_monochrome_check, drop_multi, skip_preprocess)
|
| 159 |
with TemporaryDirectory() as td:
|
| 160 |
# save origin directory
|
|
|
|
| 155 |
if not repository:
|
| 156 |
repository = f'AppleHarem/{get_alphabet_name(name)}'
|
| 157 |
|
| 158 |
+
hf_fs = get_hf_fs()
|
| 159 |
+
if hf_fs.exists(f'{repository}/.gitattributes'):
|
| 160 |
+
logging.warn(f'{repository} exists, skipped.')
|
| 161 |
+
return
|
| 162 |
origin_source = get_main_source(source, no_r18, bg_color, no_monochrome_check, drop_multi, skip_preprocess)
|
| 163 |
with TemporaryDirectory() as td:
|
| 164 |
# save origin directory
|