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

Functionrgb2ycbcr
same as matlab rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
ldm/modules/image_degradation/utils_image.py:529
Functionsafe_step
(x, step=2)
annotator/util.py:78
Methodsample
(self)
ldm/modules/distributions/distributions.py:6
Functionsave_raw_16bit
(depth, fpath="raw.png")
annotator/zoe/zoedepth/utils/misc.py:358
Functionscale_module
Scale the parameters of a module and return it.
ldm/modules/diffusionmodules/util.py:192
Methodschedule
(self, n, **kwargs)
ldm/lr_scheduler.py:83
Functionset_alpha_scale
(model, alpha_scale)
inference.py:26
Methodset_attention_slice
(self, slice_size)
controlnet/attention_processor.py:159
Methodset_attention_slice
(self, slice_size)
controlnet/cross_attention_old.py:98
Methodset_attn_processor
r""" Parameters: `processor (`dict` of `AttentionProcessor` or `AttentionProcessor`): The instantiated processor c
controlnet/controlnet.py:327
Methodset_use_memory_efficient_attention_xformers
( self, use_memory_efficient_attention_xformers: bool, attention_op: Optional[Callable] = None )
controlnet/attention_processor.py:94
Methodset_use_memory_efficient_attention_xformers
(self, use_memory_efficient_attention_xformers: bool, valid:bool)
controlnet/attention.py:204
Functionshave
(img_in, border=0)
ldm/modules/image_degradation/utils_image.py:510
Functionsingle2tensor3
(img)
ldm/modules/image_degradation/utils_image.py:302
Functionsingle2tensor4
(img)
ldm/modules/image_degradation/utils_image.py:307
Functionsingle2tensor5
(img)
ldm/modules/image_degradation/utils_image.py:329
Functionsingle2uint
(img)
ldm/modules/image_degradation/utils_image.py:254
Functionsingle2uint16
(img)
ldm/modules/image_degradation/utils_image.py:264
Functionsingle32tensor5
(img)
ldm/modules/image_degradation/utils_image.py:333
Functionsingle42tensor4
(img)
ldm/modules/image_degradation/utils_image.py:337
Functionsplit_imageset
split the large images from original_dataroot into small overlapped images with size (p_size)x(p_size), and save them into taget_dataroot; on
ldm/modules/image_degradation/utils_image.py:125
Functionsrmd_degradation
blur + bicubic downsampling Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan_light.py:240
Functionsrmd_degradation
blur + bicubic downsampling Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan.py:240
Methodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
ldm/modules/ema.py:55
Functionstring_begins_with
(prefix, str)
ldm/modules/x_transformer.py:102
Methodstringify_losses
(L)
annotator/zoe/zoedepth/trainers/base_trainer.py:171
Functionsurf
(Z, cmap='rainbow', figsize=None)
ldm/modules/image_degradation/utils_image.py:47
Functiontensor2img
Converts a torch Tensor into an image Numpy array of BGR channel order Input: 4D(B,(3/1),H,W), 3D(C,H,W), or 2D(H,W), any range, RGB channel
ldm/modules/image_degradation/utils_image.py:342
Functiontensor2single
(img)
ldm/modules/image_degradation/utils_image.py:312
Functiontensor2single3
(img)
ldm/modules/image_degradation/utils_image.py:320
Functiontensor2uint
(img)
ldm/modules/image_degradation/utils_image.py:289
Methodtotal_iters
(self)
annotator/zoe/zoedepth/trainers/base_trainer.py:135
Methodtrain
(self)
annotator/zoe/zoedepth/trainers/base_trainer.py:142
Methodtrain_on_batch
Expects a batch of images and depth as input batch["image"].shape : batch_size, c, h, w batch["depth"].shape : batch_size, 1,
annotator/zoe/zoedepth/trainers/zoedepth_nk_trainer.py:47
Methodtrain_on_batch
Expects a batch of images and depth as input batch["image"].shape : batch_size, c, h, w batch["depth"].shape : batch_size, 1,
annotator/zoe/zoedepth/trainers/zoedepth_trainer.py:48
Methodtraining_step
(self, batch, batch_idx)
ldm/models/diffusion/classifier.py:198
Functionuint162single
(img)
ldm/modules/image_degradation/utils_image.py:259
Functionuint2single
(img)
ldm/modules/image_degradation/utils_image.py:249
Functionuint2tensor3
(img)
ldm/modules/image_degradation/utils_image.py:282
Functionuint2tensor4
(img)
ldm/modules/image_degradation/utils_image.py:275
Methodunfreeze_conf
Unfreezes all the 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:304
Functionuniq
(arr)
ldm/modules/attention.py:16
Functionurl_to_torch
(url, size=(384, 384))
annotator/zoe/zoedepth/utils/misc.py:347
Methodvalidate_on_batch
(self, batch, val_step)
annotator/zoe/zoedepth/trainers/zoedepth_nk_trainer.py:115
Methodvalidate_on_batch
(self, batch, val_step)
annotator/zoe/zoedepth/trainers/zoedepth_trainer.py:148
Methodvalidation_step
(self, batch, batch_idx)
ldm/models/diffusion/classifier.py:210
Functionwrite_depth
Write depth map to png file. Args: path (str): filepath without extension depth (array): depth grayscale (bool): use a gr
annotator/zoe/zoedepth/models/base_models/midas_repo/utils.py:166
Functionwrite_depth
Write depth map to pfm and png file. Args: path (str): filepath without extension depth (array): depth
annotator/zoe/zoedepth/models/base_models/midas_repo/tf/utils.py:59
Functionwrite_pfm
Write pfm file. Args: path (str): pathto file image (array): data scale (int, optional): Scale. Defaults to 1.
annotator/zoe/zoedepth/models/base_models/midas_repo/utils.py:59
Functionycbcr2rgb
same as matlab ycbcr2rgb Input: uint8, [0, 255] float, [0, 1]
ldm/modules/image_degradation/utils_image.py:553
Method~Midas
annotator/zoe/zoedepth/models/base_models/midas_repo/ros/midas_cpp/src/main.cpp:166
← previous1,001–1,051 of 1,051, ranked by callers