Spaces:
Running
Running
Upload 4 files
Browse files
convert_url_to_diffusers_sdxl.py
CHANGED
@@ -223,7 +223,7 @@ def convert_url_to_diffusers_sdxl(url, civitai_key="", half=True, vae=None, sche
|
|
223 |
new_repo_name = Path(new_file).stem.replace(" ", "_").replace(",", "_").replace(".", "_") #
|
224 |
|
225 |
pipe = None
|
226 |
-
if is_repo_name(
|
227 |
if half:
|
228 |
pipe = StableDiffusionXLPipeline.from_pretrained(new_file, use_safetensors=True, torch_dtype=torch.float16)
|
229 |
else:
|
|
|
223 |
new_repo_name = Path(new_file).stem.replace(" ", "_").replace(",", "_").replace(".", "_") #
|
224 |
|
225 |
pipe = None
|
226 |
+
if is_repo_name(url):
|
227 |
if half:
|
228 |
pipe = StableDiffusionXLPipeline.from_pretrained(new_file, use_safetensors=True, torch_dtype=torch.float16)
|
229 |
else:
|
local/convert_url_to_diffusers_sdxl.py
CHANGED
@@ -223,7 +223,7 @@ def convert_url_to_diffusers_sdxl(url, civitai_key="", half=True, vae=None, sche
|
|
223 |
new_repo_name = Path(new_file).stem.replace(" ", "_").replace(",", "_").replace(".", "_") #
|
224 |
|
225 |
pipe = None
|
226 |
-
if is_repo_name(
|
227 |
if half:
|
228 |
pipe = StableDiffusionXLPipeline.from_pretrained(new_file, use_safetensors=True, torch_dtype=torch.float16)
|
229 |
else:
|
|
|
223 |
new_repo_name = Path(new_file).stem.replace(" ", "_").replace(",", "_").replace(".", "_") #
|
224 |
|
225 |
pipe = None
|
226 |
+
if is_repo_name(url):
|
227 |
if half:
|
228 |
pipe = StableDiffusionXLPipeline.from_pretrained(new_file, use_safetensors=True, torch_dtype=torch.float16)
|
229 |
else:
|