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

↓ 3 callersFunctionupdate_model_config
(config, mode, model_name, model_version=None, strict=False)
annotator/zoe/zoedepth/utils/config.py:334
↓ 2 callersFunctionHWC3
(x)
annotator/util.py:11
↓ 2 callersMethodToTensor
annotator/zoe/zoedepth/models/base_models/midas_repo/ros/midas_cpp/src/main.cpp:45
↓ 2 callersMethod__init__
( self, in_channels: int = 4, flip_sin_to_cos: bool = True, freq_shift: int =
controlnet/controlnet_3d.py:94
↓ 2 callersMethod__init__
(self, dim, drop_path=0., layer_scale_init_value=1e-6)
ldm/modules/diffusionmodules/convnext.py:26
↓ 2 callersMethod__init__
( self, block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], num_cla
ldm/modules/diffusionmodules/resnet.py:147
↓ 2 callersFunction_make_vit_b16_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11], vit_features=
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/vit.py:75
↓ 2 callersFunctionadd_Gaussian_noise
(img, noise_level1=2, noise_level2=25)
ldm/modules/image_degradation/bsrgan_light.py:373
↓ 2 callersFunctionadd_Poisson_noise
(img)
ldm/modules/image_degradation/bsrgan.py:404
↓ 2 callersFunctionadd_resize
(img, sf=4)
ldm/modules/image_degradation/bsrgan.py:339
↓ 2 callersFunctionadd_speckle_noise
(img, noise_level1=2, noise_level2=25)
ldm/modules/image_degradation/bsrgan.py:386
↓ 2 callersFunctionalways
(val)
ldm/modules/x_transformer.py:64
↓ 2 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
ldm/modules/diffusionmodules/util.py:255
↓ 2 callersFunctionbicubic_degradation
Args: x: HxWxC image, [0, 1] sf: down-scale factor Return: bicubicly downsampled LR image
ldm/modules/image_degradation/bsrgan_light.py:228
↓ 2 callersFunctionbicubic_degradation
Args: x: HxWxC image, [0, 1] sf: down-scale factor Return: bicubicly downsampled LR image
ldm/modules/image_degradation/bsrgan.py:228
↓ 2 callersMethodbuild_from_config
(config)
annotator/zoe/zoedepth/models/base_models/midas.py:352
↓ 2 callersFunctionchange_dataset
(config, new_dataset)
annotator/zoe/zoedepth/utils/config.py:435
↓ 2 callersFunctioncolorize
Converts a depth map to a color image. Args: value (torch.Tensor, numpy.ndarry): Input depth map. Shape: (H, W) or (1, H, W) or (1, 1, H,
annotator/zoe/zoedepth/utils/misc.py:97
↓ 2 callersFunctioncomplete_mask
(has_mask, max_objs)
inference.py:139
↓ 2 callersFunctioncompute_metrics
Compute metrics of predicted depth maps. Applies cropping and masking as necessary or specified via arguments. Refer to compute_errors for more detail
annotator/zoe/zoedepth/utils/misc.py:202
↓ 2 callersFunctioncount_params
(model, verbose=False)
ldm/util.py:64
↓ 2 callersFunctioncreate_side_by_side
Take an RGB image and depth map and place them side by side. This includes a proper normalization of the depth map for better visibility.
annotator/zoe/zoedepth/models/base_models/midas_repo/run.py:77
↓ 2 callersFunctioncrop_images
Crops the images according to the crop parameters. Args: images: RGB or depth images, shape (H, W, 3) or (H, W). crop_params: Cro
annotator/zoe/zoedepth/data/preprocess.py:124
↓ 2 callersFunctioncubic
(x)
ldm/modules/image_degradation/utils_image.py:700
↓ 2 callersFunctiondefault
(val, d)
ldm/util.py:50
↓ 2 callersFunctionexists
(val)
ldm/modules/attention.py:12
↓ 2 callersFunctionextract_into_tensor
(a, t, x_shape)
ldm/modules/diffusionmodules/util.py:105
↓ 2 callersMethodfind_in_interval
(self, n)
ldm/lr_scheduler.py:52
↓ 2 callersFunctionforward_adapted_unflatten
(pretrained, x, function_name="forward_features")
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/utils.py:83
↓ 2 callersFunctionforward_default
(pretrained, x, function_name="forward_features")
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/utils.py:63
↓ 2 callersMethodforward_features
(self, x)
ldm/modules/diffusionmodules/convnext.py:108
↓ 2 callersFunctionget_black_border
Crops the black border of the RGB. Args: rgb: RGB image, shape (H, W, 3). Returns: Crop parameters.
annotator/zoe/zoedepth/data/preprocess.py:100
↓ 2 callersFunctionget_border_params
(rgb_image, tolerance=0.1, cut_off=20, value=0, level_diff_threshold=5, channel_axis=-1, min_border=5)
annotator/zoe/zoedepth/data/preprocess.py:39
↓ 2 callersFunctionget_clip_feature
(model, processor, input, is_image=False)
inference.py:81
↓ 2 callersMethodget_conditioning
(self, batch, k=None)
ldm/models/diffusion/classifier.py:133
↓ 2 callersMethodget_conf_parameters
Returns parameters of all the ModuleDicts children that are exclusively used for the given bin configuration
annotator/zoe/zoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:285
↓ 2 callersMethodget_input
(self, batch, k)
ldm/models/diffusion/classifier.py:124
↓ 2 callersFunctionget_readout_oper
(vit_features, features, use_readout, start_index=1)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/utils.py:127
↓ 2 callersMethodget_value
(self)
annotator/zoe/zoedepth/utils/misc.py:91
↓ 2 callersFunctionget_vkitti2_loader
(data_dir_root, batch_size=1, **kwargs)
annotator/zoe/zoedepth/data/vkitti2.py:172
↓ 2 callersFunctionget_vkitti_loader
(data_dir_root, batch_size=1, **kwargs)
annotator/zoe/zoedepth/data/vkitti.py:136
↓ 2 callersFunctionget_white_border
Crops the white border of the RGB. Args: rgb: RGB image, shape (H, W, 3). Returns: Crop parameters.
annotator/zoe/zoedepth/data/preprocess.py:82
↓ 2 callersFunctiongrad
(x)
annotator/zoe/zoedepth/trainers/loss.py:96
↓ 2 callersFunctiongroup_dict_by_key
(cond, d)
ldm/modules/x_transformer.py:93
↓ 2 callersFunctiongroupby_prefix_and_trim
(prefix, d)
ldm/modules/x_transformer.py:110
↓ 2 callersMethodinfer
Inference interface for the model Args: x (torch.Tensor): input tensor of shape (b, c, h, w) pad_input (bool,
annotator/zoe/zoedepth/models/depth_model.py:115
↓ 2 callersFunctioninfer_type
(x)
annotator/zoe/zoedepth/utils/arg_utils.py:3
↓ 2 callersFunctionload_state_dict
Load state_dict into model, handling DataParallel and DistributedDataParallel. Also checks for "model" key in state_dict. DataParallel prefixes s
annotator/zoe/zoedepth/models/model_io.py:27
↓ 2 callersFunctionload_state_dict_from_url
(model, url, **kwargs)
annotator/zoe/zoedepth/models/model_io.py:59
↓ 2 callersFunctionload_state_from_resource
Loads weights to the model from a given resource. A resource can be of following types: 1. URL. Prefixed with "url::" e.g. url
annotator/zoe/zoedepth/models/model_io.py:64
↓ 2 callersFunctionload_wts
(model, checkpoint_path)
annotator/zoe/zoedepth/models/model_io.py:54
↓ 2 callersFunctionmake_backbone_default
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11],
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/utils.py:144
↓ 2 callersFunctionmkdir
(path)
ldm/modules/image_degradation/utils_image.py:153
↓ 2 callersMethodnext_step
(self, model_output: Union[torch.FloatTensor, np.ndarray], timestep: int,
null_inv.py:29
↓ 2 callersFunctionprepare_batch_video
(meta, batch=1, max_objs=30, clip_length=8, device='cuda', dtype=torch.float16)
inference.py:152
↓ 2 callersMethodprev_step
(self, model_output: Union[torch.FloatTensor, np.ndarray], timestep: int,
null_inv.py:16
↓ 2 callersFunctionprocess
Run the inference and interpolate. Args: device (torch.device): the torch device used model: the model used for inference
annotator/zoe/zoedepth/models/base_models/midas_repo/run.py:17
↓ 2 callersMethodq_sample
(self, x_start, t, noise=None)
ldm/models/diffusion/ldm.py:19
↓ 2 callersMethodquantize_depth
(self, depth)
annotator/zoe/zoedepth/trainers/loss.py:198
↓ 2 callersFunctionrandom_crop
(lq, hq, sf=4, lq_patchsize=64)
ldm/modules/image_degradation/bsrgan.py:427
↓ 2 callersMethodrotate_image
(self, image, angle, flag=Image.BILINEAR)
annotator/zoe/zoedepth/data/data_mono.py:440
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift dir
ldm/modules/image_degradation/bsrgan_light.py:99
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift dir
ldm/modules/image_degradation/bsrgan.py:99
↓ 2 callersMethodshould_early_stop
(self)
annotator/zoe/zoedepth/trainers/base_trainer.py:138
↓ 2 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
ldm/modules/diffusionmodules/util.py:160
↓ 2 callersMethodto_tensor
(self, pic)
annotator/zoe/zoedepth/data/vkitti.py:52
↓ 2 callersMethodto_tensor
(self, pic)
annotator/zoe/zoedepth/data/vkitti2.py:53
↓ 2 callersMethodto_tensor
(self, pic)
annotator/zoe/zoedepth/data/diode.py:51
↓ 2 callersMethodto_tensor
(self, pic)
annotator/zoe/zoedepth/data/data_mono.py:543
↓ 2 callersMethodto_tensor
(self, pic)
annotator/zoe/zoedepth/data/diml_outdoor_test.py:48
↓ 2 callersMethodto_tensor
(self, pic)
annotator/zoe/zoedepth/data/sun_rgbd_loader.py:48
↓ 2 callersMethodto_tensor
(self, pic)
annotator/zoe/zoedepth/data/hypersim.py:68
↓ 2 callersMethodto_tensor
(self, pic)
annotator/zoe/zoedepth/data/diml_indoor_test.py:51
↓ 2 callersMethodunfreeze
(self)
annotator/zoe/zoedepth/models/base_models/midas.py:247
↓ 2 callersFunctionupfirdn2d_native
(tensor, kernel, up=1, down=1, pad=(0, 0))
controlnet/resnet.py:432
↓ 2 callersMethodvalidate
(self)
annotator/zoe/zoedepth/trainers/base_trainer.py:259
↓ 2 callersFunctionzero_module
Zero out the parameters of a module and return it.
ldm/modules/attention.py:67
↓ 1 callersMethod__init__
( self, in_channels: int = 4, flip_sin_to_cos: bool = True, freq_shift: int =
controlnet/controlnet.py:80
↓ 1 callersMethod__init__
Init. Args: width (int): desired output width height (int): desired output height resize_target (bool, opt
annotator/zoe/zoedepth/models/base_models/midas.py:55
↓ 1 callersMethod__init__
( self, head, features=256, backbone="vitb_rn50_384", readout="project
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/dpt_depth.py:31
↓ 1 callersMethod__init__
Compute log binomial distribution for n_classes Args: n_classes (int, optional): number of output classes. Defaults to 256.
annotator/zoe/zoedepth/models/layers/dist_layers.py:37
↓ 1 callersMethod__init__
Attractor layer for bin centers. Bin centers are bounded on the interval (min_depth, max_depth)
annotator/zoe/zoedepth/models/layers/attractor.py:61
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size, temporal_kernel_size=None, **kwargs)
ldm/modules/diffusionmodules/util.py:288
↓ 1 callersMethod__len__
(self)
ldm/data/base.py:18
↓ 1 callersMethod_attention
(self, query, key, value, attention_mask=None)
controlnet/cross_attention_old.py:161
↓ 1 callersFunction_augment
(img)
ldm/modules/image_degradation/utils_image.py:475
↓ 1 callersMethod_create_ord_label
(self, gt)
annotator/zoe/zoedepth/trainers/loss.py:144
↓ 1 callersMethod_filter_relpaths
(self, relpaths)
ldm/data/imagenet.py:48
↓ 1 callersMethod_forward
(self, x, context, objs)
ldm/modules/attention.py:386
↓ 1 callersMethod_forward
Spatial-Temporal Self-Attn -> Cross-Frame Gated-Attn -> Modulated Cross-Attn -> FF
ldm/modules/attention.py:433
↓ 1 callersMethod_forward
(self, x, emb)
ldm/modules/diffusionmodules/openaimodel.py:212
↓ 1 callersMethod_forward
(self, x, emb)
ldm/modules/diffusionmodules/openaimodel3d.py:217
↓ 1 callersMethod_forward_impl
(self, x)
ldm/modules/diffusionmodules/resnet.py:232
↓ 1 callersFunction_get_paths_from_images
(path)
ldm/modules/image_degradation/utils_image.py:74
↓ 1 callersMethod_infer
Inference interface for the model Args: x (torch.Tensor): input tensor of shape (b, c, h, w) Returns:
annotator/zoe/zoedepth/models/depth_model.py:47
↓ 1 callersFunction_is_numpy_image
(img)
annotator/zoe/zoedepth/data/data_mono.py:60
↓ 1 callersFunction_is_pil_image
(img)
annotator/zoe/zoedepth/data/data_mono.py:56
↓ 1 callersMethod_load
(self)
ldm/data/imagenet.py:93
↓ 1 callersFunction_make_efficientnet_backbone
(effnet)
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/blocks.py:176
↓ 1 callersFunction_make_levit_backbone
( model, hooks=[3, 11, 21], patch_grid=[14, 14] )
annotator/zoe/zoedepth/models/base_models/midas_repo/midas/backbones/levit.py:23
← previousnext →101–200 of 1,051, ranked by callers