Spaces:
Runtime error
Runtime error
|
Download docs/ncnn_conversion.md from Sumit7864/Image-Enhancer: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/spaces/Sumit7864/Image-Enhancer/resolve/main/docs/ncnn_conversion.md
- Command line
-
hf download hf://spaces/Sumit7864/Image-Enhancer/docs/ncnn_conversion.md
-
curl -L -o ncnn_conversion.md https://huggingface.co/spaces/Sumit7864/Image-Enhancer/resolve/main/docs/ncnn_conversion.md
580 Bytes
A newer version of the Streamlit SDK is available: 1.66.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\onnxonnx2ncnn.exe realesrgan-x4.onnx realesrgan-x4-raw.param realesrgan-x4-raw.bin
- Optimize ncnn model
- fp16 mode
cd ncnn-master\ncnn\build\toolsncnnoptimize.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:dataandoutput