MCPcopy Create free account

hub / github.com/Ground-A-Video/Ground-A-Video / functions

Functions1,051 in github.com/Ground-A-Video/Ground-A-Video

↓ 120 callersMethodappend
(self, value)
annotator/zoe/zoedepth/utils/misc.py:52
↓ 116 callersMethodto
(self, device)
annotator/zoe/zoedepth/models/depth_model.py:40
↓ 35 callersMethodregister_buffer
(self, name, attr)
ldm/models/diffusion/ddim.py:23
↓ 34 callersMethodload
Load model from file. Args: path (str): file path
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/base_model.py:5
↓ 31 callersMethodopen
(self, fpath)
annotator/zoe/zoedepth/data/data_mono.py:266
↓ 25 callersMethodhead_to_batch_dim
(self, tensor)
controlnet/attention_processor.py:206
↓ 20 callersMethodpop
(self, k, d=None)
annotator/zoe/zoedepth/utils/easydict/__init__.py:151
↓ 18 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
ldm/modules/diffusionmodules/util.py:234
↓ 17 callersFunctionget_activation
(name)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/utils.py:56
↓ 17 callersFunctioninstantiate_from_config
(config)
ldm/util.py:71
↓ 16 callersFunctionexists
(val)
ldm/modules/x_transformer.py:54
↓ 15 callersMethod__init__
(self, *, ch, out_ch, ch_mult=(1,2,4,8), num_res_blocks, attn_resolutions, dropout=0.0, resam
ldm/modules/diffusionmodules/model.py:217
↓ 15 callersMethodupdate
(self, new_dict)
annotator/zoe/zoedepth/utils/misc.py:79
↓ 14 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/blocks.py:133
↓ 12 callersMethod__init__
(self, value, fn)
ldm/modules/x_transformer.py:118
↓ 12 callersMethodencode
(self, x)
ldm/models/autoencoder.py:29
↓ 11 callersMethod__init__
(self, dim_in, dim_out)
ldm/modules/attention.py:38
↓ 10 callersFunctionnonlinearity
(x)
ldm/modules/diffusionmodules/model.py:33
↓ 9 callersFunctionNormalize
(in_channels, num_groups=32)
ldm/modules/diffusionmodules/model.py:38
↓ 8 callersMethod__init__
(self, n_embed, n_layer, vocab_size=30522, max_seq_len=77, device="cuda",use_tokenizer=True,
ldm/modules/encoders/modules_backup.py:82
↓ 8 callersMethod__init__
(self, n_embed, n_layer, vocab_size=30522, max_seq_len=77, device="cuda",use_tokenizer=True,
ldm/modules/encoders/modules.py:84
↓ 8 callersMethodprepare_attention_mask
(self, attention_mask, target_length, batch_size=None)
controlnet/attention_processor.py:244
↓ 7 callersMethodbatch_to_head_dim
(self, tensor)
controlnet/attention_processor.py:199
↓ 7 callersMethodforward
(self, x)
ldm/modules/diffusionmodules/util.py:220
↓ 7 callersFunctionmake_attn
(in_channels, attn_type="vanilla")
ldm/modules/diffusionmodules/model.py:205
↓ 7 callersMethodreshape_heads_to_batch_dim
(self, tensor)
controlnet/cross_attention_old.py:84
↓ 7 callersMethodsample
(self)
ldm/modules/distributions/distributions.py:17
↓ 6 callersMethod__init__
(self, txt_file, data_root, size=None, int
ldm/data/lsun.py:10
↓ 6 callersFunctionadd_JPEG_noise
(img)
ldm/modules/image_degradation/bsrgan.py:418
↓ 6 callersFunctionadd_blur
(img, sf=4)
ldm/modules/image_degradation/bsrgan.py:325
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
annotator/zoe/zoedepth/data/transforms.py:202
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
annotator/zoe/zoedepth/models/base_models/midas.py:101
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/tf/transforms.py:94
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/transforms.py:94
↓ 6 callersFunctiondefault
(val, d)
ldm/modules/x_transformer.py:58
↓ 6 callersFunctionget_activation
(name, bank)
annotator/zoe/zoedepth/models/base_models/midas.py:45
↓ 6 callersFunctionlinear
Create a linear module.
ldm/modules/diffusionmodules/util.py:248
↓ 6 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
ldm/modules/diffusionmodules/util.py:208
↓ 6 callersFunctionremove_leading_slash
(s)
annotator/zoe/zoedepth/data/data_mono.py:241
↓ 5 callersFunction_resnet
( arch: str, block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], pretrained: bool,
ldm/modules/diffusionmodules/resnet.py:269
↓ 5 callersMethoddecode
(self, z)
ldm/models/autoencoder.py:35
↓ 5 callersMethodget_attention_scores
(self, query, key, attention_mask=None)
controlnet/attention_processor.py:213
↓ 5 callersMethodlog_images
(self, rgb: Dict[str, list] = {}, depth: Dict[str, list] = {}, scalar_field: Dict[str, list] = {}, prefix="",
annotator/zoe/zoedepth/trainers/base_trainer.py:289
↓ 5 callersMethodset_processor
(self, processor: "AttnProcessor")
controlnet/attention_processor.py:174
↓ 5 callersFunctionzero_module
(module)
controlnet/controlnet.py:546
↓ 5 callersFunctionzero_module
(module)
controlnet/controlnet_3d.py:585
↓ 4 callersMethod__init__
( self, in_channels: int, prev_output_channel: int, out_channels: int,
controlnet/unet_3d_blocks.py:534
↓ 4 callersMethod__init__
Init. Args: scale_factor (float): scaling mode (str): interpolation mode
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/blocks.py:212
↓ 4 callersMethod__init__
Imagenet Superresolution Dataloader Performs following ops in order: 1. crops a crop of size s from image either as random o
ldm/data/imagenet.py:273
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size = None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/dpt_depth.py:18
↓ 4 callersMethod_make_layer
(self, block: Type[Union[BasicBlock, Bottleneck]], planes: int, blocks: int, stride: int =
ldm/modules/diffusionmodules/resnet.py:207
↓ 4 callersFunction_make_swin_backbone
( model, hooks=[1, 1, 17, 1], patch_grid=[96, 96] )
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/swin_common.py:13
↓ 4 callersFunctionadd_Gaussian_noise
(img, noise_level1=2, noise_level2=25)
ldm/modules/image_degradation/bsrgan.py:369
↓ 4 callersFunctionadd_JPEG_noise
(img)
ldm/modules/image_degradation/bsrgan_light.py:422
↓ 4 callersFunctionadopt_weight
(weight, global_step, threshold=0, value=0.)
ldm/modules/losses/vqperceptual.py:20
↓ 4 callersFunctioncalculate_weights_indices
(in_length, out_length, scale, kernel, kernel_width, antialiasing)
ldm/modules/image_degradation/utils_image.py:708
↓ 4 callersMethodcompute_top_k
(self, logits, labels, k, reduction="mean")
ldm/models/diffusion/classifier.py:150
↓ 4 callersMethodget_null_input
Guidance for training (drop) or inference, please define the null input for the grounding tokenizer
grounding_input/text_grounding_tokinzer_input.py:30
↓ 4 callersFunctionis_above_tolerance
(arr, total_pixels)
annotator/zoe/zoedepth/data/preprocess.py:47
↓ 4 callersFunctionis_rank_zero
(args)
annotator/zoe/zoedepth/trainers/base_trainer.py:44
↓ 4 callersMethodmake_letter_box
(self, sample)
annotator/zoe/zoedepth/data/transforms.py:273
↓ 4 callersMethodprepare
batch should be the output from dataset. Please define here how to process the batch and prepare the input only for the grou
grounding_input/text_grounding_tokinzer_input.py:10
↓ 4 callersMethodsave_checkpoint
(self, filename)
annotator/zoe/zoedepth/trainers/base_trainer.py:273
↓ 4 callersMethodshared_step
(self, batch, t=None)
ldm/models/diffusion/classifier.py:179
↓ 4 callersMethodto_tensor
(self, pic)
annotator/zoe/zoedepth/data/ddad.py:51
↓ 4 callersFunctionzero_module
Zero out the parameters of a module and return it.
ldm/modules/diffusionmodules/util.py:183
↓ 3 callersFunctionNormalize
(in_channels)
ldm/modules/attention.py:76
↓ 3 callersMethod__init__
( self, query_dim: int, cross_attention_dim: Optional[int] = None, heads: int
controlnet/attention_processor.py:30
↓ 3 callersMethod__init__
(self, query_dim, key_dim, value_dim, heads=8, dim_head=64, dropout=0)
controlnet/attention.py:290
↓ 3 callersMethod__init__
(self, in_channels, out_channels, kernel_size, temporal_kernel_size=None, **kwargs)
controlnet/resnet.py:11
↓ 3 callersMethod__init__
(self, beta=0.15)
annotator/zoe/zoedepth/trainers/loss.py:44
↓ 3 callersMethod__init__
(self, start_index=1)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/utils.py:7
↓ 3 callersMethod__init__
Projector MLP Args: in_features (int): input channels out_features (int): output channels mlp_dim (int, o
annotator/zoe/zoedepth/models/layers/localbins_layers.py:100
↓ 3 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1)
ldm/modules/diffusionmodules/openaimodel.py:63
↓ 3 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1)
ldm/modules/diffusionmodules/openaimodel3d.py:66
↓ 3 callersMethod_infer_with_pad_aug
Inference interface for the model with padding augmentation Padding augmentation fixes the boundary artifacts in the output depth map
annotator/zoe/zoedepth/models/depth_model.py:57
↓ 3 callersFunction_make_beit_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[0, 4, 8, 11],
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/beit.py:130
↓ 3 callersFunction_make_encoder
(backbone, features, use_pretrained, groups=1, expand=False, exportable=True, hooks=None, us
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/blocks.py:32
↓ 3 callersFunctionadd_blur
(img, sf=4)
ldm/modules/image_degradation/bsrgan_light.py:325
↓ 3 callersMethodbackward
(ctx, *output_grads)
ldm/modules/diffusionmodules/util.py:140
↓ 3 callersFunctioncheck_choices
(name, value, choices)
annotator/zoe/zoedepth/utils/config.py:344
↓ 3 callersFunctionconv1x1
1x1 convolution
ldm/modules/diffusionmodules/resnet.py:33
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
ldm/modules/diffusionmodules/resnet.py:27
↓ 3 callersMethodeval_infer
(self, x)
annotator/zoe/zoedepth/trainers/zoedepth_trainer.py:107
↓ 3 callersFunctionextract_key
(prediction, key)
annotator/zoe/zoedepth/trainers/loss.py:35
↓ 3 callersFunctionflatten
(config, except_keys=('bin_conf'))
annotator/zoe/zoedepth/utils/config.py:257
↓ 3 callersMethodforward
(self, x)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/dpt_depth.py:110
↓ 3 callersFunctionfspecial
python code from: https://github.com/ronaldosena/imagens-medicas-2/blob/40171a6c259edec7827a6693a93955de2bd39e76/Aulas/aula_2_-_uniform_filte
ldm/modules/image_degradation/bsrgan_light.py:210
↓ 3 callersFunctionfspecial
python code from: https://github.com/ronaldosena/imagens-medicas-2/blob/40171a6c259edec7827a6693a93955de2bd39e76/Aulas/aula_2_-_uniform_filte
ldm/modules/image_degradation/bsrgan.py:210
↓ 3 callersFunctionget_down_block
( down_block_type, num_layers, in_channels, out_channels, temb_channels, add_downsampl
controlnet/unet_3d_blocks.py:8
↓ 3 callersMethodget_noise_pred_single
(self, latents, t, conte
null_inv.py:42
↓ 3 callersMethodload_2d_state_dict
(self, state_dict, **kwargs)
controlnet/controlnet_3d.py:566
↓ 3 callersFunctionpreprocessing_transforms
(mode, **kwargs)
annotator/zoe/zoedepth/data/data_mono.py:64
↓ 3 callersMethodremove_hooks
(self)
annotator/zoe/zoedepth/models/base_models/midas.py:322
↓ 3 callersMethodreshape_batch_dim_to_heads
(self, tensor)
controlnet/cross_attention_old.py:91
↓ 3 callersMethodreshape_heads_to_batch_dim
(self,tensor)
controlnet/attention.py:365
↓ 3 callersMethodreshape_heads_to_batch_dim
(self,tensor)
controlnet/attention.py:442
↓ 3 callersMethodreshape_heads_to_batch_dim
(self,tensor)
ldm/modules/attention.py:203
↓ 3 callersMethodreshape_heads_to_batch_dim
(self,tensor)
ldm/modules/attention.py:283
↓ 3 callersFunctionssim
(img1, img2)
ldm/modules/image_degradation/utils_image.py:669
next →1–100 of 1,051, ranked by callers