Views
No views yet
data/
directory and run the following command:cargo run --example stable-diffusion --features clap -- --prompt "A rusty robot holding a fire torch."@InProceedings{Rombach_2022_CVPR,
author = {Rombach, Robin and Blattmann, Andreas and Lorenz, Dominik and Esser, Patrick and Ommer, Bj\"orn},
title = {High-Resolution Image Synthesis With Latent Diffusion Models},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2022},
pages = {10684-10695}
}npz files.1import numpy as np
2import torch
3model = torch.load("./vae.bin")
4np.savez("./vae.npz", **{k: v.numpy() for k, v in model.items()})
5model = torch.load("./unet.bin")
6np.savez("./unet.npz", **{k: v.numpy() for k, v in model.items()}).npz files to .ot files via tensor-tools.1cargo run --release --example tensor-tools cp ./data/vae.npz ./data/vae.ot
2cargo run --release --example tensor-tools cp ./data/unet.npz ./data/unet.ot