Nerogar / OneTrainer

OneTrainer is a one-stop solution for all your stable diffusion training needs.
GNU Affero General Public License v3.0
1.81k stars 154 forks source link

[Bug]: TopBar.py looks for a missing preset file on first launch #491

Closed Arcitec closed 1 week ago

Arcitec commented 1 month ago

On every freshly cloned installation of OneTrainer (into a new, blank installation directory), train_ui.py triggers the following error on first launch:

Traceback (most recent call last):
  File "modules/ui/TopBar.py", line 196, in __load_current_config
    with open(filename, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'training_presets/#.json'
DerrickZhang0108 commented 1 month ago

do you solve it? same bug here

Arcitec commented 2 weeks ago

@DerrickZhang0108 The error is harmless and only happens on the first launch, so you don't have to worry, but it should be fixed sometime so it doesn't look for the empty filename.

Anyway, the error will disappear if you choose a training preset in the top left menu (the blue dropdown):

image

Arcitec commented 1 week ago

Fixed as of this commit:

https://github.com/Nerogar/OneTrainer/commit/fe347c55393ae9a14562f224a838b9c3f233b490