Toilet
Collection
3 items β’ Updated
ONNX export of the G_ema generator from the PyTorch repo RaspizdAI/toiletV2
(StyleGAN2-ADA, unconditional, 128Γ128, truncation_psi = 0.7).
Run the model directly in your browser β no install required: ai.amogus.bond
Smooth timelapse, kimg 0 β kimg 2252.
Higher-quality version: timelapse_toiletV2.mp4
network-snapshot-002252.onnx β opset 17, a single self-contained file (no external .data).
| name | type | shape | |
|---|---|---|---|
| input | z |
float32 | [batch, 512] (dynamic batch) |
| output | image |
float32 | [batch, 3, 128, 128], range [-1, 1] |
Post-process: img = ((image * 0.5) + 0.5).clip(0, 1).
import numpy as np, onnxruntime as ort
sess = ort.InferenceSession("network-snapshot-002252.onnx",
providers=["CUDAExecutionProvider", "CPUExecutionProvider"])
z = np.random.randn(1, 512).astype(np.float32)
img = sess.run(["image"], {"z": z})[0] # [1, 3, 128, 128] in [-1, 1]
truncation_psi = 0.7 is baked into the graph; noise_mode = "const", fused_modconv = False, no conditioning (c is not an input).max|Ξ| β 5e-3 (ONNX CPU vs PyTorch CUDA, fp32); output is bit-identical to the opset-18 export.This model is licensed under CC-BY-SA-4.0.