mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-09 15:02:01 +00:00
check hash of downloaded LoRA weights, update DPO refs
(the DPO LoRA weights have changed: 2699b36e22
)
This commit is contained in:
parent
28f9368c93
commit
8f614e7647
|
@ -232,17 +232,25 @@ def download_vae_ft_mse():
|
|||
|
||||
def download_loras():
|
||||
dest_folder = os.path.join(test_weights_dir, "loras", "pokemon-lora")
|
||||
download_file("https://huggingface.co/pcuenq/pokemon-lora/resolve/main/pytorch_lora_weights.bin", dest_folder)
|
||||
download_file(
|
||||
"https://huggingface.co/pcuenq/pokemon-lora/resolve/main/pytorch_lora_weights.bin",
|
||||
dest_folder,
|
||||
expected_hash="89992ea6",
|
||||
)
|
||||
|
||||
dest_folder = os.path.join(test_weights_dir, "loras", "dpo-lora")
|
||||
download_file(
|
||||
"https://huggingface.co/radames/sdxl-DPO-LoRA/resolve/main/pytorch_lora_weights.safetensors", dest_folder
|
||||
"https://huggingface.co/radames/sdxl-DPO-LoRA/resolve/main/pytorch_lora_weights.safetensors",
|
||||
dest_folder,
|
||||
expected_hash="a51e9144",
|
||||
)
|
||||
|
||||
dest_folder = os.path.join(test_weights_dir, "loras", "sliders")
|
||||
download_file("https://sliders.baulab.info/weights/xl_sliders/age.pt", dest_folder)
|
||||
download_file("https://sliders.baulab.info/weights/xl_sliders/cartoon_style.pt", dest_folder)
|
||||
download_file("https://sliders.baulab.info/weights/xl_sliders/eyesize.pt", dest_folder)
|
||||
download_file("https://sliders.baulab.info/weights/xl_sliders/age.pt", dest_folder, expected_hash="908f07d3")
|
||||
download_file(
|
||||
"https://sliders.baulab.info/weights/xl_sliders/cartoon_style.pt", dest_folder, expected_hash="25652004"
|
||||
)
|
||||
download_file("https://sliders.baulab.info/weights/xl_sliders/eyesize.pt", dest_folder, expected_hash="ee170e4d")
|
||||
|
||||
|
||||
def download_preprocessors():
|
||||
|
@ -276,15 +284,17 @@ def download_controlnet():
|
|||
|
||||
def download_control_lora_fooocus():
|
||||
base_folder = os.path.join(test_weights_dir, "lllyasviel", "misc")
|
||||
control_loras = [
|
||||
"control-lora-canny-rank128.safetensors",
|
||||
"fooocus_xl_cpds_128.safetensors",
|
||||
]
|
||||
|
||||
for control_lora in control_loras:
|
||||
download_file(
|
||||
url=f"https://huggingface.co/lllyasviel/misc/resolve/main/{control_lora}",
|
||||
url=f"https://huggingface.co/lllyasviel/misc/resolve/main/control-lora-canny-rank128.safetensors",
|
||||
dest_folder=base_folder,
|
||||
expected_hash="4d505134",
|
||||
)
|
||||
|
||||
download_file(
|
||||
url=f"https://huggingface.co/lllyasviel/misc/resolve/main/fooocus_xl_cpds_128.safetensors",
|
||||
dest_folder=base_folder,
|
||||
expected_hash="d81aa461",
|
||||
)
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.6 MiB After Width: | Height: | Size: 1.5 MiB |
Binary file not shown.
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
Loading…
Reference in a new issue