dot-estimate_vae_vram: Estimate peak VAE VRAM usage in bytes

.estimate_vae_vramR Documentation

Estimate peak VAE VRAM usage in bytes

Description

Rough upper bound based on the largest intermediate feature map (conv layer with ~512 channels, f32). SDXL/Flux use wider channels.

Usage

.estimate_vae_vram(width, height, model_type = "sd1", batch = 1L)

Arguments

width

Image width in pixels

height

Image height in pixels

model_type

Model type string ("sd1", "sd2", "sdxl", "flux", etc.)

batch

Batch size (default 1)

Value

Estimated peak VRAM in bytes


sd2R documentation built on March 30, 2026, 5:08 p.m.