Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kohya finetuning error #1246

Closed
etha302 opened this issue Jul 23, 2023 · 7 comments · Fixed by #1835
Closed

Kohya finetuning error #1246

etha302 opened this issue Jul 23, 2023 · 7 comments · Fixed by #1835
Labels
bug Something isn't working

Comments

@etha302
Copy link

etha302 commented Jul 23, 2023

Hello,

i am getting this error when using "finetuning" method in kohya_ss: fine_tune.py: error: unrecognized arguments: --no_half_vae. It worked for me in the past just fine, but after the update i simply cannot figure out why i am getting this error, this only applies for "finetune". Dreambooth and loras are working just fine.Hope someone can help me out.
i cannot figure out where --no_half_vae, args are in fine_tune.py and if removing it would even help.
edit: also i have no extra arguments specified in the gui itself

@etha302
Copy link
Author

etha302 commented Jul 25, 2023

i havent been able to find a solution so far, so if anyone has a clue please help me out here. this for finetuning 1.5 but exactly the same happens for sdxl.

@bmaltais bmaltais added the bug Something isn't working label Jul 28, 2023
@bmaltais
Copy link
Owner

Hummm... did I broke something in the GUI with the recent SDXL update? You are training SD1.5, right? I will add it to the list of things to check when I am back from vacation.

@etha302
Copy link
Author

etha302 commented Jul 28, 2023

Hummm... did I broke something in the GUI with the recent SDXL update? You are training SD1.5, right? I will add it to the list of things to check when I am back from vacation.

hi, thanks for your reply. OR im doing something really wrong, but i dont know. i would really appreciate if you take a look when you are back from vacation, here are some screenshots. ignore parameters, but it doesnt even matter what i set them to, same error always.
edit: seems it is not happy with args: --no_half_vae but i looked everywhere for this in .py files but havent found anything that would cause this.
2023-07-26_002803
2023-07-26_003947

@maifree123
Copy link

open SDXL model,--no_half_vae in Parameters

@dneilsterino
Copy link

modify your config .json with:

"sdxl_no_half_vae": false

then open the config and train. You might also have to use:

"bucket_no_upscale": false

@asgeorges
Copy link

Just to add on to @maifree123 ....

You'll want to open up SDXL model option, even though you might not be using it, uncheck the half vae option, then unselect the SDXL option if you are using 1.5, etc...

Thanks @maifree123 !

@farizy4n
Copy link

farizy4n commented Oct 21, 2023

modify your config .json with:

"sdxl_no_half_vae": false

then open the config and train. You might also have to use:

"bucket_no_upscale": false

Thanks, thats worked to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants