BlenderNeko / ComfyUI_TiledKSampler

Tiled samplers for ComfyUI
GNU General Public License v3.0
297 stars 17 forks source link

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

Open KumaPlayWithShader opened 9 months ago

KumaPlayWithShader commented 9 months ago

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_len*8).to(model.control_model.dtype).to(model.device)

larsupb commented 8 months ago

Should be fixed now