FoundationVision / VAR

[NeurIPS 2024 Oral][GPT beats diffusion🔥] [scaling laws in visual generation📈] Official impl. of "Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction". An *ultra-simple, user-friendly yet state-of-the-art* codebase for autoregressive image generation!
MIT License
4.3k stars 316 forks source link

move compute condition out of loop in inference #40

Closed FEIFEIEIAr closed 6 months ago

FEIFEIEIAr commented 7 months ago

Move compute condition out of the autoregressive loop in inference. The condition (cond_BD) does not change during the autoregressive process, so it's more logical and maybe faster to move it out.