pythongosssss / ComfyUI-WD14-Tagger

A ComfyUI extension allowing for the interrogation of booru tags from images.
MIT License
597 stars 70 forks source link

onnxruntime型号不对 #43

Open chenpipi0807 opened 5 months ago

chenpipi0807 commented 5 months ago

我在使用V3模型的时候,会有onnxruntime的报错,大多数人的解决方案是把她的名字换成了V2,但是我更希望V3和V2切换使用,你可以修复一下代码吗

chenpipi0807 commented 5 months ago

Error occurred when executing WD14Tagger|pysssss:

[ONNXRuntimeError] : 1 : FAIL : Load model from F:\PIPCOMFYUI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-WD14-Tagger\models\wd-vit-tagger-v3.onnx failed:D:\a_work\1\s\onnxruntime\core/graph/model_load_utils.h:56 onnxruntime::model_load_utils::ValidateOpsetForDomain ONNX Runtime only guarantees support for models stamped with official released onnx opset versions. Opset 4 is under development and support for this is limited. The operator schemas and or other functionality may change before next ONNX release and in this case ONNX Runtime will not guarantee backward compatibility. Current official support for domain ai.onnx.ml is till opset 3.

wangfeng35 commented 5 months ago

ONNXRuntime

换名字是什么骚操作 竟然可以运行?

chenpipi0807 commented 5 months ago

B站一大堆换名字的教程......

vuasia commented 5 months ago

how to rename?

chenpipi0807 commented 5 months ago

把两个文件都重命名成v2版本,把v2对应的名字删掉................

wangfeng35 commented 5 months ago

把两个文件都重命名成v2版本,把v2对应的名字删掉................

真是朴实的方法。。。

话说我看有的人分析的工作流里的v3就可以正常运行 所以问题到底在哪。。。

chenjiu2008 commented 5 months ago

没用

Vigilence commented 3 months ago

Just received this error. Not sure why because it was fine yesterday.

justUmen commented 3 months ago

pip install onnx==1.15.0 onnxruntime-gpu==1.17.1