Upload 11 files
d93771f
Instructions on converting to NCNN models
- Convert to onnx model with
scripts/pytorch2onnx.py
. Remember to modify codes accordingly
- Convert onnx model to ncnn model
cd ncnn-master\ncnn\build\tools\onnx
onnx2ncnn.exe realesrgan-x4.onnx realesrgan-x4-raw.param realesrgan-x4-raw.bin
- Optimize ncnn model
- fp16 mode
cd ncnn-master\ncnn\build\tools
ncnnoptimize.exe realesrgan-x4-raw.param realesrgan-x4-raw.bin realesrgan-x4.param realesrgan-x4.bin 1
- Modify the blob name in
realesrgan-x4.param
: data
and output