Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Is the OpenPose Editor not working? No response after installation. #72

Open
heichang opened this issue Mar 12, 2023 · 14 comments
Open

Comments

@heichang
Copy link

Is the OpenPose Editor not working? No response after installation.

I do all thing about how to install , Extensionsshow out "openpose-edit" is exist, but there is no any page call OpenPose Editor, so I can't use it

thx for reading

@fkunn1326
Copy link
Owner

Please tell me more about the situation

@samuelykc
Copy link

Hi. ~13 hrs ago, I was installing OpenPose for the first time and encountered the same issue.

I am afraid there is not much details to mention:
Installation succeed.
Reload UI, tab not showing up.
Checked the setting page to look for anything relevant but nothing.
Ensured the extension was installed (from the "Extensions" tab & from my file directory), disabled & enabled it, still nothing.
Restart SD, nothing.
Revert SD to a revision a few days earlier, nothing.
Reinstall OpenPose, still nothing.

To conclude, it's really simply nothing shown up, nothing I could interact with...

@heichang
Copy link
Author

Please tell me more about the situation

Same as samuelykc said : Nothing.

Nothing happen or add after install.
Im sure Follow the step of install,but no matter how I Restart SD,
Nothing come out .

@fkunn1326
Copy link
Owner

Do you see any errors in the terminal?

@samuelykc
Copy link

Do you see any errors in the terminal?

Oh, I think I've got something:
Error executing callback ui_tabs_callback for D:\Users\Samuel\Documents\GitHub\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py Traceback (most recent call last): File "D:\Users\(username)\Documents\GitHub\stable-diffusion-webui\modules\script_callbacks.py", line 125, in ui_tabs_callback res += c.callback() or [] File "D:\Users\(username)\Documents\GitHub\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py", line 76, in on_ui_tabs select_target_index = gr.Dropdown([str(i) for i in range(opts.control_net_max_models_num)], label="Send to", value="0", interactive=True, visible=(opts.control_net_max_models_num > 1)) File "D:\Users\(username)\Documents\GitHub\stable-diffusion-webui\modules\shared.py", line 552, in __getattr__ return super(Options, self).__getattribute__(item) AttributeError: 'Options' object has no attribute 'control_net_max_models_num'

@fkunn1326
Copy link
Owner

I pushed the fix. please update and try again.

@samuelykc
Copy link

Thanks for the quick fix!

Just updated and applied the changes. I am afraid that there may be some syntax error in the script. Below is the console output I've got after update:

Restarting UI...
Error loading script: main.py
Traceback (most recent call last):
  File "D:\Users\Samuel\Documents\GitHub\stable-diffusion-webui\modules\scripts.py", line 248, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "D:\Users\Samuel\Documents\GitHub\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 879, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1017, in get_code
  File "<frozen importlib._bootstrap_external>", line 947, in source_to_code
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\Users\Samuel\Documents\GitHub\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py", line 77
    if (hasattr(opts, 'control_net_max_models_num'):
                                                   ^
SyntaxError: invalid syntax

お手間を取らせて申し訳ございません。
引き続き宜しくお願い致します。🙇🏻‍♂️

@luoyeETH
Copy link
Contributor

The new version seems to have the same issue

@jokker87
Copy link

There's a parenthese too much in that line of code.

@louishane
Copy link

Thanks for the quick fix!

Just updated and applied the changes. I am afraid that there may be some syntax error in the script. Below is the console output I've got after update:

Restarting UI...
Error loading script: main.py
Traceback (most recent call last):
  File "D:\Users\Samuel\Documents\GitHub\stable-diffusion-webui\modules\scripts.py", line 248, in load_scripts
    script_module = script_loading.load_module(scriptfile.path)
  File "D:\Users\Samuel\Documents\GitHub\stable-diffusion-webui\modules\script_loading.py", line 11, in load_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 879, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1017, in get_code
  File "<frozen importlib._bootstrap_external>", line 947, in source_to_code
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "D:\Users\Samuel\Documents\GitHub\stable-diffusion-webui\extensions\openpose-editor\scripts\main.py", line 77
    if (hasattr(opts, 'control_net_max_models_num'):
                                                   ^
SyntaxError: invalid syntax

Updated OpenPoser and then the same problem. OpenPoser tab is gone. Reinstall can't fix it.
お手間を取らせて申し訳ございません。 引き続き宜しくお願い致します。🙇🏻‍♂️

@RoguePilot001
Copy link

There's an extra open bracket in line 77 of main.py
Delete the ( before hasattr.

@EriIaz
Copy link

EriIaz commented Mar 13, 2023

There's an extra open bracket in line 77 of main.py Delete the ( before hasattr.

can confirm, removing the bracket fixes the issue

@Shmitter67
Copy link

Thanks @RoguePilot001 and @EriIaz , made that change and it fixed it for me

@fkunn1326
Copy link
Owner

Fixed in 11e2845

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

No branches or pull requests

9 participants