StartHua / Comfyui_CXH_joy_caption

Recommended based on comfyui node pictures:Joy_caption + MiniCPMv2_6-prompt-generator + florence2
Apache License 2.0
399 stars 25 forks source link

除零报错Windows fatal exception: int divide by zero #88

Open sakusankun opened 1 week ago

sakusankun commented 1 week ago

运行CXH_Florence2Run时出现报错: 崩溃堆栈回溯记录: Windows fatal exception: int divide by zero

Stack (most recent call first): File "I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\transformers\generation\logits_process.py", line 532 in call File "I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\transformers\generation\logits_process.py", line 104 in call File "I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\transformers\generation\utils.py", line 3267 in _beam_search File "I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\transformers\generation\utils.py", line 2078 in generate File "I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\utils_contextlib.py", line 115 in decorate_context File "I:\Comfy\ComfyUI-aki-v1.4.cache\huggingface\modules\transformers_modules\Florence-2-base\modeling_florence2.py", line 2796 in generate File "I:\Comfy\ComfyUI-aki-v1.4\custom_nodes\Comfyui_CXH_joy_caption\florence_nodes.py", line 221 in encode File "I:\Comfy\ComfyUI-aki-v1.4\execution.py", line 158 in process_inputs File "I:\Comfy\ComfyUI-aki-v1.4\execution.py", line 169 in _map_node_over_list File "I:\Comfy\ComfyUI-aki-v1.4\execution.py", line 198 in get_output_data File "I:\Comfy\ComfyUI-aki-v1.4\execution.py", line 323 in execute File "I:\Comfy\ComfyUI-aki-v1.4\execution.py", line 500 in execute File "I:\Comfy\ComfyUI-aki-v1.4\custom_nodes\rgthree-comfy__init__.py", line 217 in rgthree_execute File "I:\Comfy\ComfyUI-aki-v1.4\main.py", line 125 in prompt_worker File "I:\Comfy\ComfyUI-aki-v1.4\python\lib\threading.py", line 953 in run File "", line 92 in _run_old_run_func File "", line 99 in run File "I:\Comfy\ComfyUI-aki-v1.4\python\lib\threading.py", line 1016 in _bootstrap_inner File "I:\Comfy\ComfyUI-aki-v1.4\python\lib\threading.py", line 973 in _bootstrap 前面提示的是退出代码0xC0000094

以及长段类似的错误 [程序崩溃,退出代码为 3221225620 (0xC0000094)] , I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_cuda.dll(0x00007FFEA6080000) + 0x146A795 byte(s), ?split_with_sizes_copy_out_cuda@native@at@@YAXAEBVTensor@2@V?$ArrayRef@_J@c10@@_JV?$ArrayRef@VTensor@at@@@5@@Z() + 0x243A5 byte(s) 0x00007FFEA7518057, I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_cuda.dll(0x00007FFEA6080000) + 0x1498057 byte(s), ?split_with_sizes_copy_out_cuda@native@at@@YAXAEBVTensor@2@V?$ArrayRef@_J@c10@@_JV?$ArrayRef@VTensor@at@@@5@@Z() + 0x51C67 byte(s) 0x00007FFEA7511AAB, I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_cuda.dll(0x00007FFEA6080000) + 0x1491AAB byte(s), ?split_with_sizes_copy_out_cuda@native@at@@YAXAEBVTensor@2@V?$ArrayRef@_J@c10@@_JV?$ArrayRef@VTensor@at@@@5@@Z() + 0x4B6BB byte(s) 0x00007FFEA7526311, I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_cuda.dll(0x00007FFEA6080000) + 0x14A6311 byte(s), ?split_with_sizes_copy_out_cuda@native@at@@YAXAEBVTensor@2@V?$ArrayRef@_J@c10@@_JV?$ArrayRef@VTensor@at@@@5@@Z() + 0x5FF21 byte(s) 0x00007FFEA7E516E9, I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_cuda.dll(0x00007FFEA6080000) + 0x1DD16E9 byte(s), ?impl@structured_topk_out_cuda@native@at@@QEAAXAEBVTensor@3@_J1_N200@Z() + 0x279 byte(s) 0x00007FFEA7D126B5, I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_cuda.dll(0x00007FFEA6080000) + 0x1C926B5 byte(s), ?where_outf@cuda@at@@YAAEAVTensor@2@AEBV32@00AEAV32@@Z() + 0x7B3D5 byte(s) 0x00007FFEA7BD716D, I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_cuda.dll(0x00007FFEA6080000) + 0x1B5716D byte(s), ?bucketize_outf@cuda@at@@YAAEAVTensor@2@AEBV32@0_N1AEAV32@@Z() + 0x634ED byte(s) 0x00007FFEEE13070A, I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_cpu.dll(0x00007FFEED530000) + 0xC0070A byte(s), ?call@topk@_ops@at@@SA?AV?$tuple@VTensor@at@@V12@@std@@AEBVTensor@3@VSymInt@c10@@_J_N3@Z() + 0x29A byte(s) 0x00007FFEED6127A7, I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_cpu.dll(0x00007FFEED530000) + 0xE27A7 byte(s), ?topk_symint@Tensor@at@@QEBA?AV?$tuple@VTensor@at@@V12@@std@@VSymInt@c10@@_J_N2@Z() + 0x57 byte(s) 0x00007FF85C7C5D16, I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_python.dll(0x00007FF85C770000) + 0x55D16 byte(s), ??C?$THPPointer@U_frame@@@@QEAAPEAU_frame@@XZ() + 0x13FD6 byte(s) 0x00007FF85C94104D, I:\Comfy\ComfyUI-aki-v1.4\python\lib\site-packages\torch\lib\torch_python.dll(0x00007FF85C770000) + 0x1D104D byte(s), ?release@?$THPPointer@UPyCodeObject@@@@QEAAPEAUPyCodeObject@@XZ() + 0xADB0D byte(s) 0x00007FF8AD499EEA, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x19EEA byte(s), PyObject_IsTrue() + 0xD2 byte(s) 0x00007FF8AD4F9892, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x79892 byte(s), _PyEval_EvalFrameDefault() + 0x3FF2 byte(s) 0x00007FF8AD4F49D7, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x749D7 byte(s), _PyFunction_Vectorcall() + 0x87 byte(s) 0x00007FF8AD4AA8AF, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x2A8AF byte(s), _PyObject_FastCallDictTstate() + 0x6B byte(s) 0x00007FF8AD5B81F4, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x1381F4 byte(s), _PyObject_Call_Prepend() + 0x7C byte(s) 0x00007FF8AD5B8150, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x138150 byte(s), _PyBytesWriter_Resize() + 0x10EC byte(s) 0x00007FF8AD4FA598, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x7A598 byte(s), _PyEval_EvalFrameDefault() + 0x4CF8 byte(s) 0x00007FF8AD4F49D7, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x749D7 byte(s), _PyFunction_Vectorcall() + 0x87 byte(s) 0x00007FF8AD4AA8AF, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x2A8AF byte(s), _PyObject_FastCallDictTstate() + 0x6B byte(s) 0x00007FF8AD5B81F4, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x1381F4 byte(s), _PyObject_Call_Prepend() + 0以下是对退出代码的分析。这可能不准确,请酌情参考! x7C byte(s) 0x00007FF8AD5B8150, I:\Comfy\ComfyUI-aki-v1.4\python\python310.dll(0x00007FF8AD480000) + 0x138150 byte(s), _PyBytesWriter_Resize() + 0x10EC byte(s)

求大佬指教