Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -274,51 +274,45 @@ def update_pricing(steps, oauth_token: Union[gr.OAuthToken, None]):
|
|
| 274 |
else:
|
| 275 |
return gr.update(visible=False), "", gr.update(visible=False), gr.update(visible=True)
|
| 276 |
|
| 277 |
-
config_yaml =
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
|
| 283 |
-
|
| 284 |
-
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
-
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
| 305 |
-
|
| 306 |
-
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
| 315 |
-
|
| 316 |
-
"seed": 42,
|
| 317 |
-
"walk_seed": True,
|
| 318 |
-
"guidance_scale": 3.5,
|
| 319 |
-
"sample_steps": 28
|
| 320 |
-
}
|
| 321 |
-
}
|
| 322 |
|
| 323 |
theme = gr.themes.Monochrome(
|
| 324 |
text_size=gr.themes.Size(lg="18px", md="15px", sm="13px", xl="22px", xs="12px", xxl="24px", xxs="9px"),
|
|
|
|
| 274 |
else:
|
| 275 |
return gr.update(visible=False), "", gr.update(visible=False), gr.update(visible=True)
|
| 276 |
|
| 277 |
+
config_yaml = '''
|
| 278 |
+
device: cuda:0
|
| 279 |
+
model:
|
| 280 |
+
is_flux: true
|
| 281 |
+
name_or_path: black-forest-labs/FLUX.1-dev
|
| 282 |
+
quantize: true
|
| 283 |
+
network:
|
| 284 |
+
linear: 16 #it will overcome the 'rank' parameter
|
| 285 |
+
linear_alpha: 16 #you can have an alpha different than the ranking if you'd like
|
| 286 |
+
type: lora
|
| 287 |
+
sample:
|
| 288 |
+
guidance_scale: 3.5
|
| 289 |
+
height: 1024
|
| 290 |
+
neg: '' #doesn't work for FLUX
|
| 291 |
+
sample_every: 1000
|
| 292 |
+
sample_steps: 28
|
| 293 |
+
sampler: flowmatch
|
| 294 |
+
seed: 42
|
| 295 |
+
walk_seed: true
|
| 296 |
+
width: 1024
|
| 297 |
+
save:
|
| 298 |
+
dtype: float16
|
| 299 |
+
hf_private: true
|
| 300 |
+
max_step_saves_to_keep: 4
|
| 301 |
+
push_to_hub: true
|
| 302 |
+
save_every: 10000
|
| 303 |
+
train:
|
| 304 |
+
batch_size: 1
|
| 305 |
+
dtype: bf16
|
| 306 |
+
ema_config:
|
| 307 |
+
ema_decay: 0.99
|
| 308 |
+
use_ema: true
|
| 309 |
+
gradient_accumulation_steps: 1
|
| 310 |
+
gradient_checkpointing: true
|
| 311 |
+
noise_scheduler: flowmatch
|
| 312 |
+
optimizer: adamw8bit #options: prodigy, dadaptation, adamw, adamw8bit, lion, lion8bit
|
| 313 |
+
train_text_encoder: false #probably doesn't work for flux
|
| 314 |
+
train_unet: true
|
| 315 |
+
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
|
| 317 |
theme = gr.themes.Monochrome(
|
| 318 |
text_size=gr.themes.Size(lg="18px", md="15px", sm="13px", xl="22px", xs="12px", xxl="24px", xxs="9px"),
|