Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,10 @@ vaes = [
|
|
11 |
"https://huggingface.co/John6666/safetensors_converting_test/blob/main/xlVAEC_e7.safetensors",
|
12 |
"https://huggingface.co/John6666/safetensors_converting_test/blob/main/xlVAEC_f1.safetensors",
|
13 |
]
|
|
|
|
|
|
|
|
|
14 |
loras = [
|
15 |
"",
|
16 |
"https://huggingface.co/SPO-Diffusion-Models/SPO-SDXL_4k-p_10ep_LoRA/blob/main/spo_sdxl_10ep_4k-data_lora_diffusers.safetensors",
|
@@ -87,11 +91,13 @@ It saves you the trouble of typing them in.<br>
|
|
87 |
with gr.Row():
|
88 |
is_upload_sf = gr.Checkbox(label="Upload single safetensors file into new repo", value=False)
|
89 |
is_private = gr.Checkbox(label="Create private repo", value=True)
|
|
|
90 |
presets = gr.Radio(label="Presets", choices=list(preset_dict.keys()), value="Default")
|
91 |
with gr.Accordion("Advanced settings", open=False):
|
92 |
-
|
93 |
with gr.Row():
|
94 |
vae = gr.Dropdown(label="VAE", choices=vaes, value="", allow_custom_value=True)
|
|
|
95 |
scheduler = gr.Dropdown(label="Scheduler (Sampler)", choices=schedulers, value="Euler a")
|
96 |
with gr.Row():
|
97 |
with gr.Column():
|
@@ -117,14 +123,14 @@ It saves you the trouble of typing them in.<br>
|
|
117 |
gr.on(
|
118 |
triggers=[run_button.click],
|
119 |
fn=convert_url_to_diffusers_repo,
|
120 |
-
inputs=[dl_url, hf_user, hf_repo, hf_token, civitai_key, is_private, is_upload_sf, repo_urls,
|
121 |
lora1, lora1s, lora2, lora2s, lora3, lora3s, lora4, lora4s, lora5, lora5s],
|
122 |
outputs=[repo_urls, output_md],
|
123 |
)
|
124 |
presets.change(
|
125 |
fn=set_presets,
|
126 |
inputs=[presets],
|
127 |
-
outputs=[
|
128 |
queue=False,
|
129 |
)
|
130 |
|
|
|
11 |
"https://huggingface.co/John6666/safetensors_converting_test/blob/main/xlVAEC_e7.safetensors",
|
12 |
"https://huggingface.co/John6666/safetensors_converting_test/blob/main/xlVAEC_f1.safetensors",
|
13 |
]
|
14 |
+
clips = [
|
15 |
+
"",
|
16 |
+
"openai/clip-vit-large-patch14",
|
17 |
+
]
|
18 |
loras = [
|
19 |
"",
|
20 |
"https://huggingface.co/SPO-Diffusion-Models/SPO-SDXL_4k-p_10ep_LoRA/blob/main/spo_sdxl_10ep_4k-data_lora_diffusers.safetensors",
|
|
|
91 |
with gr.Row():
|
92 |
is_upload_sf = gr.Checkbox(label="Upload single safetensors file into new repo", value=False)
|
93 |
is_private = gr.Checkbox(label="Create private repo", value=True)
|
94 |
+
is_overwrite = gr.Checkbox(label="Overwrite repo", value=False)
|
95 |
presets = gr.Radio(label="Presets", choices=list(preset_dict.keys()), value="Default")
|
96 |
with gr.Accordion("Advanced settings", open=False):
|
97 |
+
dtype = gr.Radio(label="Output data type", choices=["fp16", "fp32", "bf16", "fp8", "default"], value="fp16")
|
98 |
with gr.Row():
|
99 |
vae = gr.Dropdown(label="VAE", choices=vaes, value="", allow_custom_value=True)
|
100 |
+
clip = gr.Dropdown(label="CLIP", choices=clips, value="", allow_custom_value=True)
|
101 |
scheduler = gr.Dropdown(label="Scheduler (Sampler)", choices=schedulers, value="Euler a")
|
102 |
with gr.Row():
|
103 |
with gr.Column():
|
|
|
123 |
gr.on(
|
124 |
triggers=[run_button.click],
|
125 |
fn=convert_url_to_diffusers_repo,
|
126 |
+
inputs=[dl_url, hf_user, hf_repo, hf_token, civitai_key, is_private, is_overwrite, is_upload_sf, repo_urls, dtype, vae, clip, scheduler,
|
127 |
lora1, lora1s, lora2, lora2s, lora3, lora3s, lora4, lora4s, lora5, lora5s],
|
128 |
outputs=[repo_urls, output_md],
|
129 |
)
|
130 |
presets.change(
|
131 |
fn=set_presets,
|
132 |
inputs=[presets],
|
133 |
+
outputs=[dtype, vae, scheduler, lora1, lora1s, lora2, lora2s, lora3, lora3s, lora4, lora4s, lora5, lora5s],
|
134 |
queue=False,
|
135 |
)
|
136 |
|