MCPcopy Create free account

hub / github.com/OpenDriveLab/ReSim / functions

Functions2,541 in github.com/OpenDriveLab/ReSim

↓ 1 callersFunctionpack_one
(t, pattern)
sat/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:30
↓ 1 callersFunctionpad_last_frame
(tensor, num_frames)
sat/data_utils.py:90
↓ 1 callersFunctionpair
(t)
sat/sgm/modules/autoencoding/magvit2_pytorch.py:56
↓ 1 callersFunctionparse_huggingface_path
(path)
SwissArmyTransformer/sat/data_utils/hf_dataset.py:12
↓ 1 callersMethodpatchify
imgs: (N, 3, H, W) x: (N, L, patch_size**2 *3)
SwissArmyTransformer/examples/mae/models_mae.py:97
↓ 1 callersFunctionplot_gt
(im, labels, bboxes_scaled, output_dir)
SwissArmyTransformer/examples/yolos/infer_util.py:62
↓ 1 callersFunctionplot_results
(cv2_img, prob, boxes, output_dir)
SwissArmyTransformer/examples/yolos/infer_util.py:106
↓ 1 callersMethodpossibly_quantize_c_noise
(self, c_noise)
sat/sgm/modules/diffusionmodules/denoiser.py:19
↓ 1 callersMethodpossibly_quantize_sigma
(self, sigma)
sat/sgm/modules/diffusionmodules/denoiser.py:16
↓ 1 callersFunctionprint_args
Print arguments.
SwissArmyTransformer/sat/training/utils.py:52
↓ 1 callersFunctionprint_parser
(parser, help_width=32)
SwissArmyTransformer/sat/helpers.py:17
↓ 1 callersFunctionprocess_config_to_args
Fetch args from only --base
sat/arguments.py:289
↓ 1 callersFunctionprocess_response
(output, history)
SwissArmyTransformer/examples/chatglm3/chat_sat.py:10
↓ 1 callersFunctionprocess_response
(response)
SwissArmyTransformer/examples/chatglm/chat_sat.py:55
↓ 1 callersMethodprocess_response
(self, response)
SwissArmyTransformer/examples/chatglm/chat_model.py:150
↓ 1 callersMethodprocess_response
(self, response)
SwissArmyTransformer/examples/chatglm2/chat_model.py:150
↓ 1 callersFunctionpytorch_worker_info
Return node and worker info for PyTorch and some distributed environments.
SwissArmyTransformer/sat/data_utils/webds.py:20
↓ 1 callersFunctionpytorch_worker_info
Return node and worker info for PyTorch and some distributed environments.
sat/sgm/webds.py:17
↓ 1 callersFunctionpytorch_worker_seed
Compute a distinct, deterministic RNG seed for each worker and node.
SwissArmyTransformer/sat/data_utils/webds.py:48
↓ 1 callersFunctionpytorch_worker_seed
Compute a distinct, deterministic RNG seed for each worker and node.
sat/sgm/webds.py:45
↓ 1 callersFunctionquantize
Replace fp16 linear with quantized linear
SwissArmyTransformer/sat/quantization/kernels.py:237
↓ 1 callersMethodquantize
Quantizes z, returns quantized zhat, same shape as z.
sat/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:98
↓ 1 callersMethodrandom_masking
Perform per-sample random masking by per-sample shuffling. Per-sample shuffling is done by argsort random noise. x: [N, L, D]
SwissArmyTransformer/examples/mae/models_mae.py:125
↓ 1 callersMethodrandom_masking
Perform per-sample random masking by per-sample shuffling. Per-sample shuffling is done by argsort random noise. x: [N, L, D]
SwissArmyTransformer/sat/model/official/mae_model.py:57
↓ 1 callersMethodread_img
(self, path, img_size=256)
SwissArmyTransformer/sat/tokenization/cogview/vqvae_tokenizer.py:75
↓ 1 callersMethodreinit
(self)
SwissArmyTransformer/sat/model/official/glm130B_model.py:104
↓ 1 callersMethodremap_to_used
(self, inds)
sat/sgm/modules/autoencoding/vqvae/quantize.py:45
↓ 1 callersMethodremap_to_used
(self, inds)
sat/sgm/modules/autoencoding/vqvae/quantize.py:178
↓ 1 callersMethodrepartition
(self)
SwissArmyTransformer/sat/mpu/layers.py:442
↓ 1 callersFunctionreplace_linear
(module)
SwissArmyTransformer/sat/quantization/kernels.py:244
↓ 1 callersFunctionreport_evaluate_metrics
(summary_writer, prefix, loss, ppl, step, args, avg_metrics)
SwissArmyTransformer/sat/training/deepspeed_training.py:665
↓ 1 callersFunctionreport_iteration_metrics
(summary_writer, optimizer, lr, loss, elapsed_time, step, total_step, args, avg_metrics)
SwissArmyTransformer/sat/training/deepspeed_training.py:635
↓ 1 callersFunctionreport_memory
Simple GPU memory report.
SwissArmyTransformer/sat/training/utils.py:135
↓ 1 callersFunctionresize_for_rectangle_crop
(arr, image_size, reshape_mode="random")
sat/data_utils.py:53
↓ 1 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the
sat/sgm/modules/ema.py:70
↓ 1 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the
sat/vae_modules/ema.py:70
↓ 1 callersFunctionrestore_ema_parameters_back
(optimizer)
SwissArmyTransformer/sat/training/model_io.py:141
↓ 1 callersMethodreverse
(self, output)
sat/sgm/modules/autoencoding/lpips/util.py:93
↓ 1 callersFunctionrotate_half
(x)
sat/dit_video_concat.py:260
↓ 1 callersFunctionround_ste
Round with straight through gradients.
sat/sgm/modules/autoencoding/regularizers/finite_scalar_quantization.py:41
↓ 1 callersMethodsample
(self)
sat/sgm/modules/distributions/distributions.py:35
↓ 1 callersMethodsample
(self)
sat/vae_modules/regularizers.py:21
↓ 1 callersMethodsampler_step
(self, sigma, next_sigma, denoiser, x, cond, uc=None, s_noise=0.0)
sat/sgm/modules/diffusionmodules/sampling.py:134
↓ 1 callersMethodsampler_step
( self, old_denoised, previous_sigma, sigma, next_sigma, denoi
sat/sgm/modules/diffusionmodules/sampling.py:321
↓ 1 callersMethodsampler_step
( self, old_denoised, previous_sigma, sigma, next_sigma, denoi
sat/sgm/modules/diffusionmodules/sampling.py:392
↓ 1 callersMethodsampler_step
( self, alpha_cumprod_sqrt, next_alpha_cumprod_sqrt, denoiser, x,
sat/sgm/modules/diffusionmodules/sampling.py:581
↓ 1 callersMethodsampler_step
( self, old_denoised, previous_alpha_cumprod_sqrt, alpha_cumprod_sqrt,
sat/sgm/modules/diffusionmodules/sampling.py:654
↓ 1 callersMethodsampler_step
( self, old_denoised, previous_alpha_cumprod_sqrt, alpha_cumprod_sqrt,
sat/sgm/modules/diffusionmodules/sampling.py:809
↓ 1 callersFunctionsampling_main
(args, model_cls)
sat/sample_video.py:191
↓ 1 callersFunctionsave_gt_fig
(output_dir, gt_anno)
SwissArmyTransformer/examples/yolos/infer_util.py:149
↓ 1 callersFunctionsave_on_master
(*args, **kwargs)
SwissArmyTransformer/examples/mae/util/misc.py:211
↓ 1 callersFunctionsave_pred_fig
(output_dir, output_dic, keep)
SwissArmyTransformer/examples/yolos/infer_util.py:140
↓ 1 callersFunctionsave_text
(text: str, save_path: str)
sat/sample_video.py:90
↓ 1 callersFunctionsave_texts
(texts, save_dir, iterations)
sat/train_video.py:37
↓ 1 callersFunctionsave_traj
(traj: torch.tensor, save_path: str)
sat/sample_video.py:95
↓ 1 callersFunctionsave_video_as_grid_and_mp4
(video_batch: torch.Tensor, save_path: str, T: int, fps: int = 5, args=None, key=None)
sat/train_video.py:44
↓ 1 callersFunctionscaled_init_method
Init method based on N(0, sigma/sqrt(2*num_layers).
SwissArmyTransformer/sat/mpu/utils.py:91
↓ 1 callersMethodschedule
(self, n, **kwargs)
sat/sgm/lr_scheduler.py:26
↓ 1 callersMethodschedule
(self, n, **kwargs)
sat/sgm/lr_scheduler.py:69
↓ 1 callersMethodseparate_modulate
( self, video_latent, shift, scale, aug_shift, aug_scale,
sat/dit_video_concat.py:486
↓ 1 callersMethodset_command_tokens
(self, command_tokens)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:53
↓ 1 callersFunctionset_context_parallel_group
(size, group)
sat/sgm/util.py:25
↓ 1 callersMethodset_special_tokens
Add a list of additional tokens to the encoder. The additional tokens are indexed starting from the last index of the current
SwissArmyTransformer/sat/tokenization/glm/tokenization_gpt2.py:183
↓ 1 callersFunctionsetup_for_distributed
This function disables printing when not in master process
SwissArmyTransformer/examples/yolos/util/misc.py:362
↓ 1 callersFunctionsetup_model_untrainable_params_and_optimizer
Setup model and optimizer.
SwissArmyTransformer/sat/training/deepspeed_training.py:182
↓ 1 callersMethodsimd_width
(self)
SwissArmyTransformer/sat/ops/ops_builder/builder.py:376
↓ 1 callersFunctionsmall
(pretrained=None, **kwargs)
SwissArmyTransformer/examples/yolos/models/backbone.py:418
↓ 1 callersFunctionsmall_dWr
(pretrained=None, **kwargs)
SwissArmyTransformer/examples/yolos/models/backbone.py:433
↓ 1 callersFunctionsparse_attention_2d_light
q0, k0, v0: [batch_size, 1088, hidden_size] q1, k1, v1: [batch_size, 4096, h2] n_head: int attention_mask: [batch_size, 1088, 1088]
SwissArmyTransformer/sat/model/official/cuda2d_model.py:151
↓ 1 callersFunctionspatial_average
(x, keepdim=True)
sat/sgm/modules/autoencoding/lpips/loss/lpips.py:131
↓ 1 callersFunctionsplit_ds
Split a dataset into subsets given proportions of how much to allocate per split. If a split is 0% returns None for that split. Purpose:
SwissArmyTransformer/sat/data_utils/configure_data.py:273
↓ 1 callersFunctionstandard_attention
(query_layer, key_layer, value_layer, attention_mask, attention_dropout=None, log_atten
SwissArmyTransformer/sat/transformer_defaults.py:19
↓ 1 callersMethodstate_dict
(self, *args, **kwargs)
sat/sgm/modules/autoencoding/magvit2_pytorch.py:1352
↓ 1 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
sat/sgm/modules/ema.py:61
↓ 1 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
sat/vae_modules/ema.py:61
↓ 1 callersFunctiont5_gelu
Implementation of the GELU activation function currently in Google BERT repo (identical to OpenAI GPT). Also see the Gaussian Error Linear Un
SwissArmyTransformer/sat/model/official/t5_model.py:150
↓ 1 callersFunctiontar_file_expander_with_meta
Expand a stream of open tar files into a stream of tar file contents. This returns an iterator over (filename, file_contents).
SwissArmyTransformer/sat/data_utils/webds.py:169
↓ 1 callersFunctiontar_file_expander_with_meta
Expand a stream of open tar files into a stream of tar file contents. This returns an iterator over (filename, file_contents).
sat/sgm/webds.py:179
↓ 1 callersFunctiontar_file_iterator_with_meta
Iterate over tar file, yielding filename, content pairs for the given tar stream. :param fileobj: byte stream suitable for tarfile :param met
SwissArmyTransformer/sat/data_utils/webds.py:90
↓ 1 callersFunctiontar_file_iterator_with_meta
Iterate over tar file, yielding filename, content pairs for the given tar stream. :param fileobj: byte stream suitable for tarfile :param met
sat/sgm/webds.py:95
↓ 1 callersFunctiontest_bert_inference
()
SwissArmyTransformer/tests/test_model_parallel.py:6
↓ 1 callersFunctiontest_create
()
SwissArmyTransformer/tests/test_nested_model.py:22
↓ 1 callersFunctiontest_decode
configs: list of config for new module testcases: pt file path or tensor of [B, D, H, W]
SwissArmyTransformer/sat/tokenization/cogview/vqvae/api.py:110
↓ 1 callersFunctiontest_list_avail_args
()
SwissArmyTransformer/tests/test_base_model.py:4
↓ 1 callersFunctiontest_list_avail_models
()
SwissArmyTransformer/tests/test_list_info.py:3
↓ 1 callersFunctiontest_list_avail_pretrained
()
SwissArmyTransformer/tests/test_list_info.py:6
↓ 1 callersFunctiontest_metads_batch
(path)
SwissArmyTransformer/tests/test_read_img.py:105
↓ 1 callersFunctiontest_mixin
()
SwissArmyTransformer/tests/test_mea.py:46
↓ 1 callersFunctiontest_model_inference_create
()
SwissArmyTransformer/tests/test_inference.py:13
↓ 1 callersFunctiontest_save_and_load
()
SwissArmyTransformer/tests/test_nested_model.py:28
↓ 1 callersFunctiontest_speed
()
SwissArmyTransformer/tests/test_speed.py:4
↓ 1 callersFunctiontiny
(pretrained=None, **kwargs)
SwissArmyTransformer/examples/yolos/models/backbone.py:403
↓ 1 callersMethodtokenize
(self, text)
SwissArmyTransformer/sat/tokenization/icetk_glm_130B/ice_tokenizer.py:238
↓ 1 callersMethodtokenize
(self, text)
SwissArmyTransformer/sat/tokenization/glm/tokenization.py:193
↓ 1 callersMethodtokenize
Tokenize a string.
SwissArmyTransformer/sat/tokenization/glm/tokenization_gpt2.py:237
↓ 1 callersMethodtokenize
(self, text)
SwissArmyTransformer/sat/tokenization/cogview/sp_tokenizer.py:93
↓ 1 callersFunctiontrain
Train the model.
SwissArmyTransformer/sat/training/deepspeed_training.py:331
↓ 1 callersFunctiontrain_step
Single training step.
SwissArmyTransformer/sat/training/deepspeed_training.py:433
↓ 1 callersFunctiontransform_both_weight
(src_model, swiss_model)
SwissArmyTransformer/examples/clip/transform_param.py:83
↓ 1 callersFunctiontransform_both_weight
(src_model, swiss_model)
SwissArmyTransformer/examples/clip/transform_param_new.py:80
← previousnext →901–1,000 of 2,541, ranked by callers