Commit Graph

30 Commits (0d4e6c4ece67e8375062cf39f3a8a1e83317382f)

Author SHA1 Message Date
bmaltais 0d4e6c4ece Update command executor code 2024-03-16 11:00:13 -04:00
bmaltais 954b208cba Improve class_folder code 2024-03-16 10:44:19 -04:00
bmaltais 7186869c72
Code improvements (#2107)
* Fix incorrect float representation

* Improve code

* Improve code quality

* Improve code

* Updates for https://github.com/bmaltais/kohya_ss/issues/2103
2024-03-15 22:54:00 -04:00
bmaltais 90a02984cf Cleanup .update deprecations warnings 2024-03-15 10:03:41 -04:00
bmaltais 7081b22cba Add support for `wandb_run_name`, `log_tracker_name` and `log_tracker_config` parameters under the advanced section. 2024-03-14 19:41:34 -04:00
bmaltais d16be7b7c7 Update README, fix vae path validation 2024-03-13 07:11:41 -04:00
bmaltais dbc2cfec97 Create output and log folder if missing 2024-03-12 17:22:23 -04:00
bmaltais 6df6b982f9 Fix minor issues 2024-03-12 11:31:47 -04:00
Bernard Maltais 9a3a16143a Fix issue with spaces in python path 2024-03-12 07:12:08 -04:00
bmaltais 130b01a2c0 Undo tkinter change 2024-03-11 10:56:15 -04:00
bmaltais a419b063f4 Trap Tk module issue 2024-03-10 21:08:13 -04:00
bmaltais 07e7d3acf8 Fix typos 2024-03-10 15:34:29 -04:00
bmaltais 40314706c4 Improve user file/folder input validation before running training scripts 2024-03-10 15:27:33 -04:00
bmaltais 33ccb84446 Add better python, model and data dir validation 2024-03-09 20:50:25 -05:00
bmaltais ed01468b47 Fix savinf of config along produced model 2024-03-09 14:52:55 -05:00
bmaltais 2259129f33 Add "" at the begining of list_* to remove confusion and fix issues with optional field being set to a wroong default 2024-03-09 14:27:10 -05:00
bmaltais 1d61833c8a Fix issue with VAE list 2024-03-09 13:55:13 -05:00
Won-Kyu Park 696efdc893
add missing nonlocal scope keywords 2024-03-10 01:34:55 +09:00
bmaltais 3e023952df
Dev pure (#2039)
* Remove library folder, update setup_windows

* Cleanup sd-scripts files

* set sd-scripts release via file

* More cleanup

* Point to sd-scripts python files

* Fix blip captioning working directory

* Fix typo

* Fix issue with verify lora

* Improve git cloning of sd-scripts repo

* Integrate cloning in linux setup script

* Remove unnecessary folder

* Update linux setup

* Removing unnecessary code

* Fix validation issue under linux

* Update tensorboard version linux

* Updating linux requirements

* Update README

* Added submodule for sd-scripts

* Update for proper submodule handling

* Simplify submodule init

* Update comment

* Improve WSL2 LD_LIBRARY_PATH handling

* Update tensorboard handling of logging_dir

* chore(docker): update TensorFlow and TensorBoard versions

- Upgrade TensorFlow version in Dockerfile and requirements to 2.15.0.post1
- Update TensorBoard version in requirements to 2.15.2

Signed-off-by: 陳鈞 <jim60105@gmail.com>

* chore(docker): Add a mount for `sd-scripts` in the Dockerfile during pip install

- Add a mount step for `sd-scripts` in the Dockerfile during pip install.

Signed-off-by: 陳鈞 <jim60105@gmail.com>

* doc(docker): Update readme about docker

* Fix issue with TE LR

* Fix issue with TE LR

* Update sd-scripts to Feb 27 2024 commit

* Update version of bnb for windows

* Update windows setup

* Update windows setup

* Update bnb linux to match windows

* remove height:auto

* update UI

 * unify Quick Pick + custom model selection into gr.Dropdown()
 * add list_dirs(), list_files()
 * use gr.Accordion()
 * always show model + training image folder + output name + minimal default settings
 * do not show hidden files
 * clean up list_*()

* use PYTHONPATH env variable

* add "tool" classname to gr.Button() for sd-webui compatible

* update *_caption_gui.py using create_refresh_buttons()

* update Utilities->Group Images

* update Utilities->Convert model

* update dataset gui

* update Dreambooth/LoRA folders preparation

* update *lora*_gui UI using list_files(), create_refresh_button()

* more fixes for PYTHONPATH

* Minor edits to basic caption and common gui

* Optimising some code

* Fix path issue

* Fix issues with list_images_dir

* Update finetuning image folder label

* Minor updates to UI

---------

Signed-off-by: 陳鈞 <jim60105@gmail.com>
Co-authored-by: 陳鈞 <jim60105@gmail.com>
Co-authored-by: Won-Kyu Park <wkpark@gmail.com>
2024-03-09 09:30:20 -05:00
Kononenko Pavel 6872ca266c
Fix block_lr issue 2024-03-03 15:59:26 +03:00
Won-Kyu Park e2578cfe34
revert gr.update() and use gr.*.update() 2024-03-02 22:03:05 +09:00
Won-Kyu Park d6120017aa
use subprocess.run(run_cmd, shell=True, env=env) 2024-03-02 14:10:03 +09:00
Won-Kyu Park 644c911207
fix typos 2024-03-02 14:10:03 +09:00
Won-Kyu Park 708245e1e6
more cleanup
- use sys.executable
 - check *_dir validity and remove doublequotes strip
 - set `scriptdir`
 - use gr.update()
 - unify Folders for finetune
 - use subprocess.run(run_cmd, shell=True, env=env)
2024-03-02 14:10:02 +09:00
Won-Kyu Park a2450b1d43
hide dummy gr.Textbox() 2024-02-28 01:01:49 +09:00
Won-Kyu Park 43618c4dca
show guides if available 2024-02-28 00:36:27 +09:00
Won-Kyu Park 240ae495e2
extract utilities_gui.py command line UI from kohya_gui/utilities.py 2024-02-28 00:27:14 +09:00
Won-Kyu Park 01abd5dc46
extract command line UIs from *_gui.py 2024-02-28 00:14:17 +09:00
Won-Kyu Park 1927fe1b86
move *_gui.py to kohya_gui/ 2024-02-28 00:14:07 +09:00
Won-Kyu Park bdb98af295
move gui related files to kohya_gui/ 2024-02-27 21:54:38 +09:00