Inference script for Pixelization in Rust
All credit to those guys, I just conveted the model to make it simple to use.
git clone https://github.com/arenatemp/pixelization_inference
pip install pillow torch torchvision numpy
Download the pretrained models into the pixelization_inference folder: pixelart_vgg19.pth alias_net.pth 160_net_G_A.pth
python convert.py
cd pixelize-rust
cargo run [your-image-file]
Download pixelize-rust.zip from above. or download from ipfs
unzip microsoft.ml.onnxruntime.1.8.1.nupkg and copy onnxruntime.dll
install vc_redist.x64.exe
cargo run --target x86_64-pc-windows-msvc [your-image-file]
Max image size = 1000 x 1000 px