comfyui-propost icon indicating copy to clipboard operation
comfyui-propost copied to clipboard

TypeError: 'int' object is not subscriptable

Open TmacChenQian opened this issue 9 months ago • 4 comments

!!! Exception during processing !!! 'int' object is not subscriptable Traceback (most recent call last): File "/home/kemove/project/comfyUINew/ComfyUI-master/execution.py", line 328, 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 "/home/kemove/project/comfyUINew/ComfyUI-master/execution.py", line 203, 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 "/home/kemove/project/comfyUINew/ComfyUI-master/execution.py", line 174, in _map_node_over_list process_inputs(input_dict, i) File "/home/kemove/project/comfyUINew/ComfyUI-master/execution.py", line 163, in process_inputs results.append(getattr(obj, func)(**inputs)) File "/home/kemove/project/comfyUINew/ComfyUI-master/custom_nodes/comfyui-propost/nodes.py", line 197, in filmgrain_image vignette_image = self.apply_filmgrain(tensor_image, gray_scale, grain_type_index, grain_sat, grain_power, shadows, highs, scale, sharpen, src_gamma, seed+b) File "/home/kemove/project/comfyUINew/ComfyUI-master/custom_nodes/comfyui-propost/nodes.py", line 205, in apply_filmgrain out_image = filmgrainer.process(image, scale, src_gamma, File "/home/kemove/project/comfyUINew/ComfyUI-master/custom_nodes/ComfyUI_LayerStyle-main/py/filmgrainer/filmgrainer.py", line 60, in process org_width = img.size[0] TypeError: 'int' object is not subscriptable

TmacChenQian avatar Apr 10 '25 08:04 TmacChenQian

Image

TmacChenQian avatar Apr 10 '25 09:04 TmacChenQian

+1

Cyph3r avatar Jun 02 '25 17:06 Cyph3r

Same error

herki avatar Jun 28 '25 17:06 herki

Try https://github.com/digitaljohn/comfyui-propost/pull/42

polym avatar Aug 27 '25 06:08 polym