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# 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_7Model files can be found here.
pip install spandrel
python spandrel_convert.py path/to/model.pth