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

↓ 1 callersFunction_make_next_vit_backbone
( model, hooks=[2, 6, 36, 39], )
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/next_vit.py:15
↓ 1 callersFunction_make_pretrained_beitb16_384
(pretrained, use_readout="ignore", hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/beit.py:187
↓ 1 callersFunction_make_pretrained_beitl16_384
(pretrained, use_readout="ignore", hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/beit.py:174
↓ 1 callersFunction_make_pretrained_beitl16_512
(pretrained, use_readout="ignore", hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/beit.py:157
↓ 1 callersFunction_make_pretrained_efficientnet_lite3
(use_pretrained, exportable=False)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/blocks.py:166
↓ 1 callersFunction_make_pretrained_levit_384
(pretrained, hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/levit.py:99
↓ 1 callersFunction_make_pretrained_next_vit_large_6m
(hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/next_vit.py:32
↓ 1 callersFunction_make_pretrained_resnext101_wsl
(use_pretrained)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/blocks.py:202
↓ 1 callersFunction_make_pretrained_swin2b24_384
(pretrained, hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/swin2.py:16
↓ 1 callersFunction_make_pretrained_swin2l24_384
(pretrained, hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/swin2.py:6
↓ 1 callersFunction_make_pretrained_swin2t16_256
(pretrained, hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/swin2.py:26
↓ 1 callersFunction_make_pretrained_swinl12_384
(pretrained, hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/swin.py:6
↓ 1 callersFunction_make_pretrained_vitb16_384
(pretrained, use_readout="ignore", hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/vit.py:111
↓ 1 callersFunction_make_pretrained_vitb_rn50_384
( pretrained, use_readout="ignore", hooks=None, use_vit_only=False )
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/vit.py:208
↓ 1 callersFunction_make_pretrained_vitl16_384
(pretrained, use_readout="ignore", hooks=None)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/vit.py:98
↓ 1 callersFunction_make_resnet_backbone
(resnet)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/blocks.py:189
↓ 1 callersFunction_make_vit_b_rn50_backbone
( model, features=[256, 512, 768, 768], size=[384, 384], hooks=[0, 1, 8, 11], vit_features
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/vit.py:120
↓ 1 callersMethod_memory_efficient_attention_xformers
(self, query, key, value, attention_mask)
controlnet/cross_attention_old.py:235
↓ 1 callersMethod_prepare
(self)
ldm/data/imagenet.py:45
↓ 1 callersMethod_prepare_human_to_integer_label
(self)
ldm/data/imagenet.py:80
↓ 1 callersMethod_prepare_idx_to_synset
(self)
ldm/data/imagenet.py:74
↓ 1 callersMethod_prepare_synset_to_human
(self)
ldm/data/imagenet.py:66
↓ 1 callersMethod_sliced_attention
(self, query, key, value, sequence_length, dim, attention_mask)
controlnet/cross_attention_old.py:192
↓ 1 callersFunctionadd_sharpening
USM sharpening. borrowed from real-ESRGAN Input image: I; Blurry image: B. 1. K = I + weight * (I - B) 2. Mask = 1 if abs(I - B) > thresho
ldm/modules/image_degradation/bsrgan.py:299
↓ 1 callersFunctionanisotropic_Gaussian
generate an anisotropic Gaussian kernel Args: ksize : e.g., 15, kernel size theta : [0, pi], rotation angle range l1
ldm/modules/image_degradation/bsrgan_light.py:65
↓ 1 callersFunctionanisotropic_Gaussian
generate an anisotropic Gaussian kernel Args: ksize : e.g., 15, kernel size theta : [0, pi], rotation angle range l1
ldm/modules/image_degradation/bsrgan.py:65
↓ 1 callersFunctionapply_min_size
Rezise the sample to ensure the given size. Keeps aspect ratio. Args: sample (dict): sample size (tuple): image size Returns
annotator/zoe/zoedepth/data/transforms.py:55
↓ 1 callersMethodattach_hooks
(self, midas)
annotator/zoe/zoedepth/models/base_models/midas.py:298
↓ 1 callersMethodaugment_image
(self, image)
annotator/zoe/zoedepth/data/data_mono.py:488
↓ 1 callersFunctionaugment_img
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:380
↓ 1 callersFunctionbgr2ycbcr
bgr version of rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
ldm/modules/image_degradation/utils_image.py:573
↓ 1 callersMethodbuild
(midas_model_type="DPT_BEiT_L_384", train_midas=False, use_pretrained_midas=True, fetch_features=False, freeze
annotator/zoe/zoedepth/models/base_models/midas.py:334
↓ 1 callersMethodbuild
(midas_model_type="DPT_BEiT_L_384", pretrained_resource=None, use_pretrained_midas=False, train_midas=False, f
annotator/zoe/zoedepth/models/zoedepth/zoedepth_v1.py:239
↓ 1 callersMethodbuild
(midas_model_type="DPT_BEiT_L_384", pretrained_resource=None, use_pretrained_midas=False, train_midas=False, f
annotator/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:322
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
ldm/modules/losses/vqperceptual.py:85
↓ 1 callersMethodcalculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
ldm/modules/losses/contperceptual.py:32
↓ 1 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
ldm/modules/diffusionmodules/util.py:111
↓ 1 callersFunctioncompose2
(f1, f2)
annotator/zoe/zoedepth/models/base_models/midas_repo/tf/run_pb.py:65
↓ 1 callersFunctioncompose2
(f1, f2)
annotator/zoe/zoedepth/models/base_models/midas_repo/tf/run_onnx.py:57
↓ 1 callersFunctioncompute_errors
Compute metrics for 'pred' compared to 'gt' Args: gt (numpy.ndarray): Ground truth values pred (numpy.ndarray): Predicted values
annotator/zoe/zoedepth/utils/misc.py:159
↓ 1 callersFunctioncompute_scale_and_shift
(prediction, target, mask)
annotator/zoe/zoedepth/trainers/loss.py:259
↓ 1 callersMethodcrop_aware_infer
(self, x)
annotator/zoe/zoedepth/trainers/zoedepth_trainer.py:114
↓ 1 callersFunctioncrop_image
Crops the image according to the crop parameters. Args: image: RGB or depth image, shape (H, W, 3) or (H, W). crop_params: Crop p
annotator/zoe/zoedepth/data/preprocess.py:112
↓ 1 callersMethodddim_inversion
( self, latent, grounding_input, inpainting_extra_input)
null_inv.py:137
↓ 1 callersMethodddim_loop
( self, latent, grounding_input, inpainting_extra_input)
null_inv.py:120
↓ 1 callersMethodddim_sampling
(self, shape, input, uc, uncond_embeddings, guidance_scale=1, mask=None, x0=None)
ldm/models/diffusion/ddim.py:68
↓ 1 callersFunctiondefault
(val, d)
ldm/modules/attention.py:20
↓ 1 callersFunctiondenormalize
Reverses the imagenet normalization applied to the input. Args: x (torch.Tensor - shape(N,3,H,W)): input tensor Returns: tor
annotator/zoe/zoedepth/models/base_models/midas.py:32
↓ 1 callersFunctiondownsample_2d
r"""Downsample2D a batch of 2D images with the given filter. Accepts a batch of 2D images of the shape `[N, C, H, W]` or `[N, H, W, C]` and downsa
controlnet/resnet.py:394
↓ 1 callersFunctiondraw_masks_from_boxes
boxes should be the output from dataset, which is a batch of bounding boxes
inference.py:111
↓ 1 callersMethodencode
(self, text, return_offset_mapping=False)
ldm/modules/encoders/modules.py:108
↓ 1 callersMethodencode_with_pretrained
(self,x)
ldm/modules/diffusionmodules/model.py:816
↓ 1 callersFunctionequals
(val)
ldm/modules/x_transformer.py:76
↓ 1 callersFunctionexists
(x)
ldm/util.py:46
↓ 1 callersMethodforward
(self, hidden_states)
controlnet/resnet.py:353
↓ 1 callersMethodforward
Forward pass. Args: x (tensor): input data (image) Returns: tensor: depth
annotator/zoe/zoedepth/models/base_models/midas_repo/tf/make_onnx_model.py:47
↓ 1 callersMethodfreeze
(self)
annotator/zoe/zoedepth/models/base_models/midas.py:241
↓ 1 callersMethodfreeze
(self)
ldm/modules/encoders/modules_backup.py:147
↓ 1 callersMethodfreeze
(self)
ldm/modules/encoders/modules.py:154
↓ 1 callersMethodfreeze_bn
(self)
annotator/zoe/zoedepth/models/base_models/midas.py:253
↓ 1 callersMethodfreeze_encoder
(self, freeze_rel_pos=False)
annotator/zoe/zoedepth/models/base_models/midas.py:289
↓ 1 callersMethodfrom_2d_model
(cls, model_path)
controlnet/controlnet_3d.py:526
↓ 1 callersFunctionfspecial_gaussian
(hsize, sigma)
ldm/modules/image_degradation/bsrgan_light.py:187
↓ 1 callersFunctionfspecial_gaussian
(hsize, sigma)
ldm/modules/image_degradation/bsrgan.py:187
↓ 1 callersFunctionfspecial_laplacian
(alpha)
ldm/modules/image_degradation/bsrgan_light.py:201
↓ 1 callersFunctionfspecial_laplacian
(alpha)
ldm/modules/image_degradation/bsrgan.py:201
↓ 1 callersMethodget_base
(self)
ldm/data/imagenet.py:379
↓ 1 callersFunctionget_config
Main entry point to get the config for the model. Args: model_name (str): name of the desired model. mode (str, optional): "train
annotator/zoe/zoedepth/utils/config.py:354
↓ 1 callersFunctionget_ddad_loader
(data_dir_root, resize_shape, batch_size=1, **kwargs)
annotator/zoe/zoedepth/data/ddad.py:115
↓ 1 callersFunctionget_diml_indoor_loader
(data_dir_root, batch_size=1, **kwargs)
annotator/zoe/zoedepth/data/diml_indoor_test.py:120
↓ 1 callersFunctionget_diml_outdoor_loader
(data_dir_root, batch_size=1, **kwargs)
annotator/zoe/zoedepth/data/diml_outdoor_test.py:109
↓ 1 callersFunctionget_diode_loader
(data_dir_root, batch_size=1, **kwargs)
annotator/zoe/zoedepth/data/diode.py:121
↓ 1 callersMethodget_enc_params_except_rel_pos
(self)
annotator/zoe/zoedepth/models/base_models/midas.py:284
↓ 1 callersMethodget_enc_params_except_rel_pos
()
annotator/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:261
↓ 1 callersFunctionget_hypersim_loader
(data_dir_root, batch_size=1, **kwargs)
annotator/zoe/zoedepth/data/hypersim.py:136
↓ 1 callersFunctionget_ibims_loader
(config, batch_size=1, **kwargs)
annotator/zoe/zoedepth/data/ibims.py:79
↓ 1 callersFunctionget_image_from_url
(url)
annotator/zoe/zoedepth/utils/misc.py:342
↓ 1 callersFunctionget_image_paths
(dataroot)
ldm/modules/image_degradation/utils_image.py:67
↓ 1 callersFunctionget_intrinsics
Intrinsics for a pinhole camera model. Assume fov of 55 degrees and central principal point.
annotator/zoe/zoedepth/utils/geometry.py:27
↓ 1 callersMethodget_lr_params
Learning rate configuration for different layers of the model Args: lr (float) : Base learning rate Returns:
annotator/zoe/zoedepth/models/zoedepth/zoedepth_v1.py:204
↓ 1 callersFunctionget_model_config
Find and parse the .json config file for the model. Args: model_name (str): name of the model. The config file should be named config_{mo
annotator/zoe/zoedepth/utils/config.py:306
↓ 1 callersMethodget_noise_pred
( self, latents, t, is_forward=True, context=None, groundi
null_inv.py:63
↓ 1 callersFunctionget_obj_from_str
(string, reload=False)
ldm/util.py:81
↓ 1 callersMethodget_rel_pos_params
()
annotator/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:256
↓ 1 callersMethodget_size
(self, width, height)
annotator/zoe/zoedepth/data/transforms.py:215
↓ 1 callersMethodget_size
(self, width, height)
annotator/zoe/zoedepth/models/base_models/midas.py:114
↓ 1 callersMethodget_size
(self, width, height)
annotator/zoe/zoedepth/models/base_models/midas_repo/tf/transforms.py:105
↓ 1 callersMethodget_size
(self, width, height)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/transforms.py:105
↓ 1 callersFunctionget_sunrgbd_loader
(data_dir_root, batch_size=1, **kwargs)
annotator/zoe/zoedepth/data/sun_rgbd_loader.py:104
↓ 1 callersFunctionget_timestamp
()
ldm/modules/image_degradation/utils_image.py:33
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
ldm/modules/diffusionmodules/model.py:12
↓ 1 callersFunctionget_up_block
( up_block_type, num_layers, in_channels, out_channels, prev_output_channel, temb_chan
controlnet/unet_3d_blocks.py:65
↓ 1 callersMethodget_value
(self)
annotator/zoe/zoedepth/utils/misc.py:56
↓ 1 callersMethodget_x_noisy
(self, x, t, noise=None)
ldm/models/diffusion/classifier.py:110
↓ 1 callersFunctiongm_blur_kernel
(mean, cov, size=15)
ldm/modules/image_degradation/bsrgan_light.py:86
↓ 1 callersFunctiongm_blur_kernel
(mean, cov, size=15)
ldm/modules/image_degradation/bsrgan.py:86
↓ 1 callersFunctiongrad_mask
(mask)
annotator/zoe/zoedepth/trainers/loss.py:106
↓ 1 callersFunctionhypersim_distance_to_depth
(npyDistance)
annotator/zoe/zoedepth/data/hypersim.py:36
↓ 1 callersFunctionimread_uint
(path, n_channels=3)
ldm/modules/image_degradation/utils_image.py:185
↓ 1 callersFunctionimssave
imgs: list, N images of size WxHxC
ldm/modules/image_degradation/utils_image.py:112
← previousnext →201–300 of 1,051, ranked by callers