Open xiao-ning-ning opened 2 months ago
Error occurred when executing Joy_caption:
User specified an unsupported autocast device_type 'cuda:0'
You can fix it by modifying the Joy_caption_node.py file. Specifically, change the line:
with torch.amp.autocast_mode.autocast(str(DEVICE), enabled=True):
to
with torch.amp.autocast_mode.autocast(device_type=DEVICE.type, enabled=True):
This change ensures that autocast receives the correct device type ('cuda' or 'cpu') instead of the specific device name ('cuda:0').
You can fix it by modifying the Joy_caption_node.py file. Specifically, change the line:
with torch.amp.autocast_mode.autocast(str(DEVICE), enabled=True):
to
with torch.amp.autocast_mode.autocast(device_type=DEVICE.type, enabled=True):
This change ensures that autocast receives the correct device type ('cuda' or 'cpu') instead of the specific device name ('cuda:0').
It still reports the same error.
You can fix it by modifying the Joy_caption_node.py file. Specifically, change the line:
with torch.amp.autocast_mode.autocast(str(DEVICE), enabled=True):
to
with torch.amp.autocast_mode.autocast(device_type=DEVICE.type, enabled=True):
This change ensures that autocast receives the correct device type ('cuda' or 'cpu') instead of the specific device name ('cuda:0').
2024-09-12 14:19:03,783- root:2012- WARNING- Traceback (most recent call last):
File "/root/ComfyUI/nodes.py", line 1993, in load_custom_node
module_spec.loader.exec_module(module)
File "
You can fix it by modifying the Joy_caption_node.py file. Specifically, change the line:
with torch.amp.autocast_mode.autocast(str(DEVICE), enabled=True):
towith torch.amp.autocast_mode.autocast(device_type=DEVICE.type, enabled=True):
This change ensures that autocast receives the correct device type ('cuda' or 'cpu') instead of the specific device name ('cuda:0').2024-09-12 14:19:03,783- root:2012- WARNING- Traceback (most recent call last): File "/root/ComfyUI/nodes.py", line 1993, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "/root/ComfyUI/custom_nodes/Comfyui_CXH_joy_caption/init.py", line 2, in from .Joy_caption_node import Joy_caption_load File "/root/ComfyUI/custom_nodes/Comfyui_CXH_joy_caption/Joy_caption_node.py", line 163 with torch.amp.autocast_mode.autocast(device_type=DEVICE.type, enabled=True): IndentationError: unexpected indent
It looks like this might be a syntax error caused by incorrect indentation in the code. You may want to check if there’s a missing tab or some spacing issue.
解决了吗 bro 我遇到了一样的问题
同样问题,等待解决
我上面发的 with torch.amp.autocast_mode.autocast(str(DEVICE), enabled=True): 这里改成 with torch.amp.autocast_mode.autocast(device_type=DEVICE.type, enabled=True): 可运行,注意粘贴的时候缩进不要破坏
我也是同样问题,本来还好好的,更新了显卡驱动,重新了插件就报错了
我上面发的 with torch.amp.autocast_mode.autocast(str(DEVICE),enabled=True): 这里改成 with torch.amp.autocast_mode.autocast(device_type=DEVICE.type,enabled=True): 可运行,注意粘贴的时候缩进不要破坏
用了此方法也还是会报错
我上面发的 with torch.amp.autocast_mode.autocast(str(DEVICE),enabled=True): 这里改成 with torch.amp.autocast_mode.autocast(device_type=DEVICE.type,enabled=True): 可运行,注意粘贴的时候缩进不要破坏
用了此方法也还是会报错
改了文件内容后,你要重启comfyui噻。我刚才试了这个方法,是可行的
我上面发的 with torch.amp.autocast_mode.autocast(str(DEVICE),enabled=True): 这里改成 with torch.amp.autocast_mode.autocast(device_type=DEVICE.type,enabled=True): 可运行,注意粘贴的时候缩进不要破坏
用了此方法也还是会报错
我刚刚也试了,修改这行后的确不报错了
Exception Message: User specified an unsupported autocast device_type 'cuda:0'
File "D:\ComfyUI-aki-v1.3\execution.py", line 317, 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:\ComfyUI-aki-v1.3\execution.py", line 192, 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:\ComfyUI-aki-v1.3\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "D:\ComfyUI-aki-v1.3\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_HF_Servelress_Inference\nodes\Joy_Caption.py", line 171, in gen
with torch.amp.autocast_mode.autocast(DEVICE, enabled=True):
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\amp\autocast_mode.py", line 241, in __init__
raise RuntimeError(
## System Information
- **ComfyUI Version:** v0.1.3-22-gd4aeefc
- **Arguments:** D:\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.1+cu121
## Devices
- **Name:** cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
- **Type:** cuda
- **VRAM Total:** 12884246528
- **VRAM Free:** 4251980352
- **Torch VRAM Total:** 7516192768
- **Torch VRAM Free:** 4198976
## Logs
2024-09-14 11:31:49,789 - root - INFO - Total VRAM 12287 MB, total RAM 32537 MB
2024-09-14 11:31:49,789 - root - INFO - pytorch version: 2.3.1+cu121
2024-09-14 11:31:49,790 - root - INFO - Set vram state to: NORMAL_VRAM
2024-09-14 11:31:49,790 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
2024-09-14 11:31:50,457 - root - INFO - Using pytorch cross attention
2024-09-14 11:31:51,002 - root - INFO - [Prompt Server] web root: D:\ComfyUI-aki-v1.3\web
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path checkpoints D:\sd-webui-aki-v4\models/Stable-diffusion
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path configs D:\sd-webui-aki-v4\models/Stable-diffusion
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path vae D:\sd-webui-aki-v4\models/VAE
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path loras D:\sd-webui-aki-v4\models/Lora
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path loras D:\sd-webui-aki-v4\models/LyCORIS
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path upscale_models D:\sd-webui-aki-v4\models/ESRGAN
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path upscale_models D:\sd-webui-aki-v4\models/RealESRGAN
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path upscale_models D:\sd-webui-aki-v4\models/SwinIR
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path embeddings D:\sd-webui-aki-v4\embeddings
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path hypernetworks D:\sd-webui-aki-v4\models/hypernetworks
2024-09-14 11:31:51,003 - root - INFO - Adding extra search path controlnet D:\sd-webui-aki-v4\extensions\sd-webui-controlnet\models
2024-09-14 11:31:58,214 - root - INFO - Total VRAM 12287 MB, total RAM 32537 MB
2024-09-14 11:31:58,214 - root - INFO - pytorch version: 2.3.1+cu121
2024-09-14 11:31:58,215 - root - INFO - Set vram state to: NORMALVRAM
2024-09-14 11:31:58,215 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3060 : cudaMallocAsync
2024-09-14 11:31:59,523 - root - INFO - --------------
2024-09-14 11:31:59,523 - root - INFO - [91m ### Mixlab Nodes: [93mLoaded
2024-09-14 11:31:59,526 - root - INFO - LaMaInpainting.available True
2024-09-14 11:31:59,632 - root - INFO - ClipInterrogator.available True
2024-09-14 11:31:59,869 - root - INFO - PromptGenerate.available True
2024-09-14 11:31:59,869 - root - INFO - ChinesePrompt.available True
2024-09-14 11:31:59,869 - root - INFO - RembgNode.available True
2024-09-14 11:31:59,869 - root - INFO - [93m -------------- [0m
2024-09-14 11:32:00,081 - root - WARNING - Traceback (most recent call last):
File "D:\ComfyUI-aki-v1.3\nodes.py", line 1993, in load_custom_node
module_spec.loader.exec_module(module)
File "
2024-09-14 11:32:00,081 - root - WARNING - Cannot import D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Portrait-Maker module for custom nodes: [Errno 2] No such file or directory: 'D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Portrait-Maker\init.py'
2024-09-14 11:32:16,748 - root - WARNING - Traceback (most recent call last):
File "D:\ComfyUI-aki-v1.3\nodes.py", line 1993, in load_custom_node
module_spec.loader.exec_module(module)
File "
2024-09-14 11:32:16,748 - root - WARNING - Cannot import D:\ComfyUI-aki-v1.3\custom_nodes\LCM_Inpaint-Outpaint_Comfy module for custom nodes: No module named 'diffusers.models.unet_2d_blocks' 2024-09-14 11:32:20,549 - root - INFO - Import times for custom nodes: 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\adjust_pattern_density.py.py 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\canvas_tab 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\rembg-comfyui-node 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\AIGODLIKE-ComfyUI-Translation-main 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\image-resize-comfyui 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\websocket_image_save.py 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_IPAdapter_plus 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\tiled_ksampler 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\efficiency-nodes-comfyui 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_3dPoseEditor 2024-09-14 11:32:20,549 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-BRIA_AI-RMBG 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUi_NNLatentUpscale 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ControlNet-LLLite-ComfyUI 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-seamless-tiling 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\stability-ComfyUI-nodes 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\FreeU_Advanced 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\sd-dynamic-thresholding 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Inpaint-CropAndStitch 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\cg-use-everywhere 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_ADV_CLIP_emb 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\sdxl_prompt_styler 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Eagle-PNGInfo 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_HF_Servelress_Inference 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_yanc 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyLiterals 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\masquerade-nodes-comfyui 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_experiments 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Adaptive-Guidance 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\cg-image-picker 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-WD14-Tagger 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-post-processing-nodes 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\comfyui_controlnet_aux 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_essentials 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\AuraSR-ComfyUI 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\wlsh_nodes 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_TiledKSampler 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\PowerNoiseSuite 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\Comfyui-StableSR 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\images-grid-comfy-plugin 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\comfyui-inpaint-nodes 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Kolors-MZ 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_ColorMod 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\Comfyui_CXH_joy_caption 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\comfyui-various 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\DZ-FaceDetailer 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\virtuoso-nodes 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Custom-Scripts 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\hd_node 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Impact-Pack 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\comfy-image-saver 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_UltimateSDUpscale 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\Derfuu_ComfyUI_ModdedNodes 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Florence2 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-segment-anything-2 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Advanced-ControlNet 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\rgthree-comfy 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\x-flux-comfyui 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-GGUF 2024-09-14 11:32:20,550 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-AnimateDiff-Evolved 2024-09-14 11:32:20,551 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-KJNodes 2024-09-14 11:32:20,551 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Comfyroll_CustomNodes 2024-09-14 11:32:20,551 - root - INFO - 0.0 seconds (IMPORT FAILED): D:\ComfyUI-aki-v1.3\custom_nodes\LCM_Inpaint-Outpaint_Comfy 2024-09-14 11:32:20,551 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\comfyui-workspace-manager 2024-09-14 11:32:20,551 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-KwaiKolorsWrapper 2024-09-14 11:32:20,551 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\Comfyui_ALY 2024-09-14 11:32:20,551 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Inspire-Pack 2024-09-14 11:32:20,551 - root - INFO - 0.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\eden_comfy_pipelines 2024-09-14 11:32:20,551 - root - INFO - 0.1 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Easy-Use 2024-09-14 11:32:20,551 - root - INFO - 0.1 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\comfy_mtb 2024-09-14 11:32:20,551 - root - INFO - 0.1 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\center_tile_on_mask.py.py 2024-09-14 11:32:20,551 - root - INFO - 0.1 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-BiRefNet-ZHO 2024-09-14 11:32:20,551 - root - INFO - 0.1 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyWarp 2024-09-14 11:32:20,551 - root - INFO - 0.1 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Gemini 2024-09-14 11:32:20,551 - root - INFO - 0.2 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_FizzNodes 2024-09-14 11:32:20,551 - root - INFO - 0.2 seconds (IMPORT FAILED): D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Portrait-Maker 2024-09-14 11:32:20,551 - root - INFO - 0.2 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_LayerStyle 2024-09-14 11:32:20,551 - root - INFO - 0.2 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Anyline 2024-09-14 11:32:20,551 - root - INFO - 0.3 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-BrushNet 2024-09-14 11:32:20,551 - root - INFO - 0.3 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Manager 2024-09-14 11:32:20,551 - root - INFO - 0.7 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-SUPIR 2024-09-14 11:32:20,551 - root - INFO - 0.7 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\comfyui-art-venture 2024-09-14 11:32:20,551 - root - INFO - 1.0 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-YoloWorld-EfficientSAM 2024-09-14 11:32:20,551 - root - INFO - 1.3 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\comfyui-mixlab-nodes 2024-09-14 11:32:20,551 - root - INFO - 3.4 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\comfyui_segment_anything 2024-09-14 11:32:20,551 - root - INFO - 3.8 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\was-node-suite-comfyui 2024-09-14 11:32:20,551 - root - INFO - 5.2 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-Crystools 2024-09-14 11:32:20,551 - root - INFO - 10.7 seconds: D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Custom_Nodes_AlekPet 2024-09-14 11:32:20,551 - root - INFO - 2024-09-14 11:32:20,564 - root - INFO -
2024-09-14 11:32:20,564 - root - INFO -
Starting server
2024-09-14 11:32:20,564 - root - INFO - [93mTo see the GUI go to: http://127.0.0.1:8188
2024-09-14 11:32:20,564 - root - INFO - [93mTo see the GUI go to: https://127.0.0.1:8189[0m
2024-09-14 11:32:27,758 - root - INFO - got prompt
2024-09-14 11:32:28,694 - root - INFO - got prompt
2024-09-14 11:32:29,293 - accelerate.utils.modeling - INFO - We will use 90% of the memory on device 0 for storing the model, and 10% for the buffer to avoid OOM. You can set max_memory
in to a higher value to use more memory (at your own risk).
2024-09-14 11:32:33,089 - root - ERROR - !!! Exception during processing !!! User specified an unsupported autocast device_type 'cuda:0'
2024-09-14 11:32:33,091 - root - ERROR - Traceback (most recent call last):
File "D:\ComfyUI-aki-v1.3\execution.py", line 317, 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:\ComfyUI-aki-v1.3\execution.py", line 192, 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:\ComfyUI-aki-v1.3\execution.py", line 169, in _map_node_over_list
process_inputs(input_dict, i)
File "D:\ComfyUI-aki-v1.3\execution.py", line 158, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_HF_Servelress_Inference\nodes\Joy_Caption.py", line 171, in gen
with torch.amp.autocast_mode.autocast(DEVICE, enabled=True):
File "D:\ComfyUI-aki-v1.3\python\lib\site-packages\torch\amp\autocast_mode.py", line 241, in init
raise RuntimeError(
RuntimeError: User specified an unsupported autocast device_type 'cuda:0'
2024-09-14 11:32:33,091 - root - INFO - Prompt executed in 5.26 seconds
## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.
{"last_node_id":6,"last_link_id":4,"nodes":[{"id":2,"type":"Joy_caption","pos":{"0":817,"1":494,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":400,"1":200},"flags":{},"order":2,"mode":0,"inputs":[{"name":"joy_pipeline","type":"JoyPipeline","link":4,"label":"joy_pipeline"},{"name":"image","type":"IMAGE","link":2,"slot_index":1,"label":"image"}],"outputs":[{"name":"STRING","type":"STRING","links":[3],"slot_index":0,"shape":3,"label":"STRING"}],"properties":{"Node name for S&R":"Joy_caption"},"widgets_values":["A descriptive caption for this image",300,0.5,false]},{"id":3,"type":"LoadImage","pos":{"0":179,"1":559,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":570.2863159179688,"1":474.0776062011719},"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[2],"shape":3,"label":"图像"},{"name":"MASK","type":"MASK","links":null,"shape":3,"label":"遮罩"}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["rgthree.compare._temp_kqmtu00056.png","image"]},{"id":4,"type":"easy showAnything","pos":{"0":1265,"1":503,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":356.4357604980469,"1":250.48460388183594},"flags":{},"order":3,"mode":0,"inputs":[{"name":"anything","type":"","link":3,"label":"输入任何"}],"outputs":[],"properties":{"Node name for S&R":"easy showAnything"},"widgets_values":[", likely a photograph, featuring a young woman dressed in a provocative, anime-inspired school uniform. The subject, likely a cosplayer, is positioned centrally in the frame, with her face not visible, focusing on her attire. She wears a white, long-sleeved blouse with a high collar, buttoned up to the neck, accentuating her slender physique. The blouse is fitted, emphasizing her small breasts and slim waist, and is paired with a navy blue plaid skirt that is pleated and short, revealing her upper thighs. A large, dark blue plaid bowtie is tied at the neck, adding a touch of traditional school uniform style. The blouse is adorned with a small nametag on the upper right chest, bearing a printed black and white image of a young girl. The background is a plain, neutral beige wall, providing a stark contrast to the vibrant and detailed uniform. Her nails are manicured with a glossy, light-colored polish, and her long, dark hair cascades over her shoulders, partially visible at the sides. The overall style and composition suggest a playful, cosplay-inspired aesthetic."]},{"id":5,"type":"Joy_caption_load","pos":{"0":414,"1":439,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"size":{"0":315,"1":58},"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"JoyPipeline","type":"JoyPipeline","links":[4],"slot_index":0,"shape":3,"label":"JoyPipeline"}],"properties":{"Node name for S&R":"Joy_caption_load"},"widgets_values":["unsloth/Meta-Llama-3.1-8B-bnb-4bit"]}],"links":[[2,3,0,2,1,"IMAGE"],[3,2,0,4,0,""],[4,5,0,2,0,"JoyPipeline"]],"groups":[],"config":{},"extra":{"ds":{"scale":1.7088742511245865,"offset":[-157.72391941479313,-606.9138680814222]}},"version":0.4}
## Additional Context
(Please add any additional context or steps to reproduce the error here)
还是不行要炸了
回退到上一个版本会恢复正常
still have same issue.i tested all what mentioned earlier.can anyone describe in details what we need to do to fix the issue? i have cuda toolkit 12.6
会恢复正常
do i need to git reset --hard "which hash" ?
i don't know which hash do i need to return to that this error does not exist
退回到上一个版本会恢复正常
试过了也不行
同样的问题,期待解决~
步骤 1:找到 Joy_Caption.py 文件 打开文件资源管理器:
点击您的电脑桌面上的“此电脑”或“文件资源管理器”。 导航到指定文件夹:
进入 D: 盘。
找到并打开文件夹 ComfyUI-aki-v1.3。
依次打开以下文件夹:
rust 复制代码 custom_nodes -> ComfyUI_HF_Servelress_Inference -> nodes 完整路径是:
makefile 复制代码 D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_HF_Servelress_Inference\nodes\ 找到 Joy_Caption.py 文件:
在这个文件夹中,您会看到一个名为 Joy_Caption.py 的文件。 步骤 2:备份 Joy_Caption.py 文件 为了防止误操作,我们先备份一下原始文件。
复制文件:
右键点击 Joy_Caption.py 文件,选择“复制”。 粘贴备份:
在同一文件夹的空白处右键点击,选择“粘贴”。 这会创建一个名为 Joy_Caption - 副本.py 的备份文件。 步骤 3:编辑 Joy_Caption.py 文件 打开文件:
右键点击 Joy_Caption.py 文件,选择“打开方式”。 从列表中选择“记事本”或其他您喜欢的文本编辑器(例如 Notepad++)。 查找需要修改的行:
在打开的文件中,按下 Ctrl + F,会出现“查找”窗口。
在搜索框中输入以下内容:
python 复制代码 with torch.amp.autocast_mode.autocast(DEVICE, enabled=True): 点击“查找下一个”,定位到这行代码。
修改代码:
将这行代码修改为:
python 复制代码 with torch.amp.autocast_mode.autocast(device_type='cuda', enabled=True): 注意:
只需将括号内的 DEVICE 改为 device_type='cuda'。 不要修改其他内容。 保存文件:
点击“文件”菜单,选择“保存”。 关闭编辑器。 步骤 4:重启 ComfyUI 关闭 ComfyUI:
如果 ComfyUI 程序正在运行,请先关闭它。 重新启动 ComfyUI:
双击启动 ComfyUI 的程序,重新打开它。
步骤 1:找到 Joy_Caption.py 文件 打开文件资源管理器:
点击您的电脑桌面上的“此电脑”或“文件资源管理器”。 导航到指定文件夹:
进入 D: 盘。
找到并打开文件夹 ComfyUI-aki-v1.3。
依次打开以下文件夹:
rust 复制代码 custom_nodes -> ComfyUI_HF_Servelress_Inference -> nodes 完整路径是:
makefile 复制代码 D:\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_HF_Servelress_Inference\nodes 找到 Joy_Caption.py 文件:
在这个文件夹中,您会看到一个名为 Joy_Caption.py 的文件。 步骤 2:备份 Joy_Caption.py 文件 为了防止误操作,我们先备份一下原始文件。
复制文件:
右键点击 Joy_Caption.py 文件,选择“复制”。 粘贴备份:
在同一文件夹的空白处右键点击,选择“粘贴”。 这会创建一个名为 Joy_Caption - 副本.py 的备份文件。 步骤 3:编辑 Joy_Caption.py 文件 打开文件:
右键点击 Joy_Caption.py 文件,选择“打开方式”。 从列表中选择“记事本”或其他您喜欢的文本编辑器(例如 Notepad++)。 查找需要修改的行:
在打开的文件中,按下 Ctrl + F,会出现“查找”窗口。
在搜索框中输入以下内容:
python 复制代码 with torch.amp.autocast_mode.autocast(DEVICE, enabled=True): 点击“查找下一个”,定位到这行代码。
修改代码:
将这行代码修改为:
python 复制代码 with torch.amp.autocast_mode.autocast(device_type='cuda', enabled=True):注意:
只需将括号内的 DEVICE 改为 device_type='cuda'。 不要修改其他内容。 保存文件:
点击“文件”菜单,选择“保存”。 关闭编辑器。 步骤 4:重启 ComfyUI 关闭 ComfyUI:
如果 ComfyUI 程序正在运行,请先关闭它。 重新启动 ComfyUI:
双击启动 ComfyUI 的程序,重新打开它。
试了一下,重启confyUI后节点却不能用了
I was having the same problem and what fixed for me was removing the custom nodes - ComfyUI_HF_Servelress_Inference. After removing it and restarting it fixed.
with torch.amp.autocast_mode.autocast(device_type='cuda',enabled=True):
這是可行的,原本也是不能跑,測試後 可以使用了 謝謝~ THX!!
ComfyUI Error Report
Error Details
Exception Message: User specified an unsupported autocast device_type 'cuda:0'
Stack Trace
2024-09-12 10:38:47,023 - root - INFO - Total VRAM 24564 MB, total RAM 130842 MB 2024-09-12 10:38:47,023 - root - INFO - pytorch version: 2.3.0+cu121 2024-09-12 10:38:48,614 - root - INFO - xformers version: 0.0.26.post1 2024-09-12 10:38:48,614 - root - INFO - Set vram state to: NORMAL_VRAM 2024-09-12 10:38:48,614 - root - INFO - Disabling smart memory management 2024-09-12 10:38:48,616 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync 2024-09-12 10:38:48,802 - root - INFO - Using xformers cross attention 2024-09-12 10:38:49,448 - root - INFO - [Prompt Server] web root: C:\AI\ComfyUI-aki-9.11\web 2024-09-12 10:38:54,908 - root - INFO - Total VRAM 24564 MB, total RAM 130842 MB 2024-09-12 10:38:54,908 - root - INFO - pytorch version: 2.3.0+cu121 2024-09-12 10:38:54,908 - root - INFO - xformers version: 0.0.26.post1 2024-09-12 10:38:54,908 - root - INFO - Set vram state to: NORMAL_VRAM 2024-09-12 10:38:54,908 - root - INFO - Disabling smart memory management 2024-09-12 10:38:54,908 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync 2024-09-12 10:39:06,222 - root - INFO - Import times for custom nodes: 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\AIGODLIKE-COMFYUI-TRANSLATION 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\websocket_image_save.py 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\comfyui-upscale-by-model 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI_densediffusion 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI-WD14-Tagger 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI-eesahesNodes 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI_IPAdapter_plus 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI-Custom-Scripts 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI-GGUF 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\Comfyui_CXH_joy_caption 2024-09-12 10:39:06,222 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI-Advanced-ControlNet 2024-09-12 10:39:06,223 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\rgthree-comfy 2024-09-12 10:39:06,223 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI_essentials 2024-09-12 10:39:06,223 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI-Inspire-Pack 2024-09-12 10:39:06,223 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\comfyui_controlnet_aux 2024-09-12 10:39:06,223 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI_MiniCPM-V-2_6-int4 2024-09-12 10:39:06,223 - root - INFO - 0.0 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI_smZNodes 2024-09-12 10:39:06,223 - root - INFO - 0.1 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\Fooocus_Nodes 2024-09-12 10:39:06,223 - root - INFO - 0.3 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI_omost 2024-09-12 10:39:06,223 - root - INFO - 0.4 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI-Manager 2024-09-12 10:39:06,223 - root - INFO - 0.4 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\comfyui-reactor-node 2024-09-12 10:39:06,223 - root - INFO - 0.7 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI-KJNodes 2024-09-12 10:39:06,223 - root - INFO - 0.9 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI_LayerStyle 2024-09-12 10:39:06,223 - root - INFO - 1.5 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI-Easy-Use 2024-09-12 10:39:06,223 - root - INFO - 2.4 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI-Impact-Pack 2024-09-12 10:39:06,223 - root - INFO - 3.6 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\ComfyUI_Custom_Nodes_AlekPet 2024-09-12 10:39:06,223 - root - INFO - 5.3 seconds: C:\AI\ComfyUI-aki-9.11\custom_nodes\was-node-suite-comfyui 2024-09-12 10:39:06,223 - root - INFO - 2024-09-12 10:39:06,236 - root - INFO - Starting server
2024-09-12 10:39:06,236 - root - INFO - To see the GUI go to: http://127.0.0.1:8188 2024-09-12 10:39:23,978 - root - INFO - got prompt 2024-09-12 10:39:26,056 - accelerate.utils.modeling - INFO - We will use 90% of the memory on device 0 for storing the model, and 10% for the buffer to avoid OOM. You can set
max_memory
in to a higher value to use more memory (at your own risk). 2024-09-12 10:39:29,274 - root - ERROR - !!! Exception during processing !!! User specified an unsupported autocast device_type 'cuda:0' 2024-09-12 10:39:29,275 - root - ERROR - Traceback (most recent call last): File "C:\AI\ComfyUI-aki-9.11\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 "C:\AI\ComfyUI-aki-9.11\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 "C:\AI\ComfyUI-aki-9.11\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "C:\AI\ComfyUI-aki-9.11\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "C:\AI\ComfyUI-aki-9.11\custom_nodes\Comfyui_CXH_joy_caption\Joy_caption_node.py", line 181, in gen with torch.amp.autocast_mode.autocast(str(DEVICE), enabled=True): File "C:\AI\ComfyUI-aki-9.11\python\lib\site-packages\torch\amp\autocast_mode.py", line 241, in init raise RuntimeError( RuntimeError: User specified an unsupported autocast device_type 'cuda:0'2024-09-12 10:39:29,276 - root - INFO - Prompt executed in 5.30 seconds
{"last_node_id":6,"last_link_id":3,"nodes":[{"id":4,"type":"LoadImage","pos":{"0":-280,"1":810},"size":[320,310],"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[2],"shape":3,"label":"图像"},{"name":"MASK","type":"MASK","links":null,"shape":3,"label":"遮罩"}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["example.png","image"]},{"id":5,"type":"ShowText|pysssss","pos":{"0":612.8331909179688,"1":897.7203369140625},"size":{"0":320,"1":60},"flags":{},"order":3,"mode":0,"inputs":[{"name":"text","type":"STRING","link":3,"widget":{"name":"text"},"label":"文本"}],"outputs":[{"name":"STRING","type":"STRING","links":null,"shape":6,"label":"字符串"}],"properties":{"Node name for S&R":"ShowText|pysssss"},"widgets_values":[""]},{"id":3,"type":"Joy_caption","pos":{"0":160,"1":880},"size":{"0":400,"1":200},"flags":{},"order":2,"mode":0,"inputs":[{"name":"joy_pipeline","type":"JoyPipeline","link":1,"label":"JoyCaption"},{"name":"image","type":"IMAGE","link":2,"label":"图像"}],"outputs":[{"name":"STRING","type":"STRING","links":[3],"slot_index":0,"shape":3,"label":"字符串"}],"properties":{"Node name for S&R":"Joy_caption"},"widgets_values":["Please write a poem based on the image",1024,0.7,false]},{"id":2,"type":"Joy_caption_load","pos":{"0":-40,"1":640},"size":{"0":315,"1":58},"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"JoyPipeline","type":"JoyPipeline","links":[1],"slot_index":0,"shape":3,"label":"JoyCaption"}],"properties":{"Node name for S&R":"Joy_caption_load"},"widgets_values":["unsloth/Meta-Llama-3.1-8B-bnb-4bit"]}],"links":[[1,2,0,3,0,"JoyPipeline"],[2,4,0,3,1,"IMAGE"],[3,3,0,5,0,"STRING"]],"groups":[],"config":{},"extra":{"ds":{"scale":1.7449402268886451,"offset":[86.63938504981071,-499.54213280056155]}},"version":0.4}