llama-cpp-turboquant/examples/neural_network_vgg7/README.md
2021-07-21 21:19:24 +01:00

629 B

Waifu2x VGG7 implementation

This demonstrates performing image upscaling using Python and kompute.

To import the no-noise-compensation VGG7 model (into model-kipper):

curl -o model.json https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/art/scale2.0x_model.json
python3 import_vgg7.py model.json

Other models from the vgg_7 set (such as https://raw.githubusercontent.com/nagadomi/waifu2x/master/models/vgg_7/photo/noise0_model.json) can be subsituted as desired.

To execute that model (no tiling is performed, so be careful about image sizes):

python3 run_vgg7.py w2wbinit.png out.png