EvilBT / ComfyUI_SLK_joy_caption_two

ComfyUI Node
GNU General Public License v3.0
131 stars 4 forks source link

JoyCaptionTwo probability tensor contains either `inf`, `nan` or element < 0 #51

Open sanconping opened 2 days ago

sanconping commented 2 days ago

所有模型从对应网址下载,检查多次 Quicker_20241029_120516

ComfyUI Error Report

Error Details

## System Information
- **ComfyUI Version:** v0.2.4-11-g9ee0a655
- **Arguments:** E:\ComfyUI\main.py --auto-launch --preview-method auto --highvram --disable-cuda-malloc
- **OS:** nt
- **Python Version:** 3.11.6 | packaged by conda-forge | (main, Oct  3 2023, 10:29:11) [MSC v.1935 64 bit (AMD64)]
- **Embedded Python:** false
- **PyTorch Version:** 2.1.2+cu121
## Devices

- **Name:** cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync
  - **Type:** cuda
  - **VRAM Total:** 25756696576
  - **VRAM Free:** 9402330496
  - **Torch VRAM Total:** 15334375424
  - **Torch VRAM Free:** 720121216

## Logs

2024-10-29 11:50:59,017 - root - INFO - Total VRAM 24564 MB, total RAM 32581 MB 2024-10-29 11:50:59,017 - root - INFO - pytorch version: 2.1.2+cu121 2024-10-29 11:50:59,202 - root - INFO - xformers version: 0.0.23.post1 2024-10-29 11:50:59,203 - root - INFO - Set vram state to: HIGH_VRAM 2024-10-29 11:50:59,203 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync 2024-10-29 11:50:59,865 - root - INFO - Using xformers cross attention 2024-10-29 11:51:00,201 - root - INFO - [Prompt Server] web root: E:\ComfyUI\web 2024-10-29 11:51:00,202 - root - INFO - Adding extra search path checkpoints F:\sd-webui-aki\sd-webui-aki-v4.5\models/Stable-diffusion 2024-10-29 11:51:00,202 - root - INFO - Adding extra search path clip F:\sd-webui-aki\sd-webui-aki-v4.5\models/clip/ 2024-10-29 11:51:00,202 - root - INFO - Adding extra search path unet F:\sd-webui-aki\sd-webui-aki-v4.5\models/unet/ 2024-10-29 11:51:00,203 - root - INFO - Adding extra search path configs F:\sd-webui-aki\sd-webui-aki-v4.5\models/Stable-diffusion 2024-10-29 11:51:00,203 - root - INFO - Adding extra search path vae F:\sd-webui-aki\sd-webui-aki-v4.5\models/VAE 2024-10-29 11:51:00,203 - root - INFO - Adding extra search path loras F:\sd-webui-aki\sd-webui-aki-v4.5\models/Lora 2024-10-29 11:51:00,203 - root - INFO - Adding extra search path loras F:\sd-webui-aki\sd-webui-aki-v4.5\models/LyCORIS 2024-10-29 11:51:00,203 - root - INFO - Adding extra search path upscale_models F:\sd-webui-aki\sd-webui-aki-v4.5\models/ESRGAN 2024-10-29 11:51:00,203 - root - INFO - Adding extra search path upscale_models F:\sd-webui-aki\sd-webui-aki-v4.5\models/RealESRGAN 2024-10-29 11:51:00,203 - root - INFO - Adding extra search path upscale_models F:\sd-webui-aki\sd-webui-aki-v4.5\models/SwinIR 2024-10-29 11:51:00,203 - root - INFO - Adding extra search path embeddings F:\sd-webui-aki\sd-webui-aki-v4.5\embeddings 2024-10-29 11:51:00,203 - root - INFO - Adding extra search path hypernetworks F:\sd-webui-aki\sd-webui-aki-v4.5\models/hypernetworks 2024-10-29 11:51:00,203 - root - INFO - Adding extra search path controlnet F:\sd-webui-aki\sd-webui-aki-v4.5\extensions/sd-webui-controlnet/models 2024-10-29 11:51:01,094 - root - WARNING - Traceback (most recent call last): File "E:\ComfyUI\nodes.py", line 2006, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "E:\ComfyUI\custom_nodes\ComfyUI-ArtGallery__init.py", line 56, in modify_js_file(uploadimg_js_file_path, new_js_content) File "E:\ComfyUI\custom_nodes\ComfyUI-ArtGallery\init__.py", line 5, in modify_js_file with open(file_path, 'r') as file: ^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'E:\ComfyUI\custom_nodes\ComfyUI-ArtGallery\../../web/extensions/core/uploadImage.js'

