MCPcopy Create free account

hub / github.com/NVIDIA/DreamDojo / functions

Functions3,821 in github.com/NVIDIA/DreamDojo

↓ 2 callersMethodframe
Return a `VideoSeqPos` view for a single frame at absolute index `t_idx`. This is useful for streaming / KV-cache inference where the model i
cosmos_predict2/_src/predict2/utils/kv_cache.py:347
↓ 2 callersFunctiongenerate_data
(counts)
cosmos_predict2/_src/imaginaire/datasets/webdataset/distributors/multi_aspect_ratio_v2_test.py:34
↓ 2 callersMethodgenerate_report
(self, iteration)
cosmos_predict2/_src/imaginaire/utils/misc.py:585
↓ 2 callersMethodgenerate_samples_from_batch
Generate samples from the batch. Based on given batch, it will automatically determine whether to generate image or video samples.
cosmos_predict2/_src/predict2/camera/models/multiview_camera_video2world_model.py:225
↓ 2 callersMethodgenerate_samples_from_batch_teacher
Generate samples from the batch. Based on given batch, it will automatically determine whether to generate image or video samples.
cosmos_predict2/_src/predict2/distill/models/video2world_model_distill_dmd2.py:739
↓ 2 callersFunctiongenerate_varlen_parameters
( query: Tensor, key: Tensor, value: Tensor, seqlens_Q: Tensor | None = None, seqlens_KV:
cosmos_predict2/_src/imaginaire/attention/varlen.py:29
↓ 2 callersMethodget
Read bytes from a given ``filepath`` with 'rb' mode in range [offset, offset + size). Args: filepath (str): Path to read data.
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/http_backend.py:53
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
cosmos_predict2/_src/predict2/action/datasets/dataset_utils.py:47
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
cosmos_predict2/_src/imaginaire/utils/dataset_utils.py:47
↓ 2 callersFunctionget_bwd_dtypes
Returns data type choices for backward pass according to arch tag (attention.utils.get_arch_tag). Parameters: arch_tag (int): Arch t
cosmos_predict2/_src/imaginaire/attention/natten/meta.py:51
↓ 2 callersMethodget_context_fn
(self)
cosmos_predict2/_src/predict2/networks/minimal_v4_dit.py:199
↓ 2 callersMethodget_cpu_time_str
Returns CPU time measurement in string format.
cosmos_predict2/_src/imaginaire/utils/timer.py:208
↓ 2 callersMethodget_cuda_time_str
Returns CUDA time measurement in string format.
cosmos_predict2/_src/imaginaire/utils/timer.py:220
↓ 2 callersMethodget_data_and_condition
(self, data_batch: dict[str, torch.Tensor])
cosmos_predict2/_src/predict2/models/text2world_model_rectified_flow.py:939
↓ 2 callersMethodget_data_and_condition
(self, data_batch: dict[str, torch.Tensor])
cosmos_predict2/_src/predict2/models/text2world_wan2pt1_model.py:530
↓ 2 callersMethodget_data_by_modality
Get the data corresponding to the modality for a trajectory by a base index. This method will call the corresponding helper method based on th
groot_dreams/data/dataset.py:875
↓ 2 callersFunctionget_dataloader
(dataset)
cosmos_predict2/_src/predict2/datasets/local_datasets/dataset_video.py:312
↓ 2 callersFunctionget_dataset
(video_paths)
cosmos_predict2/_src/predict2/datasets/local_datasets/dataset_video.py:301
↓ 2 callersFunctionget_datetime_format
()
cosmos_predict2/_src/imaginaire/utils/log.py:84
↓ 2 callersFunctionget_device_cc
Returns the compute capability of a given torch device if it's a CUDA device, otherwise returns 0. Args: device: torch device.
cosmos_predict2/_src/predict2/networks/attention.py:74
↓ 2 callersMethodget_discrete_timestamp
r"""This method map time from 0,1 to discrete steps
cosmos_predict2/_src/predict2/schedulers/rectified_flow.py:126
↓ 2 callersFunctionget_dtype_choices
Returns data type choices according to arch tag (attention.utils.get_arch_tag). Parameters: arch_tag (int): Arch tag for the current
cosmos_predict2/_src/imaginaire/attention/cudnn/cudnn_forward.py:43
↓ 2 callersMethodget_effective_iteration
(self, iteration: int)
cosmos_predict2/_src/predict2/distill/models/distillation_base_mixin.py:449
↓ 2 callersMethodget_episode_chunk
Get the chunk index for an episode index.
groot_dreams/data/dataset.py:634
↓ 2 callersFunctionget_frames_by_timestamps
Get frames from a video at specified timestamps. Args: video_path (str): Path to the video file. timestamps (list[int] | np.ndarra
groot_dreams/utils/video.py:35
↓ 2 callersFunctionget_fwd_dtypes
Returns data type choices for forward pass according to arch tag (attention.utils.get_arch_tag). Parameters: arch_tag (int): Arch ta
cosmos_predict2/_src/imaginaire/attention/natten/meta.py:29
↓ 2 callersFunctionget_image_dataloader
(dataset_name: str, object_store: str)
cosmos_predict2/_src/predict2/configs/common/defaults/dataloader.py:30
↓ 2 callersFunctionget_image_dataloader
(dataset_name: str, object_store: str)
cosmos_predict2/_src/predict2/distill/configs/defaults/dataloader.py:33
↓ 2 callersMethodget_instance
Returns a singleton instance of DeploymentEnv. The instance is created on first call and cached for subsequent calls. This e
packages/cosmos-gradio/cosmos_gradio/deployment_env.py:54
↓ 2 callersMethodget_interpolation
r""" This method computes interpolation `X_t` and their time derivatives `dotX_t` at the specified time points `t`. Note that `x_0` is
cosmos_predict2/_src/predict2/schedulers/rectified_flow.py:142
↓ 2 callersFunctionget_itemdataset_option
(name: str, text_embedding_type: str = "t5_xxl")
cosmos_predict2/_src/predict2/datasets/data_sources/item_datasets_for_validation.py:21
↓ 2 callersFunctionget_machine_format
()
cosmos_predict2/_src/imaginaire/utils/log.py:88
↓ 2 callersFunctionget_max_difference_info
Gets the maximum difference and its location in the tensor. Args: differences: Tensor containing differences. flatten: Whether to
cosmos_predict2/_src/predict2/utils/test_helper.py:68
↓ 2 callersFunctionget_message_format
()
cosmos_predict2/_src/imaginaire/utils/log.py:103
↓ 2 callersMethodget_modality_metadata
(self, key: str)
groot_dreams/data/transform/concat.py:170
↓ 2 callersMethodget_optimizers
(self, iteration: int)
cosmos_predict2/_src/predict2/distill/models/distillation_base_mixin.py:459
↓ 2 callersFunctionget_output_folder
(output_dir)
packages/cosmos-gradio/cosmos_gradio/gradio_app/util.py:21
↓ 2 callersFunctionget_outputs
(output_folder)
packages/cosmos-gradio/cosmos_gradio/gradio_app/util.py:28
↓ 2 callersMethodget_previous_checkpoint_results
Get the results of previously submitted checkpoints and pass them to callbacks if checkpoint succeeded
cosmos_predict2/_src/predict2/checkpointer/dcp.py:660
↓ 2 callersFunctionget_rank
Get the rank (GPU device) of the worker. Returns: rank (int): The rank of the worker.
cosmos_predict2/_src/reason1/utils/distributed.py:21
↓ 2 callersFunctionget_rank
Get the rank (GPU device) of the worker. Returns: rank (int): The rank of the worker.
cosmos_predict2/_src/imaginaire/utils/distributed.py:85
↓ 2 callersMethodget_scale
(self, t: Tensor, seq_len: Union[int, None] = None, offset=0)
external/lam/modules/embeddings.py:180
↓ 2 callersMethodget_seq_pos
(self, seq_len, device, dtype, offset=0)
external/lam/modules/embeddings.py:138
↓ 2 callersMethodget_seq_pos
(self, seq_len, device, dtype, offset=0)
external/lam_project/lam/modules/embeddings.py:138
↓ 2 callersMethodget_sigmas
(self, timesteps, tensor_kwargs)
cosmos_predict2/_src/predict2/schedulers/rectified_flow.py:133
↓ 2 callersMethodget_stat
(self)
cosmos_predict2/_src/predict2/callbacks/grad_clip.py:46
↓ 2 callersMethodget_state_action_dims
Get the dimension of a state or action key from the dataset metadata.
groot_dreams/data/transform/concat.py:180
↓ 2 callersMethodget_step_data
Get the RAW data for a single step in a trajectory. No transforms are applied. Args: trajectory_id (int): The name of the traject
groot_dreams/data/dataset.py:570
↓ 2 callersMethodget_text
Read data from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): T
cosmos_predict2/_src/imaginaire/utils/easy_io/file_client.py:305
↓ 2 callersMethodget_trajectory_data
Get the data for a trajectory.
groot_dreams/data/dataset.py:605
↓ 2 callersMethodget_transform
(self, mode: Literal["train", "eval"] = "train")
groot_dreams/data/transform/video.py:223
↓ 2 callersMethodget_velocity_fn_from_batch
Generates a callable function `velocity_fn` based on the provided data batch and guidance factor. This function first processes the
cosmos_predict2/_src/predict2/models/text2world_model_rectified_flow.py:463
↓ 2 callersFunctionget_video_dataloader
(dataset_name: str, object_store: str)
cosmos_predict2/_src/predict2/configs/common/defaults/dataloader.py:48
↓ 2 callersFunctionget_video_dataloader
(dataset_name: str, object_store: str)
cosmos_predict2/_src/predict2/distill/configs/defaults/dataloader.py:51
↓ 2 callersFunctionget_video_filepaths
Get a list of filepaths for all videos in the input directory.
cosmos_predict2/_src/imaginaire/auxiliary/guardrail/common/io_utils.py:32
↓ 2 callersMethodget_video_path
(self, trajectory_id: int, key: str)
groot_dreams/data/dataset.py:685
↓ 2 callersFunctionhandle_tyro_exception
(exception: Exception)
cosmos_predict2/config.py:96
↓ 2 callersFunctionidx2crd
(index, shape)
cosmos_predict2/_src/imaginaire/attention/tests/multi_dim_test.py:195
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
cosmos_predict2/_src/predict2/models/fm_solvers_unipc.py:603
↓ 2 callersMethodinfer
(self, args: dict)
packages/cosmos-gradio/sample/sample_worker.py:44
↓ 2 callersMethodinfer_client
Infer a suitable file client based on the URI and arguments. Args: file_client_args (dict, optional): Arguments to instantiate a
cosmos_predict2/_src/imaginaire/utils/easy_io/file_client.py:167
↓ 2 callersFunctioninference
Run action-conditioned video generation inference using resolved setup and per-run arguments.
cosmos_predict2/action_conditioned.py:210
↓ 2 callersFunctioninit_mesh
(model_config)
cosmos_predict2/_src/reason1/models/vlm_base.py:511
↓ 2 callersMethodinit_optimizer_scheduler
Creates the optimizer and scheduler for the model. Args: config_model (ModelConfig): The config object for the model. Re
cosmos_predict2/_src/imaginaire/model.py:38
↓ 2 callersMethodinit_path
Initialize and validate S3 path.
cosmos_predict2/_src/imaginaire/checkpointer/s3_filesystem.py:178
↓ 2 callersMethodinit_weights
(self)
cosmos_predict2/_src/predict2/distill/networks/discriminator.py:119
↓ 2 callersMethodinit_weights
(self, buffer_device: Optional[torch.device] = None)
cosmos_predict2/_src/reason1/networks/qwen2_vl.py:317
↓ 2 callersMethodinitialize
(self)
cosmos_predict2/_src/imaginaire/utils/misc.py:558
↓ 2 callersMethodinvert
Inverse of quaternion(s). Equivalent to conjugate of quaternion. For unit quaternions, the inverse equals the conjugate. For non-unit quatern
cosmos_predict2/_src/imaginaire/modules/camera.py:619
↓ 2 callersFunctionis_backend_compatible
Input validation function a specified backend. Runs the common and backend-specific checks. Returns False if any checks fail, otherwise True.
cosmos_predict2/_src/imaginaire/attention/backends.py:48
↓ 2 callersFunctionis_multi_dim_backend_compatible
Input validation function a specified multi-dimensional backend. Runs the common and backend-specific checks. Returns False if any checks fai
cosmos_predict2/_src/imaginaire/attention/backends.py:231
↓ 2 callersFunctionis_rank0
()
packages/cosmos-oss/cosmos_oss/init.py:35
↓ 2 callersMethodis_rotation_key
(self, key: str)
groot_dreams/data/transform/concat.py:187
↓ 2 callersMethodis_safe_frames
Check if the video frames are safe.
cosmos_predict2/_src/imaginaire/auxiliary/guardrail/video_content_safety_filter/video_content_safety_filter.py:115
↓ 2 callersFunctionis_verbose
Check if verbose mode is enabled via VERBOSE environment variable.
packages/cosmos-oss/vqa/utils.py:22
↓ 2 callersMethodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/local_backend.py:165
↓ 2 callersMethodisfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns:
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_backend.py:271
↓ 2 callersMethodkeys_to_resume_during_load
(self)
cosmos_predict2/_src/predict2/distill/checkpointer/dcp.py:456
↓ 2 callersFunctionlin2srgb
Convert sRGB values to physically linear ones. The transformation is uniform in RGB, so *srgb* can be of any shape. *srgb* values should rang
cosmos_predict2/_src/imaginaire/utils/tone_curve.py:23
↓ 2 callersMethodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: Most object stores have no concept
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/msc_backend.py:804
↓ 2 callersFunctionload_and_compare
( model, optimizer, scheduler, grad_scaler, checkpointer: Checkpointer, original_model
cosmos_predict2/_src/imaginaire/checkpointer/ddp_test.py:117
↓ 2 callersFunctionload_callable
(name: str)
cosmos_predict2/_src/imaginaire/serialization.py:60
↓ 2 callersMethodload_ckpt_to_net
For loading pretrained teacher net weights
cosmos_predict2/_src/predict2/distill/models/distillation_base_mixin.py:278
↓ 2 callersFunctionload_experiment_config
Load experiment configuration from YAML file and merge with default Python configuration. Args: experiment_name: Name of the exp
cosmos_predict2/experiments/base/action.py:29
↓ 2 callersFunctionload_model
(model, pretrained_path, load_to_cpu)
cosmos_predict2/_src/imaginaire/auxiliary/guardrail/face_blur_filter/retinaface_utils.py:102
↓ 2 callersFunctionload_state_dict
(file_path, torch_dtype=None, s3_credential_path=None)
cosmos_predict2/_src/predict2/models/utils.py:83
↓ 2 callersMethodload_state_dict
(self, state_dict: Dict[str, Any])
cosmos_predict2/_src/predict2/distill/checkpointer/dcp.py:306
↓ 2 callersMethodload_state_dict
(self, state_dict: Mapping[str, Any], strict: bool = True, assign: bool = False)
cosmos_predict2/_src/predict2/distill/models/distillation_base_mixin.py:855
↓ 2 callersMethodload_state_dict
(self, state_dict)
cosmos_predict2/_src/reason1/utils/fused_adam.py:373
↓ 2 callersFunctionlocate
Locate and return an object ``x`` using an input string ``{x.__module__}.{x.__qualname__}``, such as "module.submodule.class_name". Rais
cosmos_predict2/_src/imaginaire/lazy_config/registry.py:54
↓ 2 callersMethodlog_images
(self, batch: Dict, outputs: Dict, split: str)
external/lam/model.py:135
↓ 2 callersMethodlog_images
(self, batch: Dict, outputs: Dict, split: str)
external/lam_project/lam/model.py:139
↓ 2 callersFunctionlog_video_tensor
Log a video tensor in shape [B, C, T, H, W] with values in [-1, 1].
cosmos_predict2/_src/predict2/interactive/callbacks/wandb.py:21
↓ 2 callersMethodlookup
(self, entry, fallback=True, default=None)
cosmos_predict2/_src/imaginaire/utils/registry.py:60
↓ 2 callersFunctionmake_config
()
cosmos_predict2/_src/predict2/configs/text2world/config.py:61
↓ 2 callersFunctionmake_network_kv_cache
Wrap attention with KV cache support and initialize caches. Each block's self-attention op is wrapped by `AttentionOpWithKVCache`, which adds
cosmos_predict2/_src/predict2/interactive/networks/utils.py:203
↓ 2 callersMethodmarginal_prob
This is trivial in the base class, but may be used by derived classes in a more interesting way
cosmos_predict2/_src/imaginaire/modules/edm_sde.py:41
↓ 2 callersFunctionmaybe_enable_memory_snapshot
(config, *, global_step: int = 0)
cosmos_predict2/_src/imaginaire/utils/profiling.py:89
↓ 2 callersFunctionmaybe_enable_profiling
(config, *, global_step: int = 0)
cosmos_predict2/_src/imaginaire/utils/profiling.py:36
↓ 2 callersMethodmean_normalize
Mean normalize a tensor by subtracting the mean and dividing by the standard deviation. Args: tensor (torch.tensor): The ten
cosmos_predict2/_src/predict2/text_encoders/text_encoder.py:119
← previousnext →601–700 of 3,821, ranked by callers