Spaces:
Running
Running
Upload 3 files
Browse files
convert_url_to_diffusers_sd_gr.py
CHANGED
@@ -206,7 +206,7 @@ def fuse_loras(pipe, lora_dict={}, temp_dir=".", civitai_key=""):
|
|
206 |
|
207 |
|
208 |
def convert_url_to_diffusers_sd(url, civitai_key="", half=True, vae=None, scheduler="Euler", lora_dict={},
|
209 |
-
model_type="v1", sample_size=
|
210 |
progress(0, desc="Start converting...")
|
211 |
temp_dir = "."
|
212 |
new_file = get_download_file(temp_dir, url, civitai_key)
|
@@ -302,9 +302,9 @@ def create_diffusers_repo(new_repo_id, diffusers_folder, progress=gr.Progress(tr
|
|
302 |
|
303 |
|
304 |
def convert_url_to_diffusers_repo(dl_url, new_repo_id, hf_token, civitai_key="", repo_urls=[], half=True, vae=None,
|
305 |
-
scheduler="Euler
|
306 |
lora4=None, lora4s=1.0, lora5=None, lora5s=1.0,
|
307 |
-
model_type="v1", sample_size=
|
308 |
if hf_token and not os.environ.get("HF_TOKEN"): os.environ['HF_TOKEN'] = hf_token
|
309 |
if not civitai_key and os.environ.get("CIVITAI_API_KEY"): civitai_key = os.environ.get("CIVITAI_API_KEY")
|
310 |
if not is_repo_name(new_repo_id):
|
|
|
206 |
|
207 |
|
208 |
def convert_url_to_diffusers_sd(url, civitai_key="", half=True, vae=None, scheduler="Euler", lora_dict={},
|
209 |
+
model_type="v1", sample_size=768, ema="ema", progress=gr.Progress(track_tqdm=True)):
|
210 |
progress(0, desc="Start converting...")
|
211 |
temp_dir = "."
|
212 |
new_file = get_download_file(temp_dir, url, civitai_key)
|
|
|
302 |
|
303 |
|
304 |
def convert_url_to_diffusers_repo(dl_url, new_repo_id, hf_token, civitai_key="", repo_urls=[], half=True, vae=None,
|
305 |
+
scheduler="Euler", lora1=None, lora1s=1.0, lora2=None, lora2s=1.0, lora3=None, lora3s=1.0,
|
306 |
lora4=None, lora4s=1.0, lora5=None, lora5s=1.0,
|
307 |
+
model_type="v1", sample_size=768, ema="ema", progress=gr.Progress(track_tqdm=True)):
|
308 |
if hf_token and not os.environ.get("HF_TOKEN"): os.environ['HF_TOKEN'] = hf_token
|
309 |
if not civitai_key and os.environ.get("CIVITAI_API_KEY"): civitai_key = os.environ.get("CIVITAI_API_KEY")
|
310 |
if not is_repo_name(new_repo_id):
|