2024-10-29 11:51:01,094 - root - WARNING - Cannot import E:\ComfyUI\custom_nodes\ComfyUI-ArtGallery module for custom nodes: [Errno 2] No such file or directory: 'E:\ComfyUI\custom_nodes\ComfyUI-ArtGallery\../../web/extensions/core/uploadImage.js' 2024-10-29 11:51:08,735 - numexpr.utils - INFO - Note: NumExpr detected 20 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. 2024-10-29 11:51:08,735 - numexpr.utils - INFO - NumExpr defaulting to 8 threads. 2024-10-29 11:51:12,298 - root - INFO - -------------- 2024-10-29 11:51:12,298 - root - INFO -  ### Mixlab Nodes: Loaded 2024-10-29 11:51:12,298 - root - INFO - ChatGPT.available True 2024-10-29 11:51:12,299 - root - INFO - editmask.available True 2024-10-29 11:51:12,574 - root - INFO - ClipInterrogator.available True 2024-10-29 11:51:12,681 - root - INFO - PromptGenerate.available True 2024-10-29 11:51:12,681 - root - INFO - ChinesePrompt.available True 2024-10-29 11:51:12,681 - root - INFO - RembgNode.available True 2024-10-29 11:51:13,230 - root - INFO - TripoSR.available 2024-10-29 11:51:13,231 - root - INFO - MiniCPMNode.available 2024-10-29 11:51:13,261 - root - INFO - Scenedetect.available 2024-10-29 11:51:13,264 - root - INFO - FishSpeech.available False 2024-10-29 11:51:13,264 - root - INFO -  --------------  2024-10-29 11:51:13,396 - root - INFO - Total VRAM 24564 MB, total RAM 32581 MB 2024-10-29 11:51:13,396 - root - INFO - pytorch version: 2.1.2+cu121 2024-10-29 11:51:13,396 - root - INFO - xformers version: 0.0.23.post1 2024-10-29 11:51:13,396 - root - INFO - Set vram state to: HIGH_VRAM 2024-10-29 11:51:13,396 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync 2024-10-29 11:51:13,544 - root - WARNING - Traceback (most recent call last): File "E:\ComfyUI\nodes.py", line 2006, in load_custom_node module_spec.loader.exec_module(module) File "", line 936, in exec_module File "", line 1073, in get_code File "", line 1130, in get_data FileNotFoundError: [Errno 2] No such file or directory: 'E:\ComfyUI\custom_nodes\ComfyUI_ADV_CLIP_emb\init.py'

2024-10-29 11:51:13,544 - root - WARNING - Cannot import E:\ComfyUI\custom_nodes\ComfyUI_ADV_CLIP_emb module for custom nodes: [Errno 2] No such file or directory: 'E:\ComfyUI\custom_nodes\ComfyUI_ADV_CLIP_emb\init.py' 2024-10-29 11:51:13,698 - root - WARNING - Traceback (most recent call last): File "E:\ComfyUI\nodes.py", line 2006, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "E:\ComfyUI\custom_nodes\efficiency-nodes-comfyui__init__.py", line 1, in from .efficiency_nodes import NODE_CLASS_MAPPINGS File "E:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\efficiency_nodes.py", line 46, in from .py import smZ_cfg_denoiser File "E:\ComfyUI\custom_nodes\efficiency-nodes-comfyui\py\smZ_cfg_denoiser.py", line 7, in from comfy.samplers import KSampler, CompVisVDenoiser, KSamplerX0Inpaint ImportError: cannot import name 'CompVisVDenoiser' from 'comfy.samplers' (E:\ComfyUI\comfy\samplers.py)

