Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'T2IAdapter' object has no attribute 'control_model' #21

Open
KumaPlayWithShader opened this issue Oct 11, 2023 · 1 comment
Open

'T2IAdapter' object has no attribute 'control_model' #21

KumaPlayWithShader opened this issue Oct 11, 2023 · 1 comment

Comments

@KumaPlayWithShader
Copy link

other no tiled KSampler work well , but TiledKSampler not work.

Error occurred when executing BNK_TiledKSamplerAdvanced:

'T2IAdapter' object has no attribute 'control_model'

File "D:\ComfyUI_Portable\ComfyUI\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "D:\ComfyUI_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 "D:\ComfyUI_Portable\ComfyUI\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "D:\ComfyUI_Portable\ComfyUI\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 346, in sample
return sample_common(model, add_noise, noise_seed, tile_width, tile_height, tiling_strategy, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, start_at_step, end_at_step, return_with_leftover_noise, denoise=1.0, preview= preview == 'enable')
File "D:\ComfyUI_Portable\ComfyUI\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 250, in sample_common
slice_cnet(tile_h, tile_h_len, tile_w, tile_w_len, m, img)
File "D:\ComfyUI_Portable\ComfyUI\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 86, in slice_cnet
model.cond_hint = tiling.get_slice(img, h8, h_len8, w8, w_len8).to(model.control_model.dtype).to(model.device)

@larsupb
Copy link

larsupb commented Nov 14, 2023

Should be fixed now

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

No branches or pull requests

2 participants