Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
e663a52
1
Parent(s):
270af86
app.py
Browse files- utils/dl_utils.py +2 -2
utils/dl_utils.py
CHANGED
|
@@ -11,7 +11,7 @@ import cv2
|
|
| 11 |
def dl_cn_model(model_dir):
|
| 12 |
folder = model_dir
|
| 13 |
file_name = 'diffusion_pytorch_model.safetensors'
|
| 14 |
-
url = "https://huggingface.co/2vXpSwA7/iroiro-lora/resolve/main/test_controlnet2/CN-
|
| 15 |
file_path = os.path.join(folder, file_name)
|
| 16 |
if not os.path.exists(file_path):
|
| 17 |
response = requests.get(url, allow_redirects=True)
|
|
@@ -60,7 +60,7 @@ def dl_lora_model(model_dir):
|
|
| 60 |
file_name = 'lineart.safetensors'
|
| 61 |
file_path = os.path.join(model_dir, file_name)
|
| 62 |
if not os.path.exists(file_path):
|
| 63 |
-
url = "https://huggingface.co/
|
| 64 |
response = requests.get(url, allow_redirects=True)
|
| 65 |
if response.status_code == 200:
|
| 66 |
with open(file_path, 'wb') as f:
|
|
|
|
| 11 |
def dl_cn_model(model_dir):
|
| 12 |
folder = model_dir
|
| 13 |
file_name = 'diffusion_pytorch_model.safetensors'
|
| 14 |
+
url = "https://huggingface.co/2vXpSwA7/iroiro-lora/resolve/main/test_controlnet2/CN-anytest_v4-marged.safetensors"
|
| 15 |
file_path = os.path.join(folder, file_name)
|
| 16 |
if not os.path.exists(file_path):
|
| 17 |
response = requests.get(url, allow_redirects=True)
|
|
|
|
| 60 |
file_name = 'lineart.safetensors'
|
| 61 |
file_path = os.path.join(model_dir, file_name)
|
| 62 |
if not os.path.exists(file_path):
|
| 63 |
+
url = "https://huggingface.co/tori29umai/lineart/resolve/main/sdxl_BWLine.safetensors"
|
| 64 |
response = requests.get(url, allow_redirects=True)
|
| 65 |
if response.status_code == 200:
|
| 66 |
with open(file_path, 'wb') as f:
|