MCPcopy Create free account

hub / github.com/NVIDIA/DreamDojo / functions

Functions3,821 in github.com/NVIDIA/DreamDojo

↓ 2 callersMethod_normalize_video_databatch_inplace
Normalizes video data in-place on a CUDA device to reduce data loading overhead. This function modifies the video data tensor within
cosmos_predict2/_src/predict2/models/text2world_wan2pt1_model.py:544
↓ 2 callersFunction_obtain_embeddings
r"""Function for obtaining text embeddings and text mask. Args: cfg (dict): Config dict embeddings_captions (np.ndarray): Caption
cosmos_predict2/_src/imaginaire/datasets/augmentors/v3_text_transforms.py:65
↓ 2 callersFunction_parse_gpus_marker
(mark: pytest.Mark)
conftest.py:142
↓ 2 callersFunction_parse_gpus_marker
(mark: pytest.Mark)
packages/cosmos-oss/conftest.py:142
↓ 2 callersMethod_prepare_4d_causal_attention_mask_with_cache_position
Creates a causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_l
cosmos_predict2/_src/reason1/networks/qwen2_5_vl.py:1429
↓ 2 callersMethod_prepare_data_batch
( self, video_b_c_t_h_w: torch.Tensor, actions_np: np.ndarray, fps: float,
cosmos_predict2/_src/predict2/interactive/inference/action_video2world.py:375
↓ 2 callersFunction_random_package_name
(filename)
cosmos_predict2/_src/imaginaire/lazy_config/lazy.py:160
↓ 2 callersFunction_register_backend
Register a backend. Args: name (str): The name of the registered backend. backend (BaseStorageBackend): The backend class to be r
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/registry_utils.py:28
↓ 2 callersMethod_register_backend
(cls, name, backend, force=False, prefixes=None)
cosmos_predict2/_src/imaginaire/utils/easy_io/file_client.py:197
↓ 2 callersFunction_remove_prefix
Old version of the model is stored with all names of parameters sharing common prefix 'module.
cosmos_predict2/_src/imaginaire/auxiliary/guardrail/face_blur_filter/retinaface_utils.py:91
↓ 2 callersFunction_reset_everything
()
cosmos_predict2/_src/imaginaire/attention/tests/sdpa_test.py:82
↓ 2 callersFunction_reset_everything
()
cosmos_predict2/_src/imaginaire/attention/tests/multi_dim_test.py:48
↓ 2 callersFunction_reset_everything
()
cosmos_predict2/_src/imaginaire/attention/tests/varlen_test.py:73
↓ 2 callersFunction_reshape_viz_batch_img
Reshapes a batch of images for visualization, organizing them into a grid format. Args: img_data (torch.Tensor | np.ndarray): The im
cosmos_predict2/_src/imaginaire/visualize/img.py:37
↓ 2 callersMethod_run_single_chunk
Run a single chunk of generation. Returns (latents, video). Args: cond_frames: Conditioning frames, shape ``[B, C, T, H, W]`` (ui
cosmos_predict2/_src/predict2/interactive/inference/action_video2world_teleop.py:353
↓ 2 callersMethod_test_module
( self, batch: int, seqlens_Q: list[int], seqlens_KV: list[int], num_h
cosmos_predict2/_src/imaginaire/attention/tests/torch_compile_test.py:128
↓ 2 callersMethod_threshold_sample
"Dynamic thresholding: At each sampling step we set s to a certain percentile absolute pixel value in xt0 (the prediction of x_0 at t
cosmos_predict2/_src/predict2/models/fm_solvers_unipc.py:222
↓ 2 callersFunction_to_dict_value
(x: T, field_type: type, metadata: dict, field_name: str = "")
cosmos_predict2/_src/imaginaire/serialization.py:103
↓ 2 callersMethod_to_pct
(self, memory)
cosmos_predict2/_src/reason1/parallelisms/metrics.py:65
↓ 2 callersFunction_transform
Create a transformation pipeline for preprocessing images. Args: n_px (int): The desired size of the transformed image. Returns
cosmos_predict2/_src/imaginaire/modules/image_embeddings.py:635
↓ 2 callersFunction_universal_attention_checks
( query: Tensor, key: Tensor, value: Tensor, supported_dtypes_forward: list[torch.dtype] | Non
cosmos_predict2/_src/imaginaire/attention/checks.py:63
↓ 2 callersMethod_update_train_stats
(self, data_batch: dict[str, torch.Tensor])
cosmos_predict2/_src/predict2/models/text2world_model.py:447
↓ 2 callersMethod_validate_interpolation
(cls, interpolation: str)
groot_dreams/data/transform/video.py:206
↓ 2 callersFunction_validate_py_syntax
(filename)
cosmos_predict2/_src/imaginaire/lazy_config/lazy.py:137
↓ 2 callersFunction_view_file_dropdown
( value: str | None | list[str | int | float] = None, output_dir: str | None = None )
packages/cosmos-gradio/cosmos_gradio/gradio_app/gradio_file_server.py:211
↓ 2 callersMethodadd_lora
Add LoRA (Low-Rank Adaptation) adapters to `self.net`. This function injects LoRA adapters into specified modules of the network, ena
cosmos_predict2/_src/predict2/models/text2world_model_rectified_flow.py:1173
↓ 2 callersFunctionall_gather_tensor
Gather the corresponding tensor from all GPU devices to a list. Args: tensor (torch.Tensor): Pytorch tensor. Returns: tensor
cosmos_predict2/_src/imaginaire/utils/distributed.py:313
↓ 2 callersFunctionapply_rotary_pos_emb_flashatt
(tensor: torch.Tensor, freqs: torch.Tensor)
cosmos_predict2/_src/reason1/networks/qwen2_5_vl.py:254
↓ 2 callersFunctionapply_rotary_pos_emb_vision
(tensor: torch.Tensor, freqs: torch.Tensor)
cosmos_predict2/_src/reason1/networks/qwen2_5_vl.py:295
↓ 2 callersMethodbackward_simulation
Performs the backward (denoising) process with the student net to get the noisy examples x_t'. See Sec. 4.5 of https://arxiv.org/pdf/
cosmos_predict2/_src/predict2/distill/models/video2world_model_distill_dmd2.py:151
↓ 2 callersMethodbroadcast
Broadcast non-blocking a task to all workers.
packages/cosmos-gradio/cosmos_gradio/model_ipc/command_ipc.py:46
↓ 2 callersMethodbroadcast
(self, process_group: torch.distributed.ProcessGroup)
cosmos_predict2/_src/predict2/camera/configs/multiview_camera/conditioner.py:70
↓ 2 callersFunctionbroadcast_object
Broadcast a string to all ranks.
cosmos_predict2/_src/reason1/models/vlm_base.py:500
↓ 2 callersMethodbuild_dataset
r""" Build the dataset object. The function only diffs from BaseDataset.build_dataset by only adding the decoder_handler to the WebDat
cosmos_predict2/_src/predict2/datasets/webdataset.py:53
↓ 2 callersFunctionbuild_lr_schedulers
(optimizers: OptimizersContainer, job_config: FSDP2ModelConfig)
cosmos_predict2/_src/reason1/parallelisms/optimizer.py:310
↓ 2 callersMethodbuild_mesh
(self, device_type)
cosmos_predict2/_src/reason1/parallelisms/parallel_dims.py:64
↓ 2 callersMethodbuild_net
(self, keep_on_cpu: bool = False)
cosmos_predict2/_src/predict2/models/text2world_model_rectified_flow.py:211
↓ 2 callersMethodbuild_net
(self)
cosmos_predict2/_src/predict2/models/text2world_model.py:210
↓ 2 callersMethodbuild_net
(self)
cosmos_predict2/_src/predict2/models/text2world_wan2pt1_model.py:161
↓ 2 callersFunctionbuild_optimizers
Wrap one optimizer per model part in an OptimizersContainer which provides a single step() and zero_grad() method for all the child optimizers.
cosmos_predict2/_src/reason1/parallelisms/optimizer.py:164
↓ 2 callersFunctioncache_text_encoder_checkpoint
Cache text encoder checkpoint from S3 to local disk. Args: s3_ckpt_path: S3 path to the text encoder checkpoint cache_dir: L
cosmos_predict2/_src/predict2/distill/utils/text_encoder_cache.py:26
↓ 2 callersFunctioncalculate_dataset_statistics
Calculate the dataset statistics of all columns for a list of parquet files.
groot_dreams/data/dataset.py:33
↓ 2 callersFunctioncalculate_indices
Calculate the start and end indices for a given rank in a distributed setting. Args: dataset_length (int): The total length of the d
cosmos_predict2/_src/predict2/datasets/item_dataset.py:413
↓ 2 callersMethodcensor_prompt
Censor the prompt using the blocklist with better-profanity fuzzy matching. Args: input_prompt: input prompt to censor R
cosmos_predict2/_src/imaginaire/auxiliary/guardrail/blocklist/blocklist.py:77
↓ 2 callersFunctioncheck_packages
(package_list, success_status=True)
packages/cosmos-oss/scripts/check_environment.py:65
↓ 2 callersFunctioncheck_packages
(package_list, success_status=True)
scripts/check_environment.py:65
↓ 2 callersFunctionchoose_natten_multi_dim_backend
Chooses an FNA backend in NATTEN (cutlass-fna, hopper-fna, blackwell-fna) for the current use case based on features needed and current GPU a
cosmos_predict2/_src/imaginaire/attention/natten/checks.py:278
↓ 2 callersMethodcleanup
Clean up distributed resources.
cosmos_predict2/_src/predict2/action/inference/inference_pipeline.py:355
↓ 2 callersMethodcleanup
(self)
cosmos_predict2/_src/predict2/interactive/inference/action_video2world.py:635
↓ 2 callersFunctioncleanup_environment
Clean up environment.
packages/cosmos-oss/cosmos_oss/init.py:163
↓ 2 callersFunctioncomposite
Composite the samples to render the corresponding pixels. Args: quantities (torch.Tensor [...,samples,channels]): The quantity to compute
cosmos_predict2/_src/imaginaire/modules/volume_render.py:106
↓ 2 callersMethodcompute_qkv
(self, x, context=None, rope_emb=None)
cosmos_predict2/_src/predict2/networks/minimal_v4_dit.py:513
↓ 2 callersMethodcompute_qkv
(self, x, context=None, rope_emb=None)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera.py:400
↓ 2 callersMethodcompute_qkv
(self, x, context=None, rope_emb=None)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera_ar.py:401
↓ 2 callersMethodcontains
Checks if the specified object exists in the S3 bucket with retry logic for errors. Args: filepath (str): The s3 path of
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_client.py:476
↓ 2 callersFunctionconvert_checkpoint
(checkpoint_iter_dir: Path)
examples/action_conditioned.py:43
↓ 2 callersMethodcopytree
Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. Args:
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/msc_backend.py:514
↓ 2 callersFunctioncount_conv3d
(model)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:461
↓ 2 callersFunctioncount_conv3d
(model)
cosmos_predict2/_src/predict2/tokenizers/wan2pt2.py:675
↓ 2 callersMethodcreate_empty_state
Create a fresh empty KV cache state for a single layer. Returns a ``(k_cache, v_cache)`` tuple of None-filled lists, suitable for pas
cosmos_predict2/_src/predict2/utils/kv_cache.py:119
↓ 2 callersFunctioncreate_worker_pipeline
(factory_module, factory_function)
packages/cosmos-gradio/cosmos_gradio/model_ipc/model_worker.py:26
↓ 2 callersMethoddebug_print
(cls)
cosmos_predict2/_src/imaginaire/utils/validator_params.py:174
↓ 2 callersMethoddecode
(self, zs, clear_decoder_cache=True)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:838
↓ 2 callersMethoddenoise
Performs denoising on the input noise data, noise level, and condition Args: xt (torch.Tensor): The input noise data.
cosmos_predict2/_src/predict2/action/models/action_conditioned_video2world_model.py:161
↓ 2 callersMethoddenoise
Args: xt (torch.Tensor): The input noise data. sigma (torch.Tensor): The noise level. condition (Text2Wor
cosmos_predict2/_src/predict2/action/models/action_conditioned_video2world_rectified_flow_model.py:174
↓ 2 callersMethoddenoise
Performs denoising on the input noise data, noise level, and condition Args: xt (torch.Tensor): The input noise data.
cosmos_predict2/_src/predict2/models/text2world_wan2pt1_model.py:677
↓ 2 callersMethoddenoise
Args: xt (torch.Tensor): The input noise data. sigma (torch.Tensor): The noise level. condition (Text2Wor
cosmos_predict2/_src/predict2/models/video2world_model_rectified_flow.py:77
↓ 2 callersMethoddenoise_edm_seq
Denoise one step with EDM preconditioning. When ``kv_states`` is not None (stateless KV cache mode), returns ``(x0_pred, new_kv_state
cosmos_predict2/_src/predict2/interactive/models/action_video2world_self_forcing.py:180
↓ 2 callersMethoddenoise_teacher
Performs denoising on the input noise data, noise level, and condition Args: xt (torch.Tensor): The input noise data.
cosmos_predict2/_src/predict2/distill/models/video2world_model_distill_dmd2.py:584
↓ 2 callersMethoddenoise_with_velocity
This function is used when self.config.use_flowunipc_scheduler is set.
cosmos_predict2/_src/predict2/models/video2world_model.py:151
↓ 2 callersMethoddisable_context_parallel
(self)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera.py:508
↓ 2 callersMethoddisable_context_parallel
(self)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera_ar.py:509
↓ 2 callersMethoddisplay
Display current frame. Returns False if window is closed. Call this in main loop.
cosmos_predict2/_src/predict2/interactive/inference/action_video2world_teleop.py:198
↓ 2 callersFunctiondist_reduce
(x: torch.Tensor, reduceOp: str, mesh: DeviceMesh)
cosmos_predict2/_src/reason1/parallelisms/torchtitan_utilts.py:51
↓ 2 callersFunctiondistributed_init
Wrap the distributed initialization, used for telemetry and timers
cosmos_predict2/_src/imaginaire/utils/context_managers.py:47
↓ 2 callersMethoddraw_training_time_D
(self, x0_size: Tuple[int, ...], condition: Any)
cosmos_predict2/_src/predict2/distill/models/distillation_base_mixin.py:984
↓ 2 callersMethoddtype
(self)
cosmos_predict2/_src/imaginaire/modules/image_embeddings.py:436
↓ 2 callersMethodema_beta
Calculate the beta value for EMA update. weights = weights * beta + (1 - beta) * new_weights Args: iteration (in
cosmos_predict2/_src/predict2/models/text2world_model.py:853
↓ 2 callersMethodenable_context_parallel
(self, process_group: ProcessGroup)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera.py:505
↓ 2 callersMethodenable_context_parallel
(self, process_group: ProcessGroup)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera_ar.py:506
↓ 2 callersFunctionenable_distributed
()
packages/cosmos-oss/cosmos_oss/init.py:31
↓ 2 callersMethodencode
(self, x, scale, clear_encoder_cache=True)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:504
↓ 2 callersMethodencode
(self, x, scale)
cosmos_predict2/_src/predict2/tokenizers/wan2pt2.py:733
↓ 2 callersFunctioneuler2rotm
Euler angle (ZYX) to rotation matrix.
cosmos_predict2/_src/imaginaire/utils/dataset_utils.py:128
↓ 2 callersFunctionevaluate_success_rate
Evaluate the success rate from a VQA results JSON file. Args: output_path: Path to the JSON output file threshold: Success t
packages/cosmos-oss/vqa/evaluator.py:316
↓ 2 callersFunctionextract_cr1_embedding
Ensure CR1 embeddings are available at the specified path. For INTERNAL builds, verifies the file exists and raises an error if not. For
cosmos_predict2/_src/predict2/interactive/datasets/utils.py:28
↓ 2 callersMethodextrinsic_matrices_to_params
Convert world2cam extrinsic matrix/matrices [R|t] to (x,y,z,w, tx,ty,tz). Args: cam_pose (torch.Tensor/np.ndarray [...,3,4]): Wor
cosmos_predict2/_src/imaginaire/modules/camera.py:451
↓ 2 callersFunctionfile_server_components
Gradio component that allows users to upload files, browse uploads, and view file contents. Args: upload_dir (str): The directory to
packages/cosmos-gradio/cosmos_gradio/gradio_app/gradio_file_server.py:306
↓ 2 callersFunctionfilter_video_files
(file_names: List, xdof: bool = False)
groot_dreams/data/dataset_video.py:20
↓ 2 callersMethodfinalize
Finalize the checkpointer.
cosmos_predict2/_src/imaginaire/utils/checkpointer.py:294
↓ 2 callersMethodfinalize
Finalize the checkpointer.
cosmos_predict2/_src/imaginaire/checkpointer/base.py:138
↓ 2 callersMethodfind_in_interval
(self, n)
cosmos_predict2/_src/imaginaire/functional/lr_scheduler.py:129
↓ 2 callersFunctionformat_time
Format time in nanoseconds based on desired unit.
cosmos_predict2/_src/imaginaire/utils/timer.py:65
↓ 2 callersFunctionformat_time_str
Automatically format time in nanoseconds either automatically or based on desired unit.
cosmos_predict2/_src/imaginaire/utils/timer.py:45
↓ 2 callersMethodforward
(self, x: torch.Tensor)
groot_dreams/data/transform/state_action.py:92
↓ 2 callersMethodforward
(self, x)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:498
↓ 2 callersMethodforward
(self, x: torch.Tensor, first_chunk=False)
cosmos_predict2/_src/predict2/tokenizers/wan2pt2.py:361
↓ 2 callersMethodforward
(self, x)
cosmos_predict2/_src/predict2/networks/clip.py:95
↓ 2 callersMethodforward
r""" Args: x(Tensor): Shape [B, L1, C] e(Tensor): Shape [B, C]
cosmos_predict2/_src/predict2/networks/wan2pt1.py:601
↓ 2 callersMethodforward
(self, data_batch: dict[str, torch.Tensor])
cosmos_predict2/_src/predict2/models/text2world_model_rectified_flow.py:856
← previousnext →501–600 of 3,821, ranked by callers