Anima model (based on Cosmos architecture) requires latent space dimensions to be divisible by spatial_patch_size=2. Since VAE scales down by 8x, pixel dimensions must be divisible by 8*2=16. Changes: - Update round_to default from 8 to 16 in config.py and anima_executor.py - Add align_dimension() function to align user-provided width/height - Apply alignment to directly specified width/height (not just aspect_ratio) - Update schema descriptions to document 16-multiple requirement
5 lines
272 B
Python
5 lines
272 B
Python
from .anima_executor import AnimaExecutor, build_anima_positive_text, estimate_size_from_ratio, align_dimension
|
|
from .config import AnimaToolConfig
|
|
|
|
__all__ = ["AnimaExecutor", "AnimaToolConfig", "build_anima_positive_text", "estimate_size_from_ratio", "align_dimension"]
|