Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,26 @@ from convert_url_to_diffusers_sdxl_gr import (
|
|
4 |
SCHEDULER_CONFIG_MAP,
|
5 |
)
|
6 |
|
7 |
-
vaes = [
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
schedulers = list(SCHEDULER_CONFIG_MAP.keys())
|
10 |
|
11 |
css = """"""
|
@@ -14,11 +32,18 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", css=css) as demo:
|
|
14 |
gr.Markdown("# Download and convert any Stable Diffusion XL safetensors to Diffusers and create your repo")
|
15 |
gr.Markdown(
|
16 |
f"""
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
- Paste a write-access token from [hf.co/settings/tokens](https://huggingface.co/settings/tokens).
|
19 |
- Input a model download url from the Hub or Civitai or other sites.
|
20 |
- If you want to download a model from Civitai, paste a Civitai API Key.
|
21 |
- Input your new repo name. e.g. 'yourid/newrepo'.
|
|
|
22 |
- Click "Submit".
|
23 |
- Patiently wait until the output changes.
|
24 |
"""
|
|
|
4 |
SCHEDULER_CONFIG_MAP,
|
5 |
)
|
6 |
|
7 |
+
vaes = [
|
8 |
+
"",
|
9 |
+
"https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/blob/main/sdxl.vae.safetensors",
|
10 |
+
"https://huggingface.co/nubby/blessed-sdxl-vae-fp16-fix/blob/main/sdxl_vae-fp16fix-blessed.safetensors",
|
11 |
+
]
|
12 |
+
loras = [
|
13 |
+
"",
|
14 |
+
"https://huggingface.co/SPO-Diffusion-Models/SPO-SDXL_4k-p_10ep_LoRA/blob/main/spo_sdxl_10ep_4k-data_lora_diffusers.safetensors",
|
15 |
+
"https://huggingface.co/wangfuyun/PCM_Weights/blob/main/sdxl/pcm_sdxl_smallcfg_2step_converted.safetensors",
|
16 |
+
"https://huggingface.co/wangfuyun/PCM_Weights/blob/main/sdxl/pcm_sdxl_smallcfg_4step_converted.safetensors",
|
17 |
+
"https://huggingface.co/wangfuyun/PCM_Weights/blob/main/sdxl/pcm_sdxl_smallcfg_8step_converted.safetensors",
|
18 |
+
"https://huggingface.co/wangfuyun/PCM_Weights/blob/main/sdxl/pcm_sdxl_normalcfg_8step_converted.safetensors",
|
19 |
+
"https://huggingface.co/wangfuyun/PCM_Weights/blob/main/sdxl/pcm_sdxl_normalcfg_16step_converted.safetensors",
|
20 |
+
"https://huggingface.co/ByteDance/Hyper-SD/blob/main/Hyper-SDXL-1step-lora.safetensors",
|
21 |
+
"https://huggingface.co/ByteDance/Hyper-SD/blob/main/Hyper-SDXL-2steps-lora.safetensors",
|
22 |
+
"https://huggingface.co/ByteDance/Hyper-SD/blob/main/Hyper-SDXL-4steps-lora.safetensors",
|
23 |
+
"https://huggingface.co/ByteDance/Hyper-SD/blob/main/Hyper-SDXL-8steps-CFG-lora.safetensors",
|
24 |
+
"https://huggingface.co/ByteDance/Hyper-SD/blob/main/Hyper-SDXL-12steps-CFG-lora.safetensors",
|
25 |
+
"https://huggingface.co/latent-consistency/lcm-lora-sdxl/blob/main/pytorch_lora_weights.safetensors",
|
26 |
+
]
|
27 |
schedulers = list(SCHEDULER_CONFIG_MAP.keys())
|
28 |
|
29 |
css = """"""
|
|
|
32 |
gr.Markdown("# Download and convert any Stable Diffusion XL safetensors to Diffusers and create your repo")
|
33 |
gr.Markdown(
|
34 |
f"""
|
35 |
+
**⚠️IMPORTANT NOTICE⚠️**<br>
|
36 |
+
From an information security standpoint, it is dangerous to expose your access token or key to others.
|
37 |
+
If you do use it, I recommend that you duplicate this space on your own account before doing so.
|
38 |
+
Keys and tokens are able to be set to SECRET (HF_TOKEN, CIVITAI_API_KEY) if it's placed in your own space.
|
39 |
+
It saves you the trouble of typing them in.<br>
|
40 |
+
<br>
|
41 |
+
**The steps are the following**:
|
42 |
- Paste a write-access token from [hf.co/settings/tokens](https://huggingface.co/settings/tokens).
|
43 |
- Input a model download url from the Hub or Civitai or other sites.
|
44 |
- If you want to download a model from Civitai, paste a Civitai API Key.
|
45 |
- Input your new repo name. e.g. 'yourid/newrepo'.
|
46 |
+
- Set the parameters. If not sure, just use the defaults.
|
47 |
- Click "Submit".
|
48 |
- Patiently wait until the output changes.
|
49 |
"""
|