Download methods/cache_strategy/ctrl_world_utils.py from doanh25032004/video_gen_physics_backup: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/doanh25032004/video_gen_physics_backup/resolve/main/methods/cache_strategy/ctrl_world_utils.py
- Command line
-
hf download hf://doanh25032004/video_gen_physics_backup/methods/cache_strategy/ctrl_world_utils.py
-
curl -L -o ctrl_world_utils.py https://huggingface.co/doanh25032004/video_gen_physics_backup/resolve/main/methods/cache_strategy/ctrl_world_utils.py
583 Bytes
| from __future__ import annotations | |
| CTRL_WORLD_BACKEND_FLAGS = ( | |
| "use_pisa", | |
| "use_svg", | |
| "use_radial", | |
| "use_sito", | |
| "use_itm", | |
| "use_fastercache", | |
| "use_dicache", | |
| "use_worldcache", | |
| ) | |
| def validate_ctrl_world_backend_args(args) -> None: | |
| enabled = [flag for flag in CTRL_WORLD_BACKEND_FLAGS if bool(getattr(args, flag, False))] | |
| if len(enabled) > 1: | |
| raise ValueError( | |
| "[Cache] Ctrl-World acceleration backends are mutually exclusive: " | |
| "PISA, SVG, Radial, SiTo, ITM, FasterCache, DiCache, and WorldCache." | |
| ) | |