CLIP-ImageSearch-NCNN icon indicating copy to clipboard operation
CLIP-ImageSearch-NCNN copied to clipboard

模型是怎么导出的?

Open perfyperfect opened this issue 2 years ago • 1 comments

我尝试导出clip的模型(vit和Resnet都尝试了)分别都报错了,请问您能分享一下导出模型的经验么?

perfyperfect avatar Jun 13 '23 09:06 perfyperfect

  1. 导出resnet要比导出vit的要简单,你可以先从导出resnet开始。
  2. 如果导出经验不多的话,就用pnnx转模型,不要用onnx了。
  3. clip有text encoder和image encoder,这两个要分开导出,不要一起导。

EdVince avatar Jun 13 '23 09:06 EdVince