Skip to content
Other

1⃣ inet_results

Two-Stage ImageNet Generation via Semantic Plan

2 min read

A research model by author well9472 for class-conditional image generation on ImageNet at 256×256 resolution. The pipeline is split into two stages: first, the Planner module (492.5M parameters) builds a 67-channel image "plan" based on DINOv3-B features (64 channels of token projection and 3 channels of average color), and then the Refiner (164.7M parameters) turns this plan into a dinac3_96 latent representation, which is decoded into the final image. The total weight volume is 657.1M parameters, and the model was trained for 80 epochs without EMA (exponential moving average of weights). The release will be useful for AI researchers and engineers studying cascaded architectures and generation in the DINO feature space.

Key features

  • Cascaded architecture (657.1M parameters): The Planner (width 1024, 24 blocks) handles semantic layout, while the Refiner (width 704, 18 blocks) handles detail refinement in the latent space.
  • High quality on ImageNet 256×256: With guidance settings of 1.2 / 1.25, the model achieves an FID-50k of 1.430 and an IS of 261.6 in 25 steps per stage (AB2 solver).
  • Full reproducibility: The repository includes training and evaluation scripts (train.py, run.sh), intermediate snapshots (20, 40, 60, and 80 epochs), logs, and pre-generated batches of 50,000 samples in ADM format.
  • Ablation experiments: Also includes 3-epoch runs for comparing cascaded (cascade-3ep), joint (joint-3ep), and purely latent (latent-3ep) approaches.

What you can do

  • Reproduce or fine-tune the pipeline: Run the full cycle of data preparation, training, and FID measurement using the provided run.sh and train.py scripts.
  • Recalculate metrics or compare checkpoints: Run evaluation on intermediate epochs (20, 40, 60) or verify pre-made .npz batches in the official TensorFlow evaluator.
  • Study architecture impact on convergence: Compare the behavior of cascaded versus joint generation using the provided logs and weights in the ablations/ folder.

Example

export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
python train.py eval --no-fp8 --no-ema --planner-cfg 1.2 --refiner-cfg 1.25
Read moreDetails
Metrics (50k samples): FID-50k = 1.430, IS = 261.6 (at guidance 1.2 / 1.25); without guidance (1 / 1) — FID-50k = 3.156, IS = 181.2.
Hardware and training: 61 hours on a single NVIDIA H100 80GB (peak consumption 68.6 GiB VRAM), Python 3.12, PyTorch 2.14.1 (CUDA 13.0), batch size 256.
Limitations: The ImageNet dataset (ILSVRC/imagenet-1k) and the frozen dinac3_96 autoencoder (assets/dinac3_96) are not included in the repository and are required separately.
Discuss Telegram 0

Will it run?

Working out the memory needs

The bot is still collecting this model's weight sizes; the estimate will appear here in a few minutes. Meanwhile you can rent a GPU with headroom.

Massed ComputeOpen Massed Compute

Run it on Massed Compute

The script downloads the model to the rented machine. How to run it is in the model card.

  1. 1. Rent a machine with a fitting GPU

    Open Massed Compute
  2. 2. Paste the script into the machine's terminal

    Connect over SSH (the Massed Compute panel shows the command) or open a terminal on the machine's desktop.

    HF_TOKEN / CIVITAI_TOKENThe script starts with token lines: paste yours between the quotes. The Hugging Face token is for gated models, the Civitai one for Civitai models.

    # well9472/inet_results
    # ===== Tokens: paste yours between the quotes =====
    export HF_TOKEN=""        # huggingface.co/settings/tokens, for gated models
    # ==========================================
    mkdir -p ~/models
    curl -LsSf https://astral.sh/uv/install.sh | sh
    source "$HOME/.local/bin/env"
    uv tool install "huggingface_hub[cli]"
    hf download well9472/inet_results --local-dir ~/models/inet_results
    # The model is in ~/models. How to run it is in the model card (link above).
    Add more LoRAs to inet_results
  3. 3. Use it

    The model is in ~/models. How to run it is in the model card (link above).

Stop the machine in the panel when you are done: it bills by the minute while it runs.

How to speed it up

Picked for this model type. Choose your hardware above to see what fits you exactly.

  • FlashAttention 44.0.0b41from November 25, 2026new release

    fastest exact attention on B200

    Kernels for Blackwell (beta). Exact attention without quantisation — fine for everything, LLMs included.

    How to enable: pip install flash-attn-4; vLLM and SGLang pick it up themselves.

    Earlier generations (2)
    • FlashAttention 3 — The Hopper (H100/H200) version with FP8.
    • FlashAttention 2 — The standard for RTX 30/40/50 and A100: exact attention without the memory cost of long contexts.
  • torch.compile2.15.0from October 28, 2026

    10–30% for free

    Compiles the model for your GPU. Slower first run, faster afterwards.

    How to enable: model = torch.compile(model); in ComfyUI the TorchCompileModel node.

Model family

New posts about versions of inet_results (quants, finetunes, LoRAs) will show up under the bell.

No known relatives of this model yet. All derivatives on Hugging Face

About the model

well9472/inet_results
Author
well9472
Category
Other
Released
Posted

On NeyroLearn

Hugging Face

00

Ask AI about this model

Answered by Gemini 4 · the chat is kept only in this tab

Comments