Cosmos3 transfer (#4379)
Signed-off-by: Maciej Bala <mbala@nvidia.com> Signed-off-by: MaciejBalaNV <mbala@nvidia.com>
This commit is contained in:
1 parent
cead615288
commit
a1e1ac0155
12 files changed
+2003
-58
No files matched your search
@@ -326,6 +326,15 @@ class OmniDiffusionSamplingParams:
|
||||
|
||||
@property
|
||||
def resolved_frame_rate(self) -> float | None:
|
||||
"""Frame rate the model should run at, or ``None`` if the user did not provide one.
|
||||
|
||||
Precedence is ``frame_rate`` (the model-internal rate) over ``fps`` (the
|
||||
request/output-encoding alias). Returns ``None`` when neither was set, which is
|
||||
the model-agnostic "fps not provided" signal the video serving layer emits when
|
||||
the request omits fps. Consumers MUST treat ``None`` as "use your own default" and
|
||||
guard the read (e.g. ``req.sampling_params.resolved_frame_rate or 24.0``); never
|
||||
feed it into arithmetic unguarded.
|
||||
"""
|
||||
if self.frame_rate is not None:
|
||||
return float(self.frame_rate)
|
||||
|
||||
|
||||
Reference in new issue
Block a user