Add README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
license_name: r3gan2-webgpu-mixed
|
| 4 |
+
license_link: LICENSE.md
|
| 5 |
+
tags:
|
| 6 |
+
- gan
|
| 7 |
+
- image-generation
|
| 8 |
+
- webgpu
|
| 9 |
+
- onnx
|
| 10 |
+
pipeline_tag: unconditional-image-generation
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# R3GAN2 for WebGPU
|
| 14 |
+
|
| 15 |
+
The files the R3GAN2 project page loads to generate images live in your browser: the ImageNet 256×256 generators
|
| 16 |
+
(S, M, L) and the FFHQ 256×256 generator, repacked for WebGPU, with the decoders that turn their latents into images.
|
| 17 |
+
They are not meant for PyTorch; the PyTorch checkpoints will be released with the code.
|
| 18 |
+
|
| 19 |
+
From the NeurIPS 2026 paper *Magnitude-preserving Discriminators Enable Efficient GANs*, by Nick Yiwen Huang,
|
| 20 |
+
Jackson Woodleigh\*, Aaron Gokaslan\*, Xinjie Yi and James Tompkin (\*equal contribution).
|
| 21 |
+
|
| 22 |
+
- Project page and live demos: https://cs.brown.edu/people/blank/jtompki1/r3gan2/
|
| 23 |
+
- Code: https://github.com/brownvc/R3GAN2
|
| 24 |
+
|
| 25 |
+
## Files and licences
|
| 26 |
+
|
| 27 |
+
| Files | What | Licence |
|
| 28 |
+
|---|---|---|
|
| 29 |
+
| `imagenet_{s,m,l}_weights.bin`, `.json`, `imagenet_{s,m,l}_embed.bin`, `imagenet_{s,m,l}_test*.bin` | R3GAN2 ImageNet 256×256 generators S (17 M parameters), M (61 M) and L (131 M), class embeddings, and reference outputs for the demo's self-check | [CC BY-NC 4.0](https://creativecommons.org/licenses/by-nc/4.0/); the TAEF2 decoder weights packed into the `.bin` files are MIT (see below) |
|
| 30 |
+
| `ffhq_weights.bin`, `.json`, `ffhq_test.bin` | R3GAN2 FFHQ 256×256 generator (pixel space) | [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/), following FFHQ's licence |
|
| 31 |
+
| `vae_dec.onnx` | The FLUX.2 autoencoder's decoder (Black Forest Labs), exported to ONNX | [Apache 2.0](LICENSE-APACHE-2.0.txt); our changes are listed in [NOTICE](NOTICE) |
|
| 32 |
+
| (inside `imagenet_*_weights.bin`) | The TAEF2 decoder by Ollin Boer Bohan, repacked for WebGPU | [MIT](LICENSE-TAEF2-MIT.txt) |
|
| 33 |
+
|
| 34 |
+
The ImageNet generators work in the latent space of the FLUX.2 autoencoder; the demo decodes their latents with
|
| 35 |
+
TAEF2 (fast) or the full FLUX.2 decoder.
|
| 36 |
+
|
| 37 |
+
## Citation
|
| 38 |
+
|
| 39 |
+
```bibtex
|
| 40 |
+
@inproceedings{huang2026magnitude,
|
| 41 |
+
title = {Magnitude-preserving Discriminators Enable Efficient {GAN}s},
|
| 42 |
+
author = {Huang, Nick Yiwen and Woodleigh, Jackson and Gokaslan, Aaron and Yi, Xinjie and Tompkin, James},
|
| 43 |
+
booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
|
| 44 |
+
year = {2026}
|
| 45 |
+
}
|
| 46 |
+
```
|