Giter Site home page Giter Site logo

Comments (13)

bmaltais avatar bmaltais commented on September 2, 2024

It is not supported at the moment. The closest you can do it to use the config.toml file to specify those folders as part of the config… I can add support for more of those in the future if useful

from kohya_ss.

bjspi avatar bjspi commented on September 2, 2024

Thanks for your reply - is it possible to fill the 5 fields within the "Dataset preparation" tab also via JSON config? If so, which dictionary keys to use? Thank you so much

from kohya_ss.

bmaltais avatar bmaltais commented on September 2, 2024

Not at the moment but I should be able to add it easily enough.

from kohya_ss.

bmaltais avatar bmaltais commented on September 2, 2024

OK... I think I have it working:

image

image

Will push it to the dev branch... simply uncomment the dataset_preparation section and set the values to the desired defaults.

from kohya_ss.

bmaltais avatar bmaltais commented on September 2, 2024

OK, pushed, give it a try.

from kohya_ss.

bjspi avatar bjspi commented on September 2, 2024

Thank you so much - but this is only for the TOML Config, right? Or is it also accessible via JSON? Because as I wrote, I have everything configured JSON right now - I gotta see if I either convert it to TOML, or how I'll cope with it.

BTW: Passing a Config File (TOML or JSON) via CMD when starting KOHYA GUI is also not yet possible, right?

Thank you very much!

from kohya_ss.

bmaltais avatar bmaltais commented on September 2, 2024

Correct. At the moment the toml file is always config.toml.

from kohya_ss.

bmaltais avatar bmaltais commented on September 2, 2024

I pushed an update to the dev branch that will allow you to specify a --config <file path> option when starting the GUI. FOr example:

.\gui.bat --config "./config example.toml"

This will load the configuration from the example config file. You can point to any filename in any filepath.

from kohya_ss.

bmaltais avatar bmaltais commented on September 2, 2024

I also started to expand the parameters you can set via the config.toml file... slowly making progress... The goal is that all values can be set using the config file

from kohya_ss.

bjspi avatar bjspi commented on September 2, 2024

Awesome to hear, thanks!
Gotta switch to TOML soon :) (right now I have a Python script which modifies the config.json - hence I should rewrite it to support TOML files as well). Because both your changes really simplify things again.

One more question:
What do you think about supporting a "sequence of trainings" with some sort of scheduler? Actually Im looking for a way to change repeats, and basemodels and only start the process once - and let all the trainings run sequentially. Why would I wanna do it? Well, because I wanna let my PC / RunPod run on full speed without having to check the status and start the next training every few hours. That would be awesome

I would actually only need a multi training for different base-models, repeats, not for advanced parameters. But I do understand that others might want different stuff. And supporting a real "job scheduler" where people can configure everything might be tough to implement, I dont know!?

from kohya_ss.

bmaltais avatar bmaltais commented on September 2, 2024

For the sequencing there is no plan to support that… you can use the print option to capture the training command and pot those in a script you can then run without the gui…

The toml is not re replacement for training json files. Rather, it is there to specify custom default values for the GUI elements… training g json are still needed to save the training configuration.

from kohya_ss.

bjspi avatar bjspi commented on September 2, 2024

I'm not talking about the training json files in the training output folder.
I'm talking about my JSON config which defines all the Training parameters for the GUI!
The way I assumed it is: Either TOML or JSON can be used. I mean, obviously importing my config.json with predefined modelname, model checkpoint path, epoch, save_every etc works - so must be implemented as an alternative to TOML!?

from kohya_ss.

bmaltais avatar bmaltais commented on September 2, 2024

TOML is a human friendly format an better suited for humans. I chose that for the GUI defaults for that reason. One could convert the json parameters to toml for use as an input but it is not really meant for that. But you could write a python script just to do that.

from kohya_ss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.