mstar.model.waypoint.components.taehv#
Functions
|
Pure decoder initialization or steady-state step. |
|
The nine fixed MemBlock input shapes for one decoder request. |
|
Encode one fixed four-frame RGB clip into one latent tensor. |
|
|
|
|
|
Load the shared weights module from a resolved local checkpoint. |
|
|
|
Validate the fixed architecture the captured functional path supports. |
Classes
|
One streaming session: this request's frames, in order. |
- class mstar.model.waypoint.components.taehv.ChunkedStreamingTAEHV(ae_model, auto_aspect_ratio=True, device=None, dtype=torch.bfloat16, height=None, width=None)[source]#
Bases:
objectOne streaming session: this request’s frames, in order.
The order-dependent state lives here;
ae_modelis shared and never mutated, so a fresh instance is the reference’sreset(). Not annn.Module: the module tree would givestate_dict(),to()and the weight loader a second path to the same parameters.- Parameters:
- decode(latent)[source]#
One latent
[B, C, h, w]->[t_upscale, H, W, 3]uint8.Single-use and order-dependent: the temporal memory advances per call, so a latent decoded twice, out of turn or not at all shifts every frame after it, silently. The first call primes that memory with
frames_to_trimextra feeds, which is why the prime walk decodes.
- mstar.model.waypoint.components.taehv.decode_latent(ae_model, latent, histories, *, output_size, initialize)[source]#
Pure decoder initialization or steady-state step.
Initialization reproduces
ChunkedStreamingTAEHV.decodeexactly: the seed latent is fedframes_to_trimextra times, those reconstructed clips are discarded, and a final feed advances the state through the seed frame. The caller intentionally emits none of those frames.
- mstar.model.waypoint.components.taehv.decoder_history_shapes(ae_model, *, batch_size, latent_height, latent_width)[source]#
The nine fixed MemBlock input shapes for one decoder request.
- mstar.model.waypoint.components.taehv.encode_seed_clip(ae_model, frames, *, output_size)[source]#
Encode one fixed four-frame RGB clip into one latent tensor.
The operation is pure with respect to
ae_model: only its parameters are read, and every temporal history is created and consumed within this call.
- mstar.model.waypoint.components.taehv.load_taehv(ae_uri, cache_dir=None)[source]#
Load the shared weights module from a resolved local checkpoint.
Hub resolution belongs to
checkpoint.resolve_taehv_checkpoint, so only the required file is downloaded.cache_diris accepted for compatibility with existing callers but is unused here.