This is the ComfyUI repo. What's the receptive field radius of SDXL VAE?
- User
This is the ComfyUI repo. What's the receptive field radius of SDXL VAE?
Assistant
217×217 pixels (radius: 108 pixels)
The SDXL VAE uses the same KL-f8 autoencoder architecture as SD 1.5/2.1. Based on the architecture defined in
comfy/ldm/modules/diffusionmodules/model.py:- 4 resolution levels (ch_mult=[1,2,4,4])
- 2 ResnetBlocks per level (each with 2× 3×3 convs)
- 3 downsamples (stride=2 with 3×3 conv)
- 2 middle blocks + conv_in/out layers
The calculation follows: RF = 1 + Σ(kernel_size-1) × stride_product at each layer, yielding a 217×217 pixel receptive field with a radius of 108 pixels.
- User
What's the receptive field radius of Flux 1 VAE?
Assistant
217×217 pixels (radius: 108 pixels)
Flux 1 uses the same KL-f8 autoencoder architecture as SD 1.5/2.1/SDXL, configured in
comfy/sd.py:528-549. The architecture uses:ch_mult = [1, 2, 4, 4](4 resolution levels)num_res_blocks = 2per level- 3 downsamples with stride=2
The only difference from SDXL is that Flux has 16 latent channels instead of 4 (
latent_channels = 16incomfy/latent_formats.py:154), but this doesn't affect the receptive field since it only changes the channel dimension, not the spatial architecture.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.