Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Model Conversion Scripts

Note: Python 3.9 must be used (probably, that's just what I had to use for things to work for me).

python3.9 -m venv env
source env/bin/activate
pip install torch==2.5.0 coremltools

Waifu2x

# get models
wget https://github.com/nagadomi/nunif/releases/download/0.0.0/waifu2x_pretrained_models_20250502.zip
unzip waifu2x_pretrained_models_20250502.zip
# get dependencies
git clone git@github.com:nagadomi/nunif.git
pip install Pillow torchvision
# run conversion
python waifu2x_upconv7_convert.py pretrained_models/upconv_7

Real-ESRGAN (and others, with spandrel)

Model files can be found here.

pip install spandrel
python spandrel_convert.py path/to/model.pth