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

divide_folder( ) missing 1 required positional argument: "mode" #47

Open
muttondagger opened this issue Sep 22, 2023 · 3 comments
Open

Comments

@muttondagger
Copy link

I have tried installing the automatic1111 extension version of Layer Divider.

The first time I installed it, I managed to get the segment function to work:
image

However, I could not create a psd file with it:
image

And in the end, this error popped up:
image

Also, after I closed the webui and opened it again, segment function does not work anymore.

@tetora1234
Copy link

main.pyのdivide_folderを以下に変更します

divide_folder(filename, input_dir, layer_mode)に
上記に修正後SDを再起動すると治ります。

@lemoneder
Copy link

私もこのエラーが発生し起動できないのですが、何行目のdivide_folderを変更すればいいですか?

@sisoAZ
Copy link

sisoAZ commented Feb 22, 2024

私もこのエラーが発生し起動できないのですが、何行目のdivide_folderを変更すればいいですか?

stable diffusion webuiがインストールされているフォルダから、extensions\layerdivider\scriptsに行き、scriptsフォルダ内にあるmain.pyをテキストエディタで開いて、81行目と94行目をdivide_folder(filename, input_dir, layer_mode)に書き換えてください
書き換えたあとはSDの再起動をして、コードの変更を反映させてください

divide_folder(filename, input_dir)

divide_folder(filename, input_dir)

- divide_folder(filename, input_dir) 
+ divide_folder(filename, input_dir, layer_mode)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants