MCPcopy Create free account
hub / github.com/FunAudioLLM/ThinkSound / preprocess_conditions

Method preprocess_conditions

ThinkSound/models/mmdit.py:260–318  ·  view source on GitHub ↗

cache computations that do not depend on the latent/time step i.e., the features are reused over steps during inference

(self, clip_f: torch.Tensor, sync_f: torch.Tensor,
                              text_f: torch.Tensor, t5_features: torch.Tensor, metaclip_global_text_features: torch.Tensor)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

forwardMethod · 0.95
get_empty_conditionsMethod · 0.95

Calls 1

Tested by

no test coverage detected