Skip to content

AttributeError: 'NoneType' object has no attribute 'view' #16

@hieuck

Description

@hieuck

!!! Exception during processing !!! 'NoneType' object has no attribute 'view'
Traceback (most recent call last):
File "G:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 324, 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 "G:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 199, 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 "G:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 170, in _map_node_over_list
process_inputs(input_dict, i)
File "G:\StabilityMatrix\Data\Packages\ComfyUI\execution.py", line 159, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "G:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_AdvancedRefluxControl\nodes.py", line 220, in apply_stylemodel
image, masko = prepareImageAndMask(clip_vision, image, mask, mode, autocrop_margin)
File "G:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_AdvancedRefluxControl\nodes.py", line 166, in prepareImageAndMask
(bx,by,bx2,by2) = getBoundingBox(mask,W,H,autocrop_margin, desiredSize)
File "G:\StabilityMatrix\Data\Packages\ComfyUI\custom_nodes\ComfyUI_AdvancedRefluxControl\nodes.py", line 101, in getBoundingBox
mask=mask.view(h,w)
AttributeError: 'NoneType' object has no attribute 'view'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions