hollowstrawberry / kohya-colab

Accessible Google Colab notebooks for Stable Diffusion Lora training, based on the work of kohya-ss and Linaqruf
GNU General Public License v3.0
564 stars 79 forks source link

Upload existing config #115

Closed ManuelMultiverse closed 2 months ago

ManuelMultiverse commented 3 months ago

Hi! Is is possible to upload old settings into the colab notebook?

ArmyOfPun1776 commented 3 months ago

are you asking if you can load a previous training config? If so you could take the Training_congif.toml from a previous train with the settings you want. But you'll have to modify the save Arguments every time to match the name of your project with visual studio or another application that can read .toml files.

I think you can also save the notebook to your drive and modify the code from there to augment the "default' settings as well.

But as far as something native to the notebook, no there is no setting for that as far as I know.

hollowstrawberry commented 3 months ago

There is a hidden feature for this.

Before running the main trainer, create a new code cell and run this code:

override_config_file = "/content/drive/MyDrive/config.toml"
override_dataset_config_file = "/content/drive/MyDrive/dataset_config.toml"

Edit the locations as necessary. You can also choose only one or the other.

Everything will be overriden and the values you choose in the colab will be ignored. This is not intuitive so I haven't included it in the colab.