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

BNK_TiledKSampler 'ControlNet' object has no attribute 'device' #60

Open
wocaozhuaige opened this issue Nov 11, 2024 · 5 comments
Open

Comments

@wocaozhuaige
Copy link

报错
微信图片_20241112013824

ComfyUI Error Report

Error Details

  • Node Type: BNK_TiledKSampler
  • Exception Type: AttributeError
  • Exception Message: 'ControlNet' object has no attribute 'device'

Stack Trace

  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)

  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 326, in sample
    return sample_common(model, 'enable', seed, tile_width, tile_height, tiling_strategy, steps_total, cfg, sampler_name, scheduler, positive, negative, latent_image, steps_total-steps, steps_total, 'disable', denoise=1.0, preview=True)

  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 261, in sample_common
    slice_cnet(tile_h, tile_h_len, tile_w, tile_w_len, m, img)

  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 91, in slice_cnet
    model.cond_hint = hint.to(model.control_model.dtype).to(model.device)

System Information

  • ComfyUI Version: v0.2.6
  • Arguments: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\main.py --auto-launch --preview-method auto --disable-cuda-malloc
  • OS: nt
  • Python Version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
  • Embedded Python: false
  • PyTorch Version: 2.3.0+cu121

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 4060 Ti : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 17175150592
    • VRAM Free: 8161760510
    • Torch VRAM Total: 7784628224
    • Torch VRAM Free: 59413758

Logs

