Skip to content

Conversation

@Blakeem
Copy link

@Blakeem Blakeem commented Apr 8, 2024

I was getting the following error in ComfyUI.

Error occurred when executing BNK_GetSigma:

'SDXL' object has no attribute 'get_model_object'

File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Noise\nodes.py", line 143, in calc_sigma
sigmas = sampler.sigmas
File "E:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 705, in init
self.set_steps(steps, denoise)
File "E:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 726, in set_steps
self.sigmas = self.calculate_sigmas(steps).to(self.device)
File "E:\ComfyUI_windows_portable\ComfyUI\comfy\samplers.py", line 717, in calculate_sigmas
sigmas = calculate_sigmas(self.model.get_model_object("model_sampling"), self.scheduler, steps)
File "C:\Users\Blake\AppData\Roaming\Python\Python310\site-packages\torch\nn\modules\module.py", line 1695, in getattr
raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")

I found this solution for another node, and implemented it here. I don't think it needs to be backwards compatible?

Kosinkadink/ComfyUI-AnimateDiff-Evolved@93af734

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

Successfully merging this pull request may close these issues.

1 participant