ComfyUI-post-processing-nodes icon indicating copy to clipboard operation
ComfyUI-post-processing-nodes copied to clipboard

Vignette effect bug

Open syllebra opened this issue 2 years ago • 4 comments
trafficstars

Vignette effect is not working:

`Error occurred when executing Vignette:

Vignette.apply_vignette() got an unexpected keyword argument 'a'

File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 152, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 82, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\AI\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) `

This is a typo where an old 'a' is still in parameters descriptions in stead of 'vignette', as is the parameter name in 'apply_vignette'. fix: vignette.py line 13 "a" => "vignette"

Good job on these node btw!

syllebra avatar Oct 05 '23 04:10 syllebra

I just hit this bug too. I tried making the change above, but still get the same error.

GalaxyTimeMachine avatar Oct 27 '23 13:10 GalaxyTimeMachine

If I use the "Film Grain" node, which has a "vignette" option...that works!

GalaxyTimeMachine avatar Oct 27 '23 14:10 GalaxyTimeMachine

Hi, vignette works via film grain. But overall, not very well. You can only set fixed numbers (1/2/3 not 0.4/1.3, etc.). That is a problem. A Vignette of 1 is already way too much. An idea how to solve this easily?

mickyboys avatar Nov 28 '23 16:11 mickyboys

@mickyboys I made a tweak, the behaviour may change slightly but allows granular control now. #6

Unfortunately I have not managed to fix the Vignette only node, but IMO the single purpose nodes should be dropped as the Film Grain node is versatile enough.

digitaljohn avatar Feb 07 '24 02:02 digitaljohn

Late 😓, but fixed now in 522817d3d39a68ffafa581f7656c4faa716cf236. Thanks for letting me know. I made Vignette match the change digitaljohn made to film grain.

EllangoK avatar Aug 09 '24 16:08 EllangoK