openpose-editor icon indicating copy to clipboard operation
openpose-editor copied to clipboard

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

Open heichang opened this issue 1 year ago • 14 comments

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

heichang avatar Mar 12 '23 10:03 heichang

Please tell me more about the situation

fkunn1326 avatar Mar 12 '23 23:03 fkunn1326

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...

samuelykc avatar Mar 13 '23 05:03 samuelykc

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 .

heichang avatar Mar 13 '23 06:03 heichang

Do you see any errors in the terminal?

fkunn1326 avatar Mar 13 '23 07:03 fkunn1326

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'

samuelykc avatar Mar 13 '23 07:03 samuelykc

I pushed the fix. please update and try again.

fkunn1326 avatar Mar 13 '23 09:03 fkunn1326

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

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

samuelykc avatar Mar 13 '23 09:03 samuelykc

The new version seems to have the same issue

luoyeETH avatar Mar 13 '23 09:03 luoyeETH

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

jokker87 avatar Mar 13 '23 10:03 jokker87

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. お手間を取らせて申し訳ございません。 引き続き宜しくお願い致します。🙇🏻‍♂️

louishane avatar Mar 13 '23 11:03 louishane

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

RoguePilot001 avatar Mar 13 '23 11:03 RoguePilot001

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

can confirm, removing the bracket fixes the issue

EriIaz avatar Mar 13 '23 16:03 EriIaz

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

Shmitter67 avatar Mar 13 '23 17:03 Shmitter67

Fixed in https://github.com/fkunn1326/openpose-editor/commit/11e284531e2ccc0563176df194fe64847a1d9664

fkunn1326 avatar Mar 13 '23 22:03 fkunn1326