Spaces:
Running
Running
Upload 4 files
Browse files
convert_url_to_diffusers_sd.py
CHANGED
@@ -234,7 +234,7 @@ def convert_url_to_diffusers_sd(url, civitai_key="", half=True, vae=None, schedu
|
|
234 |
config_url = "https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml"
|
235 |
|
236 |
pipe = None
|
237 |
-
if is_repo_name(
|
238 |
if half:
|
239 |
pipe = StableDiffusionPipeline.from_pretrained(new_file, extract_ema=extract_ema, requires_safety_checker=False, use_safetensors=True, torch_dtype=torch.float16)
|
240 |
else:
|
|
|
234 |
config_url = "https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml"
|
235 |
|
236 |
pipe = None
|
237 |
+
if is_repo_name(url):
|
238 |
if half:
|
239 |
pipe = StableDiffusionPipeline.from_pretrained(new_file, extract_ema=extract_ema, requires_safety_checker=False, use_safetensors=True, torch_dtype=torch.float16)
|
240 |
else:
|
convert_url_to_diffusers_sd_gr.py
CHANGED
@@ -236,7 +236,7 @@ def convert_url_to_diffusers_sd(url, civitai_key="", is_upload_sf=False, half=Tr
|
|
236 |
config_url = "https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml"
|
237 |
|
238 |
pipe = None
|
239 |
-
if is_repo_name(
|
240 |
if half:
|
241 |
pipe = StableDiffusionPipeline.from_pretrained(new_file, extract_ema=extract_ema, requires_safety_checker=False, use_safetensors=True, torch_dtype=torch.float16)
|
242 |
else:
|
|
|
236 |
config_url = "https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml"
|
237 |
|
238 |
pipe = None
|
239 |
+
if is_repo_name(url):
|
240 |
if half:
|
241 |
pipe = StableDiffusionPipeline.from_pretrained(new_file, extract_ema=extract_ema, requires_safety_checker=False, use_safetensors=True, torch_dtype=torch.float16)
|
242 |
else:
|
local/convert_url_to_diffusers_sd.py
CHANGED
@@ -234,7 +234,7 @@ def convert_url_to_diffusers_sd(url, civitai_key="", half=True, vae=None, schedu
|
|
234 |
config_url = "https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml"
|
235 |
|
236 |
pipe = None
|
237 |
-
if is_repo_name(
|
238 |
if half:
|
239 |
pipe = StableDiffusionPipeline.from_pretrained(new_file, extract_ema=extract_ema, requires_safety_checker=False, use_safetensors=True, torch_dtype=torch.float16)
|
240 |
else:
|
|
|
234 |
config_url = "https://raw.githubusercontent.com/Stability-AI/stablediffusion/main/configs/stable-diffusion/v2-inference-v.yaml"
|
235 |
|
236 |
pipe = None
|
237 |
+
if is_repo_name(url):
|
238 |
if half:
|
239 |
pipe = StableDiffusionPipeline.from_pretrained(new_file, extract_ema=extract_ema, requires_safety_checker=False, use_safetensors=True, torch_dtype=torch.float16)
|
240 |
else:
|