|
import os
|
|
|
|
def download_file(url, save_path):
|
|
command = f'aria2c --console-log-level=error -c -x 16 -s 16 -k 1M -d {os.path.dirname(save_path)} -o {os.path.basename(save_path)} {url}'
|
|
os.system(command)
|
|
print(f"File downloaded: {save_path}")
|
|
|
|
|
|
urls_and_names = [
|
|
("https://huggingface.co/datasets/Drditone/Dynamic_prompt/resolve/main/Frieren_character.txt", "Frieren_character.txt"),
|
|
("https://huggingface.co/datasets/Drditone/Dynamic_prompt/resolve/main/Frieren_character_female.txt", "Frieren_character_female.txt"),
|
|
("https://huggingface.co/datasets/Drditone/Dynamic_prompt/resolve/main/order_hair-bangs.txt", "order_hair-bangs.txt"),
|
|
("https://huggingface.co/datasets/Drditone/Dynamic_prompt/resolve/main/order_natural-hair-color.txt", "order_natural-hair-color.txt"),
|
|
("https://huggingface.co/datasets/Drditone/Dynamic_prompt/resolve/main/order_natural-hair-style.txt", "order_natural-hair-style.txt"),
|
|
("https://huggingface.co/datasets/Drditone/Dynamic_prompt/resolve/main/style_LoRA.txt", "style_LoRA.txt"),
|
|
("https://huggingface.co/datasets/Drditone/Dynamic_prompt/resolve/main/Style_LoRA_b.txt", "Style_LoRA_b.txt"),
|
|
("https://huggingface.co/datasets/Drditone/Dynamic_prompt/resolve/main/style_LoRA_mix.txt", "style_LoRA_mix.txt"),
|
|
("https://huggingface.co/datasets/Drditone/Dynamic_prompt/resolve/main/XL_LoRA.txt", "XL_LoRA.txt"),
|
|
|
|
("https://huggingface.co/datasets/Drditone/Dynamic_prompt/resolve/main/order_situation.txt", "order_situation.txt")
|
|
]
|
|
|
|
|
|
save_directory = "/content/ReForge/extensions/sd-dynamic-prompts/wildcards"
|
|
|
|
|
|
for url, file_name in urls_and_names:
|
|
save_path = os.path.join(save_directory, file_name)
|
|
download_file(url, save_path)
|
|
|