Open theflyingzamboni opened 1 year ago
Any possibility of these ops being supported in the future?
i can't convert "Janspiry/Image-Super-Resolution-via-Iterative-Refinement" model to NCNN too , i was using "chaiNNer" program, i hope they add support for this operations soon 🤞🤞🤞
I can confirm, Real-ESRGAN_x2 model conversion to ncnn is not supported yet. I got the same error as above. There will ever be the chance it is going to be supported in the near future?
Yeah, I see ERF missing :(
针对onnx模型转换的各种问题,推荐使用最新的pnnx工具转换到ncnn In view of various problems in onnx model conversion, it is recommended to use the latest pnnx tool to convert your model to ncnn
pip install pnnx
pnnx model.onnx inputshape=[1,3,224,224]
详细参考文档 Detailed reference documentation https://github.com/pnnx/pnnx https://github.com/Tencent/ncnn/wiki/use-ncnn-with-pytorch-or-onnx#how-to-use-pnnx
I have attempted to convert these models using both PNNX and doing PTH -> ONNX -> NCNN (using convertmodel.com), and neither one works. This seems to be because of numerous operations that NCNN still does not support that are used in other frameworks like PyTorch and ONNX. Considering the usefulness of these models, it would be very helpful if they could be converted to NCNN. It would be beneficial if NCNN could be updated to support the various ops required by these models that are currently still unsupported, or at the least optimizations added to onnx2ncnn and pnnx to remove these ops and/or convert them to supported ops.
error log | 日志或报错信息 | ログ
This is a subset of the errors thrown by convertmodel.com when trying to convert SwinIR L (RealESRGAN_x2plus is missing similar ops):
When attempting use PNNX, RealESRGAN_x2plus converts successfully to .pt using torch.jit.trace, but when trying to convert to NCNN using PNNX, no files are output even though no error is displayed. It fails silently.
When attempting to convert a SwinIR model using torch.jit.trace, I get these errors:
model | 模型 | モデル
how to reproduce | 复现步骤 | 再現方法