Commit Graph

9 Commits (51d87f5309e84523560307ba3d501e7eedea50b2)

Author SHA1 Message Date
bmaltais 51d87f5309
feat: Remember last used folder for file dialogs (#3290)
* feat: Remember last used folder for file dialogs

This commit introduces a feature to remember the last used folder for various file and folder dialogs within the GUI.

Key changes:

- Modified `KohyaSSGUIConfig` (`kohya_gui/class_gui_config.py`) to store and retrieve a `last_used_folder` value in the `config.toml` file.
- Updated file/folder dialog utility functions in `kohya_gui/common_gui.py` (e.g., `get_folder_path`, `get_file_path`, `get_saveasfilename_path`) to:
    - Accept the `KohyaSSGUIConfig` instance.
    - Use the stored `last_used_folder` as the initial directory for dialogs.
    - Update `last_used_folder` after a successful selection.
- Updated various GUI modules (`class_folders.py`, `wd14_caption_gui.py`, and other captioning utilities) to pass the `KohyaSSGUIConfig` instance to these dialog functions.

This enhancement improves your experience by defaulting file dialogs to the most recently accessed relevant directory, streamlining the workflow for you when you frequently work with specific folders.

* Fix typo

* Fix typos

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2025-06-16 07:39:29 -04:00
bmaltais 451f051d52
Update kohya_gui/blip2_caption_gui.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-25 18:10:24 -04:00
Ryan 9d500d99c2
Apple Silicone Support (This time not on Master) (#3174)
* Adding some changes to support current apple silicone

Adding a note that MPS is detected in validation, and a current set of packages that offer MPS torch acceleration

* Adding MPS support for blip2
2025-04-19 10:22:53 -04:00
bmaltais 85029895a9 Add .webp image extension support to BLIP2 captioning. 2024-05-25 08:35:16 -04:00
bmaltais 4c5f4dfd27 update file read and write to utf-8 2024-04-19 10:50:43 -04:00
bmaltais fd8bfa8a39 Upgrade Gradio release 2024-04-10 20:48:12 -04:00
bmaltais d812b1f5ba Update WD14 captioning 2024-04-07 19:09:12 -04:00
bmaltais 49f76343b5 Format with black 2024-04-03 18:32:25 -04:00
bmaltais 25f9378dc2
BLIP2 Captioning (#2144)
* 1st comit

* BLIP2 captioning implementation
2024-03-22 21:16:59 -04:00