Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/data/parameterMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@ export const PARAMETER_METADATA: Record<string, ParameterMetadata> = {
vaeType: {
label: "VAE:",
tooltip:
"VAE type to use for encoding/decoding. 'wan' is the full VAE with best quality. 'lightvae' is 75% pruned for faster performance but lower quality.",
"VAE type to use for encoding/decoding. 'wan' is the full VAE with best quality. 'lightvae' is 75% pruned for faster performance but lower quality. 'tae' is a tiny autoencoder for fast preview quality.",
},
};
5 changes: 4 additions & 1 deletion src/scope/core/pipelines/wan2_1/vae/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@

from functools import partial

from .tae import TAEWrapper
from .wan import WanVAEWrapper

# Registry mapping type names to VAE factory functions
# UI dropdowns will use these keys
VAE_REGISTRY: dict[str, type] = {
"wan": WanVAEWrapper,
"lightvae": partial(WanVAEWrapper, use_lightvae=True),
"tae": TAEWrapper,
}

DEFAULT_VAE_TYPE = "wan"
Expand All @@ -38,7 +40,7 @@ def create_vae(
model_name: str = "Wan2.1-T2V-1.3B",
vae_type: str | None = None,
vae_path: str | None = None,
) -> WanVAEWrapper:
) -> WanVAEWrapper | TAEWrapper:
"""Create VAE instance by type.

Args:
Expand Down Expand Up @@ -74,6 +76,7 @@ def list_vae_types() -> list[str]:

__all__ = [
"WanVAEWrapper",
"TAEWrapper",
"create_vae",
"list_vae_types",
"VAE_REGISTRY",
Expand Down
Loading