2024-10-29 11:51:13,698 - root - WARNING - Cannot import E:\ComfyUI\custom_nodes\efficiency-nodes-comfyui module for custom nodes: cannot import name 'CompVisVDenoiser' from 'comfy.samplers' (E:\ComfyUI\comfy\samplers.py) 2024-10-29 11:51:18,346 - root - INFO - Import times for custom nodes: 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\comfyui-portrait-master-zh-cn 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\AIGODLIKE-ComfyUI-Translation 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\websocket_image_save.py 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\cg-use-everywhere 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI_TiledKSampler 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus-main 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI_SLK_joy_caption_two 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\masquerade-nodes-comfyui 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI_IPAdapter_plus 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\comfyui-inpaint-nodes 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\comfyui-portrait-master 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds (IMPORT FAILED): E:\ComfyUI\custom_nodes\ComfyUI_ADV_CLIP_emb 2024-10-29 11:51:18,346 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI-Custom-Scripts 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\comfyui-animatediff 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI_FizzNodes 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI_essentials 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\comfy-image-saver 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI-utils-nodes 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\Derfuu_ComfyUI_ModdedNodes 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI-Advanced-ControlNet 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation-main 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds (IMPORT FAILED): E:\ComfyUI\custom_nodes\efficiency-nodes-comfyui 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\rgthree-comfy 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\x-flux-comfyui 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\CharacterFaceSwap 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI-AnimateDiff-Evolved 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\comfyui-workspace-manager 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\ComfyUI_Prompt_Translate_to_English-main 2024-10-29 11:51:18,347 - root - INFO - 0.0 seconds: E:\ComfyUI\custom_nodes\comfyui_controlnet_aux 2024-10-29 11:51:18,348 - root - INFO - 0.1 seconds: E:\ComfyUI\custom_nodes\comfyui-tensorops 2024-10-29 11:51:18,348 - root - INFO - 0.1 seconds: E:\ComfyUI\custom_nodes\ComfyUI-Gemini 2024-10-29 11:51:18,348 - root - INFO - 0.1 seconds: E:\ComfyUI\custom_nodes\comfyui-reactor-node 2024-10-29 11:51:18,348 - root - INFO - 0.2 seconds (IMPORT FAILED): E:\ComfyUI\custom_nodes\ComfyUI-ArtGallery 2024-10-29 11:51:18,348 - root - INFO - 0.2 seconds: E:\ComfyUI\custom_nodes\ComfyUI-Florence2 2024-10-29 11:51:18,348 - root - INFO - 0.6 seconds: E:\ComfyUI\custom_nodes\ComfyUI-Manager 2024-10-29 11:51:18,348 - root - INFO - 1.2 seconds: E:\ComfyUI\custom_nodes\ComfyUI-Impact-Pack 2024-10-29 11:51:18,348 - root - INFO - 1.8 seconds: E:\ComfyUI\custom_nodes\comfyui-mixlab-nodes 2024-10-29 11:51:18,348 - root - INFO - 2.6 seconds: E:\ComfyUI\custom_nodes\ComfyUI-Easy-Use 2024-10-29 11:51:18,348 - root - INFO - 4.6 seconds: E:\ComfyUI\custom_nodes\was-node-suite-comfyui 2024-10-29 11:51:18,348 - root - INFO - 5.7 seconds: E:\ComfyUI\custom_nodes\ComfyUI-Crystools 2024-10-29 11:51:18,348 - root - INFO - 2024-10-29 11:51:18,367 - root - INFO - Starting server

2024-10-29 11:51:18,367 - root - INFO - To see the GUI go to: http://127.0.0.1:8188 2024-10-29 11:51:34,224 - root - INFO - got prompt 2024-10-29 11:51:37,412 - root - INFO - Requested to load SiglipVisionTransformer 2024-10-29 11:51:37,412 - root - INFO - Loading 1 new model 2024-10-29 11:51:37,577 - root - INFO - loaded completely 0.0 809.1729736328125 True 2024-10-29 11:51:38,099 - root - INFO - Requested to load ImageAdapter 2024-10-29 11:51:38,099 - root - INFO - Loading 1 new model 2024-10-29 11:51:38,103 - root - INFO - loaded completely 0.0 41.0390625 True 2024-10-29 11:51:45,009 - root - ERROR - !!! Exception during processing !!! probability tensor contains either inf, nan or element < 0 2024-10-29 11:51:45,011 - root - ERROR - Traceback (most recent call last): File "E:\ComfyUI\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 "E:\ComfyUI\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 "E:\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "E:\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(*inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI\custom_nodes\ComfyUI_SLK_joy_caption_two\joy_caption_two_node.py", line 407, in generate generate_ids = text_model.generate(input_ids, inputs_embeds=input_embeds, attention_mask=attention_mask, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI.ext\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI.ext\Lib\site-packages\transformers\generation\utils.py", line 2215, in generate result = self._sample( ^^^^^^^^^^^^^ File "E:\ComfyUI.ext\Lib\site-packages\transformers\generation\utils.py", line 3249, in _sample next_tokens = torch.multinomial(probs, num_samples=1).squeeze(1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: probability tensor contains either inf, nan or element < 0

