@@ -381,7 +381,8 @@ def save_inference_file(output_dir, v2, v_parameterization):
381
381
run_cmd += f' --save_precision={ save_precision } '
382
382
run_cmd += f' --logging_dir={ logging_dir } '
383
383
run_cmd += f' --caption_extention={ caption_extention } '
384
- run_cmd += f' --stop_text_encoder_training={ stop_text_encoder_training } '
384
+ if not stop_text_encoder_training == 0 :
385
+ run_cmd += f' --stop_text_encoder_training={ stop_text_encoder_training } '
385
386
if not save_model_as == 'same as source model' :
386
387
run_cmd += f' --save_model_as={ save_model_as } '
387
388
@@ -462,22 +463,23 @@ def set_pretrained_model_name_or_path_input(value, v2, v_parameterization):
462
463
dummy_false = gr .Label (value = False , visible = False )
463
464
with gr .Tab ('Dreambooth' ):
464
465
gr .Markdown ('Enter kohya finetuner parameter using this interface.' )
465
- with gr .Accordion ('Configuration File Load/Save ' , open = False ):
466
+ with gr .Accordion ('Configuration file ' , open = False ):
466
467
with gr .Row ():
467
468
button_open_config = gr .Button ('Open 📂' , elem_id = 'open_folder' )
468
469
button_save_config = gr .Button ('Save 💾' , elem_id = 'open_folder' )
469
470
button_save_as_config = gr .Button (
470
471
'Save as... 💾' , elem_id = 'open_folder'
471
472
)
472
- config_file_name = gr .Textbox (
473
- label = '' ,
474
- placeholder = "type the configuration file path or use the 'Open' button above to select it..." ,
475
- )
476
- config_file_name .change (
477
- remove_doublequote ,
478
- inputs = [config_file_name ],
479
- outputs = [config_file_name ],
480
- )
473
+ config_file_name = gr .Textbox (
474
+ label = '' ,
475
+ # placeholder="type the configuration file path or use the 'Open' button above to select it...",
476
+ interactive = False
477
+ )
478
+ # config_file_name.change(
479
+ # remove_doublequote,
480
+ # inputs=[config_file_name],
481
+ # outputs=[config_file_name],
482
+ # )
481
483
with gr .Tab ('Source model' ):
482
484
# Define the input elements
483
485
with gr .Row ():
0 commit comments