Spaces:
Running
Running
A newer version of the Gradio SDK is available:
5.6.0
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
- fp16 mode
- Modify the blob name in
realesrgan-x4.param
:data
andoutput