2024-10-29 11:51:45,012 - root - INFO - Prompt executed in 10.75 seconds 2024-10-29 11:52:00,502 - root - INFO - got prompt 2024-10-29 11:52:02,997 - root - INFO - Requested to load SiglipVisionTransformer 2024-10-29 11:52:02,998 - root - INFO - Loading 1 new model 2024-10-29 11:52:03,122 - root - INFO - loaded completely 0.0 809.1729736328125 True 2024-10-29 11:52:03,153 - root - INFO - Requested to load ImageAdapter 2024-10-29 11:52:03,154 - root - INFO - Loading 1 new model 2024-10-29 11:52:03,161 - root - INFO - loaded completely 0.0 41.0390625 True 2024-10-29 11:52:10,236 - root - ERROR - !!! Exception during processing !!! probability tensor contains either inf, nan or element < 0 2024-10-29 11:52:10,237 - root - ERROR - Traceback (most recent call last): File "E:\ComfyUI\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 "E:\ComfyUI\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 "E:\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "E:\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(*inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI\custom_nodes\ComfyUI_SLK_joy_caption_two\joy_caption_two_node.py", line 407, in generate generate_ids = text_model.generate(input_ids, inputs_embeds=input_embeds, attention_mask=attention_mask, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI.ext\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI.ext\Lib\site-packages\transformers\generation\utils.py", line 2215, in generate result = self._sample( ^^^^^^^^^^^^^ File "E:\ComfyUI.ext\Lib\site-packages\transformers\generation\utils.py", line 3249, in _sample next_tokens = torch.multinomial(probs, num_samples=1).squeeze(1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: probability tensor contains either inf, nan or element < 0

2024-10-29 11:52:10,238 - root - INFO - Prompt executed in 9.69 seconds 2024-10-29 12:02:44,212 - root - INFO - got prompt 2024-10-29 12:02:46,648 - root - INFO - Requested to load SiglipVisionTransformer 2024-10-29 12:02:46,648 - root - INFO - Loading 1 new model 2024-10-29 12:02:46,853 - root - INFO - loaded completely 0.0 809.1729736328125 True 2024-10-29 12:02:46,884 - root - INFO - Requested to load ImageAdapter 2024-10-29 12:02:46,884 - root - INFO - Loading 1 new model 2024-10-29 12:02:46,892 - root - INFO - loaded completely 0.0 41.0390625 True 2024-10-29 12:02:54,490 - root - ERROR - !!! Exception during processing !!! probability tensor contains either inf, nan or element < 0 2024-10-29 12:02:54,491 - root - ERROR - Traceback (most recent call last): File "E:\ComfyUI\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 "E:\ComfyUI\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 "E:\ComfyUI\execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "E:\ComfyUI\execution.py", line 158, in process_inputs results.append(getattr(obj, func)(*inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI\custom_nodes\ComfyUI_SLK_joy_caption_two\joy_caption_two_node.py", line 407, in generate generate_ids = text_model.generate(input_ids, inputs_embeds=input_embeds, attention_mask=attention_mask, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI.ext\Lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI.ext\Lib\site-packages\transformers\generation\utils.py", line 2215, in generate result = self._sample( ^^^^^^^^^^^^^ File "E:\ComfyUI.ext\Lib\site-packages\transformers\generation\utils.py", line 3249, in _sample next_tokens = torch.multinomial(probs, num_samples=1).squeeze(1) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: probability tensor contains either inf, nan or element < 0

2024-10-29 12:02:54,492 - root - INFO - Prompt executed in 10.24 seconds

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

{"last_node_id":5,"last_link_id":4,"nodes":[{"id":3,"type":"LoadImage","pos":{"0":743,"1":728},"size":{"0":315,"1":314},"flags":{},"order":0,"mode":0,"inputs":[],"outputs":[{"name":"IMAGE","type":"IMAGE","links":[2],"label":"图像"},{"name":"MASK","type":"MASK","links":null,"label":"遮罩"}],"properties":{"Node name for S&R":"LoadImage"},"widgets_values":["00000.png","image"]},{"id":1,"type":"Joy_caption_two_load","pos":{"0":741,"1":609},"size":{"0":315,"1":58},"flags":{},"order":1,"mode":0,"inputs":[],"outputs":[{"name":"JoyTwoPipeline","type":"JoyTwoPipeline","links":[1],"slot_index":0,"label":"JoyCaptionTwo"}],"properties":{"Node name for S&R":"Joy_caption_two_load"},"widgets_values":["John6666/Llama-3.1-8B-Lexi-Uncensored-V2-nf4"]},{"id":2,"type":"Joy_caption_two","pos":{"0":1167,"1":576},"size":{"0":315,"1":126},"flags":{},"order":2,"mode":0,"inputs":[{"name":"joy_two_pipeline","type":"JoyTwoPipeline","link":1,"label":"JoyCaptionTwo"},{"name":"image","type":"IMAGE","link":2,"label":"图像"}],"outputs":[{"name":"STRING","type":"STRING","links":[3,4],"slot_index":0,"label":"提示词"}],"properties":{"Node name for S&R":"Joy_caption_two"},"widgets_values":["Descriptive","long",false]},{"id":4,"type":"ShowText|pysssss","pos":{"0":1563,"1":647},"size":{"0":315,"1":58},"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":5,"type":"DisplayText_Zho","pos":{"0":1599,"1":772},"size":[315,76],"flags":{},"order":4,"mode":0,"inputs":[{"name":"text","type":"STRING","link":4,"widget":{"name":"text"}}],"outputs":[{"name":"text","type":"STRING","links":null,"label":"text"}],"properties":{"Node name for S&R":"DisplayText_Zho"},"widgets_values":["",""]}],"links":[[1,1,0,2,0,"JoyTwoPipeline"],[2,3,0,2,1,"IMAGE"],[3,2,0,4,0,"STRING"],[4,2,0,5,0,"STRING"]],"groups":[],"config":{},"extra":{"ds":{"scale":1.2839025177495011,"offset":[-343.6329467995634,-155.0960049057253]}},"version":0.4}



## Additional Context
(Please add any additional context or steps to reproduce the error here)
EvilBT commented 2 days ago

贴一下你的依赖包的版本:pip list,看看是不是版本过低了

wang765308610 commented 2 days ago

贴一下你的依赖包的版本:pip list,看看是不是版本过低了

大佬,我也这个问题,请问这个要如何查看?

EvilBT commented 2 days ago

在你们的运行环境下,我不知道你们是不是一键安装包那种,就是激活你们的python运行环境后,输入

pip list

就会打印一堆安装的版本信息,主要是看我项目要求的那几个版本信息达标了没,大于或等于才能正常运行模型

wang765308610 commented 1 day ago

在你们的运行环境下,我不知道你们是不是一键安装包那种,就是激活你们的python运行环境后,输入

pip list

就会打印一堆安装的版本信息,主要是看我项目要求的那几个版本信息达标了没,大于或等于才能正常运行模型

F:\ai\Aki_stable_deffusion\sd-comfyui_aki>pip list Package Version


2to3 1.0 accelerate 1.0.1 bitsandbytes 0.44.1 certifi 2024.8.30 charset-normalizer 3.4.0 colorama 0.4.6 filelock 3.16.1 fsspec 2024.10.0 huggingface-hub 0.23.4 idna 3.10 Jinja2 3.1.4 MarkupSafe 3.0.2 mpmath 1.3.0 networkx 3.4.2 numpy 1.26.4 packaging 24.1 peft 0.13.2 pillow 11.0.0 pip 24.3.1 psutil 6.1.0 PyYAML 6.0.2 regex 2024.9.11 requests 2.32.3 safetensors 0.4.5 sentencepiece 0.2.0 setuptools 75.2.0 sympy 1.13.1 tokenizers 0.20.1 torch 2.5.0 tqdm 4.66.6 transformers 4.46.0 typing_extensions 4.12.2 urllib3 2.2.3

sanconping commented 1 day ago

贴一下你的依赖包的版本:pip list,看看是不是版本过低了 不好意思回复时间有点长,打印版本如下 E:\ComfyUI>py -m pip --version pip 24.0 from C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)

E:\ComfyUI>py -m pip list Package Version


absl-py 2.0.0 accelerate 0.26.1 addict 2.4.0 albumentations 1.3.1 antlr4-python3-runtime 4.9.3 anyio 4.2.0 async-timeout 4.0.3 attrs 23.2.0 boto3 1.34.86 botocore 1.34.162 cachetools 5.3.2 certifi 2023.7.22 cffi 1.16.0 chardet 5.2.0 charset-normalizer 3.2.0 colorama 0.4.6 coloredlogs 15.0.1 colorlog 6.8.0 contourpy 1.1.1 cssselect2 0.7.0 cycler 0.11.0 Cython 3.0.2 diffusers 0.26.1 easydict 1.10 einops 0.7.0 embreex 2.17.7.post4 exceptiongroup 1.2.0 fal_client 0.4.1 filelock 3.13.1 flatbuffers 23.5.26 fonttools 4.42.1 fsspec 2023.12.2 ftfy 6.1.3 fvcore 0.1.5.post20221221 gitdb 4.0.11 GitPython 3.1.41 google-ai-generativelanguage 0.4.0 google-api-core 2.16.2 google-auth 2.27.0 google-generativeai 0.3.2 googleapis-common-protos 1.62.0 grpcio 1.60.1 grpcio-status 1.60.1 h11 0.14.0 httpcore 1.0.2 httpx 0.26.0 httpx-sse 0.4.0 hub-sdk 0.0.3 huggingface-hub 0.20.2 humanfriendly 10.0 idna 3.4 imageio 2.31.4 importlib-metadata 7.0.1 insightface 0.7.3 iopath 0.1.10 Jinja2 3.1.3 jmespath 1.0.1 joblib 1.3.2 jsonschema 4.20.0 jsonschema-specifications 2023.12.1 kiwisolver 1.4.5 lazy_loader 0.3 lxml 5.1.0 mapbox-earcut 1.0.1 MarkupSafe 2.1.3 matplotlib 3.8.0 mediapipe 0.10.9 mpmath 1.3.0 networkx 3.1 numpy 1.26.0 omegaconf 2.3.0 onnx 1.14.1 onnxruntime-gpu 1.17.0 opencv-contrib-python 4.9.0.80 opencv-python 4.9.0.80 opencv-python-headless 4.8.0.76 packaging 23.1 pandas 2.1.4 piexif 1.1.3 Pillow 10.0.1 pip 24.0 platformdirs 4.1.0 portalocker 2.8.2 prettytable 3.9.0 proto-plus 1.23.0 protobuf 4.25.2 psutil 5.9.7 py-cpuinfo 9.0.0 pyasn1 0.5.1 pyasn1-modules 0.3.0 pycollada 0.8 pycparser 2.21 PyExecJS 1.5.1 pyparsing 3.1.1 pyreadline3 3.4.1 python-dateutil 2.8.2 pytz 2023.3.post1 PyWavelets 1.4.1 pywin32 306 PyYAML 6.0.1 qudida 0.0.4 redis 5.1.0 referencing 0.32.1 regex 2023.12.25 reportlab 4.0.9 requests 2.31.0 rpds-py 0.17.1 rsa 4.9 Rtree 1.1.0 s3transfer 0.10.2 safetensors 0.4.1 scikit-image 0.21.0 scikit-learn 1.3.1 scipy 1.11.2 seaborn 0.13.1 segment-anything 1.0 setuptools 63.2.0 shapely 2.0.2 simpleeval 0.9.13 six 1.16.0 smmap 5.0.1 sniffio 1.3.0 sounddevice 0.4.6 surrealist 1.0.0 svg.path 6.3 svglib 1.5.1 sympy 1.12 tabulate 0.9.0 termcolor 2.4.0 thop 0.1.1.post2209072238 threadpoolctl 3.2.0 tifffile 2023.9.26 tinycss2 1.2.1 tokenizers 0.15.0 tomli 2.0.1 torch 2.1.2 torchvision 0.16.2 tqdm 4.66.1 transformers 4.36.2 trimesh 4.0.9 typing_extensions 4.8.0 tzdata 2023.4 ultralytics 8.1.1 urllib3 2.0.4 vhacdx 0.0.5 wcwidth 0.2.13 webencodings 0.5.1 websocket-client 1.8.0 websockets 12.0 xxhash 3.4.1 yacs 0.1.8 yapf 0.40.2 zipp 3.17.0

wang765308610 commented 1 day ago

怎么感觉我

贴一下你的依赖包的版本:pip list,看看是不是版本过低了 不好意思回复时间有点长,打印版本如下 E:\ComfyUI>py -m pip --version pip 24.0 from C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)

E:\ComfyUI>py -m pip list Package Version

absl-py 2.0.0 accelerate 0.26.1 addict 2.4.0 albumentations 1.3.1 antlr4-python3-runtime 4.9.3 anyio 4.2.0 async-timeout 4.0.3 attrs 23.2.0 boto3 1.34.86 botocore 1.34.162 cachetools 5.3.2 certifi 2023.7.22 cffi 1.16.0 chardet 5.2.0 charset-normalizer 3.2.0 colorama 0.4.6 coloredlogs 15.0.1 colorlog 6.8.0 contourpy 1.1.1 cssselect2 0.7.0 cycler 0.11.0 Cython 3.0.2 diffusers 0.26.1 easydict 1.10 einops 0.7.0 embreex 2.17.7.post4 exceptiongroup 1.2.0 fal_client 0.4.1 filelock 3.13.1 flatbuffers 23.5.26 fonttools 4.42.1 fsspec 2023.12.2 ftfy 6.1.3 fvcore 0.1.5.post20221221 gitdb 4.0.11 GitPython 3.1.41 google-ai-generativelanguage 0.4.0 google-api-core 2.16.2 google-auth 2.27.0 google-generativeai 0.3.2 googleapis-common-protos 1.62.0 grpcio 1.60.1 grpcio-status 1.60.1 h11 0.14.0 httpcore 1.0.2 httpx 0.26.0 httpx-sse 0.4.0 hub-sdk 0.0.3 huggingface-hub 0.20.2 humanfriendly 10.0 idna 3.4 imageio 2.31.4 importlib-metadata 7.0.1 insightface 0.7.3 iopath 0.1.10 Jinja2 3.1.3 jmespath 1.0.1 joblib 1.3.2 jsonschema 4.20.0 jsonschema-specifications 2023.12.1 kiwisolver 1.4.5 lazy_loader 0.3 lxml 5.1.0 mapbox-earcut 1.0.1 MarkupSafe 2.1.3 matplotlib 3.8.0 mediapipe 0.10.9 mpmath 1.3.0 networkx 3.1 numpy 1.26.0 omegaconf 2.3.0 onnx 1.14.1 onnxruntime-gpu 1.17.0 opencv-contrib-python 4.9.0.80 opencv-python 4.9.0.80 opencv-python-headless 4.8.0.76 packaging 23.1 pandas 2.1.4 piexif 1.1.3 Pillow 10.0.1 pip 24.0 platformdirs 4.1.0 portalocker 2.8.2 prettytable 3.9.0 proto-plus 1.23.0 protobuf 4.25.2 psutil 5.9.7 py-cpuinfo 9.0.0 pyasn1 0.5.1 pyasn1-modules 0.3.0 pycollada 0.8 pycparser 2.21 PyExecJS 1.5.1 pyparsing 3.1.1 pyreadline3 3.4.1 python-dateutil 2.8.2 pytz 2023.3.post1 PyWavelets 1.4.1 pywin32 306 PyYAML 6.0.1 qudida 0.0.4 redis 5.1.0 referencing 0.32.1 regex 2023.12.25 reportlab 4.0.9 requests 2.31.0 rpds-py 0.17.1 rsa 4.9 Rtree 1.1.0 s3transfer 0.10.2 safetensors 0.4.1 scikit-image 0.21.0 scikit-learn 1.3.1 scipy 1.11.2 seaborn 0.13.1 segment-anything 1.0 setuptools 63.2.0 shapely 2.0.2 simpleeval 0.9.13 six 1.16.0 smmap 5.0.1 sniffio 1.3.0 sounddevice 0.4.6 surrealist 1.0.0 svg.path 6.3 svglib 1.5.1 sympy 1.12 tabulate 0.9.0 termcolor 2.4.0 thop 0.1.1.post2209072238 threadpoolctl 3.2.0 tifffile 2023.9.26 tinycss2 1.2.1 tokenizers 0.15.0 tomli 2.0.1 torch 2.1.2 torchvision 0.16.2 tqdm 4.66.1 transformers 4.36.2 trimesh 4.0.9 typing_extensions 4.8.0 tzdata 2023.4 ultralytics 8.1.1 urllib3 2.0.4 vhacdx 0.0.5 wcwidth 0.2.13 webencodings 0.5.1 websocket-client 1.8.0 websockets 12.0 xxhash 3.4.1 yacs 0.1.8 yapf 0.40.2 zipp 3.17.0

怎么感觉我比你少这么多东西呢?奇怪了

wang765308610 commented 1 day ago

Package Version


2to3 1.0 accelerate 1.0.1 bitsandbytes 0.44.1 certifi 2024.8.30 charset-normalizer 3.4.0 colorama 0.4.6 filelock 3.16.1 fsspec 2024.10.0 huggingface-hub 0.23.4 idna 3.10 Jinja2 3.1.4 MarkupSafe 3.0.2 mpmath 1.3.0 networkx 3.4.2 numpy 1.26.4 packaging 24.1 peft 0.13.2 pillow 11.0.0 pip 24.3.1 psutil 6.1.0 PyYAML 6.0.2 regex 2024.9.11 requests 2.32.3 safetensors 0.4.5 sentencepiece 0.2.0 setuptools 75.2.0 sympy 1.13.1 tokenizers 0.20.1 torch 2.5.0 tqdm 4.66.6 transformers 4.46.0 typing_extensions 4.12.2 urllib3 2.2.3

EvilBT commented 12 hours ago

贴一下你的依赖包的版本:pip list,看看是不是版本过低了 不好意思回复时间有点长,打印版本如下 E:\ComfyUI>py -m pip --version pip 24.0 from C:\Users\admin\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)

E:\ComfyUI>py -m pip list Package Version

absl-py 2.0.0 accelerate 0.26.1 addict 2.4.0 albumentations 1.3.1 antlr4-python3-runtime 4.9.3 anyio 4.2.0 async-timeout 4.0.3 attrs 23.2.0 boto3 1.34.86 botocore 1.34.162 cachetools 5.3.2 certifi 2023.7.22 cffi 1.16.0 chardet 5.2.0 charset-normalizer 3.2.0 colorama 0.4.6 coloredlogs 15.0.1 colorlog 6.8.0 contourpy 1.1.1 cssselect2 0.7.0 cycler 0.11.0 Cython 3.0.2 diffusers 0.26.1 easydict 1.10 einops 0.7.0 embreex 2.17.7.post4 exceptiongroup 1.2.0 fal_client 0.4.1 filelock 3.13.1 flatbuffers 23.5.26 fonttools 4.42.1 fsspec 2023.12.2 ftfy 6.1.3 fvcore 0.1.5.post20221221 gitdb 4.0.11 GitPython 3.1.41 google-ai-generativelanguage 0.4.0 google-api-core 2.16.2 google-auth 2.27.0 google-generativeai 0.3.2 googleapis-common-protos 1.62.0 grpcio 1.60.1 grpcio-status 1.60.1 h11 0.14.0 httpcore 1.0.2 httpx 0.26.0 httpx-sse 0.4.0 hub-sdk 0.0.3 huggingface-hub 0.20.2 humanfriendly 10.0 idna 3.4 imageio 2.31.4 importlib-metadata 7.0.1 insightface 0.7.3 iopath 0.1.10 Jinja2 3.1.3 jmespath 1.0.1 joblib 1.3.2 jsonschema 4.20.0 jsonschema-specifications 2023.12.1 kiwisolver 1.4.5 lazy_loader 0.3 lxml 5.1.0 mapbox-earcut 1.0.1 MarkupSafe 2.1.3 matplotlib 3.8.0 mediapipe 0.10.9 mpmath 1.3.0 networkx 3.1 numpy 1.26.0 omegaconf 2.3.0 onnx 1.14.1 onnxruntime-gpu 1.17.0 opencv-contrib-python 4.9.0.80 opencv-python 4.9.0.80 opencv-python-headless 4.8.0.76 packaging 23.1 pandas 2.1.4 piexif 1.1.3 Pillow 10.0.1 pip 24.0 platformdirs 4.1.0 portalocker 2.8.2 prettytable 3.9.0 proto-plus 1.23.0 protobuf 4.25.2 psutil 5.9.7 py-cpuinfo 9.0.0 pyasn1 0.5.1 pyasn1-modules 0.3.0 pycollada 0.8 pycparser 2.21 PyExecJS 1.5.1 pyparsing 3.1.1 pyreadline3 3.4.1 python-dateutil 2.8.2 pytz 2023.3.post1 PyWavelets 1.4.1 pywin32 306 PyYAML 6.0.1 qudida 0.0.4 redis 5.1.0 referencing 0.32.1 regex 2023.12.25 reportlab 4.0.9 requests 2.31.0 rpds-py 0.17.1 rsa 4.9 Rtree 1.1.0 s3transfer 0.10.2 safetensors 0.4.1 scikit-image 0.21.0 scikit-learn 1.3.1 scipy 1.11.2 seaborn 0.13.1 segment-anything 1.0 setuptools 63.2.0 shapely 2.0.2 simpleeval 0.9.13 six 1.16.0 smmap 5.0.1 sniffio 1.3.0 sounddevice 0.4.6 surrealist 1.0.0 svg.path 6.3 svglib 1.5.1 sympy 1.12 tabulate 0.9.0 termcolor 2.4.0 thop 0.1.1.post2209072238 threadpoolctl 3.2.0 tifffile 2023.9.26 tinycss2 1.2.1 tokenizers 0.15.0 tomli 2.0.1 torch 2.1.2 torchvision 0.16.2 tqdm 4.66.1 transformers 4.36.2 trimesh 4.0.9 typing_extensions 4.8.0 tzdata 2023.4 ultralytics 8.1.1 urllib3 2.0.4 vhacdx 0.0.5 wcwidth 0.2.13 webencodings 0.5.1 websocket-client 1.8.0 websockets 12.0 xxhash 3.4.1 yacs 0.1.8 yapf 0.40.2 zipp 3.17.0

你这里的版本过低了,transformers 4.36.2,还有其他几个也没有装,请仔细阅读readme.md,把依赖升级更高

EvilBT commented 12 hours ago

在你们的运行环境下,我不知道你们是不是一键安装包那种,就是激活你们的python运行环境后,输入

pip list

就会打印一堆安装的版本信息,主要是看我项目要求的那几个版本信息达标了没,大于或等于才能正常运行模型

F:\ai\Aki_stable_deffusion\sd-comfyui_aki>pip list Package Version

2to3 1.0 accelerate 1.0.1 bitsandbytes 0.44.1 certifi 2024.8.30 charset-normalizer 3.4.0 colorama 0.4.6 filelock 3.16.1 fsspec 2024.10.0 huggingface-hub 0.23.4 idna 3.10 Jinja2 3.1.4 MarkupSafe 3.0.2 mpmath 1.3.0 networkx 3.4.2 numpy 1.26.4 packaging 24.1 peft 0.13.2 pillow 11.0.0 pip 24.3.1 psutil 6.1.0 PyYAML 6.0.2 regex 2024.9.11 requests 2.32.3 safetensors 0.4.5 sentencepiece 0.2.0 setuptools 75.2.0 sympy 1.13.1 tokenizers 0.20.1 torch 2.5.0 tqdm 4.66.6 transformers 4.46.0 typing_extensions 4.12.2 urllib3 2.2.3

你的依赖环境没有问题,应该是其他的

wang765308610 commented 9 hours ago

在你们的运行环境下,我不知道你们是不是一键安装包那种,就是激活你们的python运行环境后,输入

pip list

就会打印一堆安装的版本信息,主要是看我项目要求的那几个版本信息达标了没,大于或等于才能正常运行模型

F:\ai\Aki_stable_deffusion\sd-comfyui_aki>pip list Package Version 2to3 1.0 accelerate 1.0.1 bitsandbytes 0.44.1 certifi 2024.8.30 charset-normalizer 3.4.0 colorama 0.4.6 filelock 3.16.1 fsspec 2024.10.0 huggingface-hub 0.23.4 idna 3.10 Jinja2 3.1.4 MarkupSafe 3.0.2 mpmath 1.3.0 networkx 3.4.2 numpy 1.26.4 packaging 24.1 peft 0.13.2 pillow 11.0.0 pip 24.3.1 psutil 6.1.0 PyYAML 6.0.2 regex 2024.9.11 requests 2.32.3 safetensors 0.4.5 sentencepiece 0.2.0 setuptools 75.2.0 sympy 1.13.1 tokenizers 0.20.1 torch 2.5.0 tqdm 4.66.6 transformers 4.46.0 typing_extensions 4.12.2 urllib3 2.2.3

你的依赖环境没有问题,应该是其他的

这……那会是什么问题呢……