Spaces:
Running
Running
Update flux_train_ui.py
Browse files- flux_train_ui.py +27 -0
flux_train_ui.py
CHANGED
@@ -243,6 +243,9 @@ def start_training(
|
|
243 |
with open(config_path, "w") as f:
|
244 |
yaml.dump(config, f)
|
245 |
|
|
|
|
|
|
|
246 |
# run the job locally
|
247 |
job = get_job(config_path)
|
248 |
job.run()
|
@@ -250,6 +253,21 @@ def start_training(
|
|
250 |
|
251 |
return f"Training completed successfully. Model saved as {slugged_lora_name}"
|
252 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
config_yaml = '''
|
254 |
device: cuda:0
|
255 |
model:
|
@@ -301,6 +319,15 @@ h3{margin-top: 0}
|
|
301 |
.tabitem{border: 0px}
|
302 |
.group_padding{padding: .55em}
|
303 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
with gr.Blocks(theme=theme, css=css) as demo:
|
305 |
gr.Markdown(
|
306 |
"""# LoRA Ease for FLUX 🧞♂️
|
|
|
243 |
with open(config_path, "w") as f:
|
244 |
yaml.dump(config, f)
|
245 |
|
246 |
+
|
247 |
+
|
248 |
+
print(f"[INFO] Starting training with config: {config_path}")
|
249 |
# run the job locally
|
250 |
job = get_job(config_path)
|
251 |
job.run()
|
|
|
253 |
|
254 |
return f"Training completed successfully. Model saved as {slugged_lora_name}"
|
255 |
|
256 |
+
|
257 |
+
|
258 |
+
|
259 |
+
|
260 |
+
|
261 |
+
|
262 |
+
|
263 |
+
|
264 |
+
|
265 |
+
|
266 |
+
|
267 |
+
|
268 |
+
|
269 |
+
|
270 |
+
|
271 |
config_yaml = '''
|
272 |
device: cuda:0
|
273 |
model:
|
|
|
319 |
.tabitem{border: 0px}
|
320 |
.group_padding{padding: .55em}
|
321 |
"""
|
322 |
+
|
323 |
+
|
324 |
+
|
325 |
+
|
326 |
+
|
327 |
+
|
328 |
+
|
329 |
+
|
330 |
+
|
331 |
with gr.Blocks(theme=theme, css=css) as demo:
|
332 |
gr.Markdown(
|
333 |
"""# LoRA Ease for FLUX 🧞♂️
|