|
Download README.md from TonyZhan/AlphaRAE-ImageNet: direct link, hf CLI and curl.
- Browser
- Download file 2.42 kB
-
https://huggingface.co/TonyZhan/AlphaRAE-ImageNet/resolve/main/README.md
- Command line
-
hf download hf://TonyZhan/AlphaRAE-ImageNet/README.md
-
curl -L -o README.md https://huggingface.co/TonyZhan/AlphaRAE-ImageNet/resolve/main/README.md
2.42 kB
| library_name: pytorch | |
| license: other | |
| license_name: alpharae-raev2-and-dinov3 | |
| license_link: LICENSE.md | |
| tags: | |
| - imagenet | |
| - class-conditional | |
| - rgba | |
| - diffusion | |
| # AlphaRAE ImageNet class-conditioned RGBA generation | |
| This release generates 256×256 RGBA assets from an ImageNet class ID and a random seed. The pipeline first samples the unchanged class-conditioned RGB DiT, then applies the selected image-only adapter and frozen K7 RGBA decoder. No target image, target alpha or matting teacher is needed at inference. | |
| | File | Contents | | |
| | --- | --- | | |
| | imagenet_dit.pt | Native K7 ImageNet RGB DiT EMA; model-only export | | |
| | rgba_adapter.pt | Selected adapter EMA; 8,000 updates in its final stage and 47,500 sequential updates in total | | |
| | latent_stats.pt | Matching RGB and reconstruction-detail normalization | | |
| | imagenet_manifest.json | Model sizes, shared dependencies and fixed sampling settings | | |
| All exported prior and adapter state tensors were compared exactly with their selected original values. Optimizer states, data records and training-machine paths are omitted. The files load with weights_only=True. | |
| ## Download and generate | |
| Use the [AlphaRAE code](https://github.com/TonyZhan10/AlphaRAE): | |
| ```bash | |
| python -m scripts.download_generation_weights | |
| python -m scripts.generate_imagenet --classes 985 849 --seeds 20260926 --output outputs/imagenet | |
| ``` | |
| The download command anonymously fetches this repository into weights/generation/ and reuses the K7 codec and matching RGB decoder from [TonyZhan/AlphaRAE-Reconstruction](https://huggingface.co/TonyZhan/AlphaRAE-Reconstruction). It downloads those shared assets automatically if they are not already cached. The RGB decoder dependency is training/rgb_k7_init.pt; all 456 decoder state tensors match the native RGB decoder. No manual model download or token is required. | |
| Class IDs are 0–999 in torchvision ImageNet order; 985 is daisy and 849 is teapot. Sampling uses 100 Euler steps, CFG=1 and internal guidance=1.78 on [0.1,1], with the native transport shift of 8. Output folders contain the sampled RGB, straight-alpha RGBA, predicted alpha, background views and a report. Images are qualitative samples, not paired ground-truth reconstructions. | |
| Text-conditioned generation and its models are not included. The codec and training releases remain available separately. See LICENSE.md and the included component licenses before reuse. | |