bmaltais / kohya_ss

Apache License 2.0
8.79k stars 1.14k forks source link

PermissionError: [Errno 13] Permission denied: '' #2568

Closed XinPeiHou closed 1 week ago

XinPeiHou commented 1 month ago

kohya_error What is the cause of this error?Thanks

b-fission commented 1 month ago

It looks like the gui can't find the accelerate executable, so it's using a blank for it. The command line should be accelerate launch ...... and not launch .....

You may need to check if the file kohya_ss/venv/bin/accelerate exists and has "execute" permission.

If it doesn't look right, try to uninstall that component by running ./venv/bin/pip uninstall accelerate and then start the gui which should automatically reinstall it.

EDIT: I'm looking again; you're using a conda environment instead of the usual venv? If the uninstall command above didn't work, maybe this command will do instead: pip uninstall accelerate

XinPeiHou commented 1 month ago

It looks like the gui can't find the accelerate executable, so it's using a blank for it. The command line should be accelerate launch ...... and not launch .....

You may need to check if the file kohya_ss/venv/bin/accelerate exists and has "execute" permission.

If it doesn't look right, try to uninstall that component by running ./venv/bin/pip uninstall accelerate and then start the gui which should automatically reinstall it.

EDIT: I'm looking again; you're using a conda environment instead of the usual venv? If the uninstall command above didn't work, maybe this command will do instead: pip uninstall accelerate

ok,Thanks, the issue solved after install accelerate