fixed latent encoder behavior based on control type
fixed latent encoder behavior based on control type
fixed latent encoder behavior based on control type
Fixes for VAE logic and 2B ControlNets, and speed up model loading by loading ControlNets to CUDA if available
minor changes to image saving and controlnet loading
Ruff ci (#194) * apply ruff * rename * specify ruff version for CI * also check imports * check formatting