-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CUnet Model Conversion #1
Comments
Tried again with |
Found a PyTorch implementation of CUnet (antonpaquin/waifu2x-cunet-pytorch), which exports ONNX models. This might be the easiest way to generate Cunet models. |
The PyTorch Implementation
Because of it's unique input shape (batch x 3 x width x height), I decided to use a pre-defined input shape (1x3x220x220) for onnx-simplifier (original caffe model was 1x3x200x200). |
There are a couple of Differences between the Caffe Model and the ONNX Model when viewed in Netron (again).
|
After manual modification to the PyTorch Implementation (something which should've broken everything), I was able to export the missing models. |
I decided to take a peek at the models used in the ncnn implementation, which is making things a bit more confusing.
|
When converting to CoreML, I get the following error
This is caused by the check performed in CoreML
Based on my limited understanding of the documentation, I need to convert this to this, which doesn't seem as simple as I originally thought.
One solution is to write a script to build the ONNX model directly from the weights (see here).
The text was updated successfully, but these errors were encountered: