Skip to content

Thessal/pixelization_inference

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 72.2%
  • Rust 27.8%