shiimizu / ComfyUI_smZNodes

Custom nodes for ComfyUI such as CLIP Text Encode++
GNU General Public License v3.0
168 stars 12 forks source link

error when using Sampler Custom Advance #73

Closed Philmar1986 closed 2 months ago

Philmar1986 commented 2 months ago

when I install smZNodes, whatever I use A1111(RNG=GPU, parser=A1111) or Comfy(do not use any smZnodes) with Sampler Custom Advance, it always shows: Error occurred when executing SamplerCustomAdvanced:

local variable 'opts' referenced before assignment

File "K:\ComfyUI-aki-v1.3\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "K:\ComfyUI-aki-v1.3\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "K:\ComfyUI-aki-v1.3\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "K:\ComfyUI-aki-v1.3\comfy_extras\nodes_custom_sampler.py", line 550, in sample samples = guider.sample(noise.generate_noise(latent), latent_image, sampler, sigmas, denoise_mask=noise_mask, callback=callback, disable_pbar=disable_pbar, seed=noise.seed) File "K:\ComfyUI-aki-v1.3\comfy_extras\nodes_custom_sampler.py", line 355, in generate_noise return comfy.sample.prepare_noise(latent_image, self.seed, batch_inds) File "K:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_smZNodes\smZNodes.py", line 606, in prepare_noise if opts.randn_source == 'gpu':

I have no idea if smZnodes could work with Sampler Custom Advance or not.

could you help with it?

thanks