fail to train
I was able to train the model successfully in 2 weeks ago, but today when I try to train again, it fail with OOM error, any idea how to fix it? thanks
Traceback (most recent call last):
File "E:\git\kohya_ss\train_db.py", line 364, in
You could try to rever back to the release you used two week ago and confirm that all is OK. Kohya constantly update his trainer code and can introduce differences in how much resources it uses.
To revert to a previous release use the following commands:
git checkout <release name>
upgrade.ps1
This will bring you back to that release code base.
To go back to the current code do:
git checkout master
upgrade.ps1
I tried entering the above code in Git CMD, CMD, and powershell...none of which worked. Here is the code I entered:
git checkout 21.1.0
upgrade.ps1
Additionally, in both Git CMD and powershell, I get the following message when I enter it:
PS S:\kohya_ss> git checkout 21.1.0
>> upgrade.ps1
fatal: not a git repository (or any of the parent directories): .git
upgrade.ps1 : The term 'upgrade.ps1' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:2 char:1
+ upgrade.ps1
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (upgrade.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS S:\kohya_ss>
You did not add the v in front of the release name. Try git checkout v21.1.0
Nope...already tried that, and here is the corresponding error message.
upgrade.ps1 : The term 'upgrade.ps1' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:2 char:1
+ upgrade.ps1
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (upgrade.ps1:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Are you running powershell of the old CMD terminal? the GUI is expecting a powershell terminal to run properly. CMD sort of work but can be hit and miss... and the upgrade.ps1 error make me think you are not using a powershell terminal environment.