/vae-burn

Primary LanguageRust

VAE-Burn 🔥

Implementation of the VAE in Rust 🦀 + Burn 🔥.

Dataset

I collected some images of characters in Detective Conan, then converted them to sketch using Anime2Sketch

Image 5 Image 1 Image 2 Image 3 Image 4

Please note that the customized dataset will not be made public due to copyright issues, this repo only works with MNIST dataset.

How to run

Make sure all the folders below exist

.
├── Cargo.lock
├── Cargo.toml
├── artifacts
├── images
├── readme.md
├── src
├── target

Then run cargo run --release

Results

Target and reconstruction

Image 1 Image 5

Sampling results

Image 1 Image 5

As a comparison, here are some results from a VAE implemented in pytorch

img

img

Sketch to image results from windy AI

Image 1 Image 5 Image 5