memory_used=(2078*pixel_samples.shape[2]*pixel_samples.shape[3])*1.4#NOTE: this constant along with the one in the decode above are estimated from the mem usage for the VAE and could change.
memory_used=(2078*pixel_samples.shape[2]*pixel_samples.shape[3])*1.7#NOTE: this constant along with the one in the decode above are estimated from the mem usage for the VAE and could change.