Download kohya-sd-scripts-webui/scripts/tabs/tools/convert_diffusers.py from ehristoforu/extensions: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/ehristoforu/extensions/resolve/main/kohya-sd-scripts-webui/scripts/tabs/tools/convert_diffusers.py
- Command line
-
hf download hf://ehristoforu/extensions/kohya-sd-scripts-webui/scripts/tabs/tools/convert_diffusers.py
-
curl -L -o convert_diffusers.py https://huggingface.co/ehristoforu/extensions/resolve/main/kohya-sd-scripts-webui/scripts/tabs/tools/convert_diffusers.py
812 Bytes
| import gradio as gr | |
| from scripts import presets, ui | |
| from scripts.runner import initialize_runner | |
| from scripts.utilities import load_args_template, options_to_gradio | |
| def title(): | |
| return "Convert Diffusers" | |
| def create_ui(): | |
| options = {} | |
| templates, script_file = load_args_template( | |
| "tools", "convert_diffusers20_original_sd.py" | |
| ) | |
| with gr.Column(): | |
| init_runner = initialize_runner(script_file, templates, options) | |
| with gr.Box(): | |
| with gr.Row(): | |
| init_ui = presets.create_ui( | |
| "convert_diffusers20_original_sd", templates, options | |
| ) | |
| with gr.Box(): | |
| ui.title("Options") | |
| with gr.Column(): | |
| options_to_gradio(templates, options) | |
| init_runner() | |
| init_ui() | |