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

Restore Crop Box seems to be broken with last update. #442

Open
Nekodificador opened this issue Dec 5, 2024 · 3 comments
Open

Restore Crop Box seems to be broken with last update. #442

Nekodificador opened this issue Dec 5, 2024 · 3 comments

Comments

@Nekodificador
Copy link

LayerUtility: RestoreCropBox
name 'log' is not defined

ComfyUI Error Report

Error Details

  • Node ID: 19
  • Node Type: LayerUtility: RestoreCropBox
  • Exception Type: NameError
  • Exception Message: name 'log' is not defined

Stack Trace

  File "C:\ComfyUIs\ComfyNeko\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\ComfyUIs\ComfyNeko\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\ComfyUIs\ComfyNeko\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "C:\ComfyUIs\ComfyNeko\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\ComfyUIs\ComfyNeko\ComfyUI\custom_nodes\ComfyUI_LayerStyle\py\restore_crop_box.py", line 74, in restore_crop_box
    log(f"{self.NODE_NAME} Processed {len(ret_images)} image(s).", message_type='finish')
    ^^^
@chflame163
Copy link
Owner

The bug has been fixed. Thank you for your feedback

@Nekodificador
Copy link
Author

Thank you! Is it ready to update yet? I saw the node pack got an update, but after installing it, I’m still getting the same error.

@Nekodificador
Copy link
Author

NVM, I just reinstalled from scratch and is working now. Thanks!

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

2 participants