2024-11-12 01:33:13,280 - root - INFO - Total VRAM 16380 MB, total RAM 32602 MB
2024-11-12 01:33:13,280 - root - INFO - pytorch version: 2.3.0+cu121
2024-11-12 01:33:15,005 - root - INFO - xformers version: 0.0.26.post1
2024-11-12 01:33:15,005 - root - INFO - Set vram state to: NORMAL_VRAM
2024-11-12 01:33:15,005 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4060 Ti : cudaMallocAsync
2024-11-12 01:33:15,328 - root - INFO - Using xformers cross attention
2024-11-12 01:33:15,922 - root - INFO - [Prompt Server] web root: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\web
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path checkpoints D:\Stable Diffusion\webui\sd-webui-aki-v4.7\models/Stable-diffusion
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path configs D:\Stable Diffusion\webui\sd-webui-aki-v4.7\models/Stable-diffusion
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path vae D:\Stable Diffusion\webui\sd-webui-aki-v4.7\models/VAE
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path loras D:\Stable Diffusion\webui\sd-webui-aki-v4.7\models/Lora
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path loras D:\Stable Diffusion\webui\sd-webui-aki-v4.7\models/LyCORIS
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path upscale_models D:\Stable Diffusion\webui\sd-webui-aki-v4.7\models/ESRGAN
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path upscale_models D:\Stable Diffusion\webui\sd-webui-aki-v4.7\models/RealESRGAN
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path upscale_models D:\Stable Diffusion\webui\sd-webui-aki-v4.7\models/SwinIR
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path embeddings D:\Stable Diffusion\webui\sd-webui-aki-v4.7\embeddings
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path hypernetworks D:\Stable Diffusion\webui\sd-webui-aki-v4.7\models/hypernetworks
2024-11-12 01:33:15,924 - root - INFO - Adding extra search path controlnet D:\Stable Diffusion\webui\sd-webui-aki-v4.7\models/ControlNet
2024-11-12 01:33:18,612 - ComfyUI-CogVideoXWrapper.custom_cogvideox_transformer_3d - INFO - sageattn not found, using sdpa
2024-11-12 01:33:18,628 - ComfyUI-CogVideoXWrapper.cogvideox_fun.transformer_3d - INFO - sageattn not found, using sdpa
2024-11-12 01:33:18,630 - ComfyUI-CogVideoXWrapper.cogvideox_fun.fun_pab_transformer_3d - INFO - sageattn not found, using sdpa
2024-11-12 01:33:20,332 - root - INFO - Total VRAM 16380 MB, total RAM 32602 MB
2024-11-12 01:33:20,332 - root - INFO - pytorch version: 2.3.0+cu121
2024-11-12 01:33:20,332 - root - INFO - xformers version: 0.0.26.post1
2024-11-12 01:33:20,332 - root - INFO - Set vram state to: NORMAL_VRAM
2024-11-12 01:33:20,332 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4060 Ti : cudaMallocAsync
2024-11-12 01:33:23,570 - root - INFO - --------------
2024-11-12 01:33:23,570 - root - INFO - �[91m ### Mixlab Nodes: �[93mLoaded
2024-11-12 01:33:23,570 - root - INFO - ChatGPT.available True
2024-11-12 01:33:23,571 - root - INFO - edit_mask.available True
2024-11-12 01:33:23,714 - root - INFO - ClipInterrogator.available True
2024-11-12 01:33:24,196 - root - INFO - PromptGenerate.available True
2024-11-12 01:33:24,196 - root - INFO - ChinesePrompt.available True
2024-11-12 01:33:24,196 - root - INFO - RembgNode_.available True
2024-11-12 01:33:24,545 - root - INFO - TripoSR.available
2024-11-12 01:33:24,546 - root - INFO - MiniCPMNode.available
2024-11-12 01:33:24,604 - root - INFO - Scenedetect.available False
2024-11-12 01:33:24,696 - root - INFO - FishSpeech.available
2024-11-12 01:33:24,696 - root - INFO - �[93m -------------- �[0m
2024-11-12 01:33:26,489 - py.warnings - WARNING - SupervisionWarnings: BoundingBoxAnnotator is deprecated: `BoundingBoxAnnotator` is deprecated and has been renamed to `BoxAnnotator`. `BoundingBoxAnnotator` will be removed in supervision-0.26.0.

2024-11-12 01:33:26,549 - py.warnings - WARNING - SupervisionWarnings: BoundingBoxAnnotator is deprecated: `BoundingBoxAnnotator` is deprecated and has been renamed to `BoxAnnotator`. `BoundingBoxAnnotator` will be removed in supervision-0.26.0.

2024-11-12 01:33:35,599 - root - INFO - 
Import times for custom nodes:
2024-11-12 01:33:35,599 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\style_aligned_comfy
2024-11-12 01:33:35,599 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\websocket_image_save.py
2024-11-12 01:33:35,599 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_IPAdapter_plus
2024-11-12 01:33:35,599 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\AIGODLIKE-ComfyUI-Translation
2024-11-12 01:33:35,599 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui
2024-11-12 01:33:35,599 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-sampler-lcm-alternative
2024-11-12 01:33:35,599 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\Batch-Condition-ComfyUI
2024-11-12 01:33:35,599 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\FreeU_Advanced
2024-11-12 01:33:35,599 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ControlNet-LLLite-ComfyUI
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-IC-Light-Native
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\cg-use-everywhere
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-VideoHelperSuite
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\comfyui_segment_anything
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-BRIA_AI-RMBG
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Inpaint-CropAndStitch
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_ADV_CLIP_emb
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Logic
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyLiterals
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\stability-ComfyUI-nodes
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-WD14-Tagger
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_HF_Servelress_Inference
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\comfyui_controlnet_aux
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_InstantID
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_experiments
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\comfyui_face_parsing
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\PowerNoiseSuite
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_MiniCPM-V-2_6-int4
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-QualityOfLifeSuit_Omar92
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\comfyui-inpaint-nodes
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Impact-Pack
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_CatVTON_Wrapper
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_FizzNodes
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\images-grid-comfy-plugin
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\comfyui-animatediff
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyMath
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\Comfyui_CXH_joy_caption
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AutoCropFaces
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Native_DynamiCrafter
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_essentials
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_UltimateSDUpscale
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\comfy-image-saver
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Florence2
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-KJNodes
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Frame-Interpolation
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Custom-Scripts
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\Derfuu_ComfyUI_ModdedNodes
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-segment-anything-2
2024-11-12 01:33:35,600 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\xlabs-flux-comfyui
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Marigold
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Advanced-ControlNet-main
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-LivePortraitKJ
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\rgthree-comfy
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-ControlNeXt-SVD
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-SUPIR
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Zwng_Nodes
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-IC-Light
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Comfyroll_CustomNodes
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-GGUF
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_FaceAnalysis
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AnimateDiff-Evolved
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_smZNodes
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\comfyui-workspace-manager
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\facerestore_cf
2024-11-12 01:33:35,601 - root - INFO -    0.0 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Inspire-Pack
2024-11-12 01:33:35,601 - root - INFO -    0.1 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Crystools
2024-11-12 01:33:35,601 - root - INFO -    0.1 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\PuLID_ComfyUI
2024-11-12 01:33:35,601 - root - INFO -    0.1 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-CogVideoXWrapper
2024-11-12 01:33:35,601 - root - INFO -    0.1 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\comfyui-reactor-node
2024-11-12 01:33:35,601 - root - INFO -    0.1 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-SAM2
2024-11-12 01:33:35,601 - root - INFO -    0.2 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_LayerStyle
2024-11-12 01:33:35,601 - root - INFO -    0.2 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Manager
2024-11-12 01:33:35,601 - root - INFO -    0.2 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-PuLID-Flux-Enhanced
2024-11-12 01:33:35,601 - root - INFO -    0.2 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Gemini
2024-11-12 01:33:35,601 - root - INFO -    0.3 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-BrushNet
2024-11-12 01:33:35,601 - root - INFO -    0.4 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-fastblend
2024-11-12 01:33:35,601 - root - INFO -    0.4 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\eden_comfy_pipelines
2024-11-12 01:33:35,601 - root - INFO -    0.4 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use
2024-11-12 01:33:35,601 - root - INFO -    0.5 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-DynamiCrafter
2024-11-12 01:33:35,601 - root - INFO -    0.5 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AdvancedLivePortrait
2024-11-12 01:33:35,601 - root - INFO -    0.8 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\comfyui-art-venture
2024-11-12 01:33:35,601 - root - INFO -    1.4 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-YoloWorld-EfficientSAM
2024-11-12 01:33:35,601 - root - INFO -    1.6 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Inspyrenet-Rembg
2024-11-12 01:33:35,601 - root - INFO -    2.5 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\comfyui-mixlab-nodes
2024-11-12 01:33:35,601 - root - INFO -    3.2 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Custom_Nodes_AlekPet
2024-11-12 01:33:35,601 - root - INFO -    4.9 seconds: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\was-node-suite-comfyui
2024-11-12 01:33:35,601 - root - INFO - 
2024-11-12 01:33:35,617 - root - INFO - Starting server

2024-11-12 01:33:35,617 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-11-12 01:33:45,793 - asyncio - ERROR - Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\python\lib\asyncio\events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\python\lib\asyncio\proactor_events.py", line 165, in _call_connection_lost
    self._sock.shutdown(socket.SHUT_RDWR)
ConnectionResetError: [WinError 10054] 远程主机强迫关闭了一个现有的连接。
2024-11-12 01:33:50,671 - root - INFO - got prompt
2024-11-12 01:33:50,807 - root - INFO - model weight dtype torch.float16, manual cast: None
2024-11-12 01:33:50,817 - root - INFO - model_type EPS
2024-11-12 01:33:51,181 - root - INFO - Using xformers attention in VAE
2024-11-12 01:33:51,182 - root - INFO - Using xformers attention in VAE
2024-11-12 01:33:51,755 - comfyui_segment_anything - WARNING - using extra model: D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\models\sams\sam_vit_h_4b8939.pth
2024-11-12 01:34:03,767 - root - INFO - Requested to load AutoencoderKL
2024-11-12 01:34:03,767 - root - INFO - Loading 1 new model
2024-11-12 01:34:03,806 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-12 01:34:08,627 - root - INFO - Requested to load SD1ClipModel
2024-11-12 01:34:08,627 - root - INFO - Loading 1 new model
2024-11-12 01:34:08,739 - root - INFO - loaded completely 0.0 235.84423828125 True
2024-11-12 01:34:08,822 - root - WARNING - Warning: TAESD previews enabled, but could not find models/vae_approx/taesd_decoder
2024-11-12 01:34:08,822 - root - INFO - Requested to load BaseModel
2024-11-12 01:34:08,822 - root - INFO - Requested to load ControlNet
2024-11-12 01:34:08,823 - root - INFO - Requested to load ControlNet
2024-11-12 01:34:08,823 - root - INFO - Requested to load ControlNet
2024-11-12 01:34:08,823 - root - INFO - Loading 4 new models
2024-11-12 01:34:09,435 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-11-12 01:34:09,578 - root - INFO - loaded completely 0.0 689.0852355957031 True
2024-11-12 01:34:09,776 - root - INFO - loaded completely 0.0 689.0852355957031 True
2024-11-12 01:34:09,949 - root - INFO - loaded completely 0.0 689.0852355957031 True
2024-11-12 01:34:18,938 - root - WARNING - Warning torch.load doesn't support weights_only on this pytorch version, loading unsafely.
2024-11-12 01:34:31,893 - root - INFO - Requested to load SD1ClipModel
2024-11-12 01:34:31,893 - root - INFO - Loading 1 new model
2024-11-12 01:34:32,021 - root - INFO - loaded completely 0.0 235.84423828125 True
2024-11-12 01:34:32,033 - root - WARNING - Warning: TAESD previews enabled, but could not find models/vae_approx/taesd_decoder
2024-11-12 01:34:32,033 - root - INFO - Requested to load BaseModel
2024-11-12 01:34:32,033 - root - INFO - Loading 1 new model
2024-11-12 01:34:32,801 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-11-12 01:35:09,366 - root - WARNING - Warning: TAESD previews enabled, but could not find models/vae_approx/taesd_decoder
2024-11-12 01:35:09,371 - root - ERROR - !!! Exception during processing !!! 'ControlNet' object has no attribute 'device'
2024-11-12 01:35:09,373 - root - ERROR - Traceback (most recent call last):
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 326, in sample
    return sample_common(model, 'enable', seed, tile_width, tile_height, tiling_strategy, steps_total, cfg, sampler_name, scheduler, positive, negative, latent_image, steps_total-steps, steps_total, 'disable', denoise=1.0, preview=True)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 261, in sample_common
    slice_cnet(tile_h, tile_h_len, tile_w, tile_w_len, m, img)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 91, in slice_cnet
    model.cond_hint = hint.to(model.control_model.dtype).to(model.device)
AttributeError: 'ControlNet' object has no attribute 'device'

2024-11-12 01:35:09,374 - root - INFO - Prompt executed in 78.67 seconds
2024-11-12 01:35:31,121 - root - INFO - got prompt
2024-11-12 01:35:31,223 - root - INFO - Requested to load SD1ClipModel
2024-11-12 01:35:31,223 - root - INFO - Loading 1 new model
2024-11-12 01:35:31,448 - root - INFO - loaded completely 0.0 235.84423828125 True
2024-11-12 01:35:31,476 - root - WARNING - Warning: TAESD previews enabled, but could not find models/vae_approx/taesd_decoder
2024-11-12 01:35:31,477 - root - INFO - Requested to load BaseModel
2024-11-12 01:35:31,477 - root - INFO - Loading 1 new model
2024-11-12 01:35:32,218 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-11-12 01:35:45,150 - root - INFO - Requested to load SD1ClipModel
2024-11-12 01:35:45,150 - root - INFO - Loading 1 new model
2024-11-12 01:35:45,297 - root - INFO - loaded completely 0.0 235.84423828125 True
2024-11-12 01:35:45,313 - root - WARNING - Warning: TAESD previews enabled, but could not find models/vae_approx/taesd_decoder
2024-11-12 01:35:45,314 - root - INFO - Requested to load BaseModel
2024-11-12 01:35:45,314 - root - INFO - Loading 1 new model
2024-11-12 01:35:46,174 - root - INFO - loaded completely 0.0 1639.406135559082 True
2024-11-12 01:36:23,053 - root - WARNING - Warning: TAESD previews enabled, but could not find models/vae_approx/taesd_decoder
2024-11-12 01:36:23,057 - root - ERROR - !!! Exception during processing !!! 'ControlNet' object has no attribute 'device'
2024-11-12 01:36:23,058 - root - ERROR - Traceback (most recent call last):
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 326, in sample
    return sample_common(model, 'enable', seed, tile_width, tile_height, tiling_strategy, steps_total, cfg, sampler_name, scheduler, positive, negative, latent_image, steps_total-steps, steps_total, 'disable', denoise=1.0, preview=True)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 261, in sample_common
    slice_cnet(tile_h, tile_h_len, tile_w, tile_w_len, m, img)
  File "D:\Stable Diffusion\ComfyUI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler\nodes.py", line 91, in slice_cnet
    model.cond_hint = hint.to(model.control_model.dtype).to(model.device)
AttributeError: 'ControlNet' object has no attribute 'device'

2024-11-12 01:36:23,059 - root - INFO - Prompt executed in 51.90 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

Workflow too large. Please manually upload the workflow from local file system.

Additional Context

(Please add any additional context or steps to reproduce the error here)

@alex-mitov
Copy link

I have the same problem. :(

@alex-mitov
Copy link

alex-mitov commented Nov 14, 2024

I found that the problem only appears to be happening with the newer versions of ComfyUI. I tried with version 2492 [ 458cd9 ] (2024-08-07) and the TiledKsampler node works fine with it. It appears that something in the new ComfyUI broke compatibility with the node?

@wocaozhuaige
Copy link
Author

I found that the problem only appears to be happening with the newer versions of ComfyUI. I tried with version 2492 [ 458cd9 ] (2024-08-07) and the TiledKsampler node works fine with it. It appears that something in the new ComfyUI broke compatibility with the node?

You're right. I took your advice and changed the version to August 7th, 2024. The workflow did run and there were no more errors reported

@Eugeoter
Copy link

For those who want to use the newest comfyui, just change the 91-th line of /custom_nodes/ComfyUI_TiledKSampler/nodes.py, from

model.cond_hint = hint.to(model.control_model.dtype).to(model.device)

to

model.cond_hint = hint.to(model.control_model.dtype).to(model.control_model.device)

Then it should work.

@alex-mitov
Copy link

Whoa, that worked! Thanks!!!

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

3 participants