Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 1.16 KB

README.md

File metadata and controls

28 lines (26 loc) · 1.16 KB

Inference script for Pixelization in Rust

All credit to those guys, I just conveted the model to make it simple to use.

Usage

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]

Windows build

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]

Limiation

Max image size = 1000 x 1000 px