(config: Dict[str, Any])
| 249 | |
| 250 | |
| 251 | def get_vae_parallel(config: Dict[str, Any]): |
| 252 | if isinstance(config.get("parallel", False), bool): |
| 253 | return config.get("parallel", False) |
| 254 | if isinstance(config.get("parallel", False), dict): |
| 255 | return config.get("parallel", {}).get("vae_parallel", True) |
| 256 | return False |
| 257 | |
| 258 | |
| 259 | def load_wan_vae_encoder(config: Dict[str, Any]): |
no test coverage detected