MCPcopy Create free account

hub / github.com/ali-vilab/AnyDoor / functions

Functions1,053 in github.com/ali-vilab/AnyDoor

Method_predict_eps_from_xstart
(self, x_t, t, pred_xstart)
ldm/models/diffusion/ddpm.py:871
Method_prior_bpd
Get the prior KL term for the variational lower-bound, measured in bits-per-dim. This term can't be optimized, as it only dep
ldm/models/diffusion/ddpm.py:875
Function_resize_pos_embed
(self, posemb, gs_h, gs_w)
ldm/modules/midas/midas/vit.py:100
Function_shuffle_tensor_slice
( *, tensor: torch.Tensor, start: int = 0, step: int = 1, generator: torch.Generator )
dinov2/dinov2/data/samplers.py:126
Method_tarballs_root
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:199
Methodaccuracy_averaging
(self)
dinov2/dinov2/eval/metrics.py:28
Functionadd_Poisson_noise
(img)
ldm/modules/image_degradation/bsrgan_light.py:407
Methodadd_meter
(self, name, meter)
dinov2/dinov2/logging/helpers.py:51
Functionadd_resize
(img, sf=4)
ldm/modules/image_degradation/bsrgan_light.py:342
Functionadd_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_light.py:298
Functionadd_speckle_noise
(img, noise_level1=2, noise_level2=25)
ldm/modules/image_degradation/bsrgan_light.py:389
Functionanalytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
ldm/modules/image_degradation/bsrgan_light.py:48
Functionanalytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
ldm/modules/image_degradation/bsrgan.py:49
Functionapply_min_size
Rezise the sample to ensure the given size. Keeps aspect ratio. Args: sample (dict): sample size (tuple): image size Returns
ldm/modules/midas/midas/transforms.py:6
Methodattn_residual_func
(x: Tensor)
dinov2/dinov2/layers/block.py:83
Methodattn_residual_func
(x: Tensor, attn_bias=None)
dinov2/dinov2/layers/block.py:213
Methodaug_data
(self, image)
datasets/fashiontryon.py:23
Methodaug_data_back
(self, image)
datasets/base.py:24
Functionaug_data_mask
(image, mask)
run_inference.py:35
Functionaugment_img_np3
(img, mode=0)
ldm/modules/image_degradation/utils_image.py:441
Functionaugment_img_tensor
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:422
Functionaugment_img_tensor4
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:401
Functionaugment_imgs
(img_list, hflip=True, rot=True)
ldm/modules/image_degradation/utils_image.py:469
Methodavg
(self)
dinov2/dinov2/logging/helpers.py:172
Functionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
ldm/modules/diffusionmodules/util.py:77
Functionblur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan_light.py:127
Functionblur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan.py:128
Functioncalculate_psnr
(img1, img2, border=0)
ldm/modules/image_degradation/utils_image.py:621
Functioncalculate_ssim
calculate SSIM the same outputs as MATLAB's img1, img2: [0, 255]
ldm/modules/image_degradation/utils_image.py:642
Functionchannel_convert
(in_c, tar_type, img_list)
ldm/modules/image_degradation/utils_image.py:597
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/uvo_val.py:39
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/ytb_vis.py:33
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/dreambooth.py:36
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/lvis.py:61
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/mose.py:27
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/uvo.py:32
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/saliency_modular.py:54
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/ytb_vos.py:33
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/vipseg.py:27
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/mvimagenet.py:24
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/fashiontryon.py:31
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/vitonhd.py:23
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/dresscode.py:23
Methodcheck_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/sam.py:62
Methodcheckpoint
(self)
dinov2/dinov2/run/eval/linear.py:29
Methodcheckpoint
(self)
dinov2/dinov2/run/eval/log_regression.py:29
Methodcheckpoint
(self)
dinov2/dinov2/run/eval/knn.py:29
Methodcheckpoint
(self)
dinov2/dinov2/run/train/train.py:29
Functionclassical_degradation
blur + downsampling Args: x: HxWxC image, [0, 1]/[0, 255] k: hxw, double sf: down-scale factor Return: downsa
ldm/modules/image_degradation/bsrgan_light.py:283
Functionclassical_degradation
blur + downsampling Args: x: HxWxC image, [0, 1]/[0, 255] k: hxw, double sf: down-scale factor Return: downsa
ldm/modules/image_degradation/bsrgan.py:284
Functioncollate_data_and_cast
(samples_list, mask_ratio_tuple, mask_probability, dtype, n_tokens=None, mask_generator=None)
dinov2/dinov2/data/collate.py:11
Methodconfigure_optimizers
(self)
ldm/models/autoencoder.py:150
Methodconfigure_optimizers
(self)
ldm/models/diffusion/ddpm.py:514
Methodconfigure_optimizers
(self)
ldm/models/diffusion/ddpm.py:1290
Methodconfigure_optimizers
(self)
cldm/cldm.py:422
Functionconvert_module_to_f16
(x)
ldm/modules/diffusionmodules/openaimodel.py:23
Functionconvert_module_to_f32
(x)
ldm/modules/diffusionmodules/openaimodel.py:26
Methodconvert_to_fp16
Convert the torso of the model to float16.
ldm/modules/diffusionmodules/openaimodel.py:738
Methodconvert_to_fp32
Convert the torso of the model to float32.
ldm/modules/diffusionmodules/openaimodel.py:746
Methodcount_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:374
Methodcount_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:408
Methoddecode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:209
Methoddecode
(self, x_latent, cond, t_start, unconditional_guidance_scale=1.0, unconditional_conditioning=None,
cldm/ddim_hacked.py:299
Methoddecode
(self)
dinov2/dinov2/data/datasets/decoders.py:22
Methoddecode
(self)
dinov2/dinov2/data/datasets/decoders.py:31
Methoddecode
(self)
dinov2/dinov2/data/datasets/decoders.py:39
Functiondegradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan_light.py:441
Functiondegradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan.py:438
Functiondegradation_bsrgan_plus
This is an extended degradation model by combining the degradation models of BSRGAN and Real-ESRGAN ---------- img: HXWXC, [0, 1], it
ldm/modules/image_degradation/bsrgan.py:617
Functiondegradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan_light.py:533
Functiondegradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan.py:530
Functiondinov2_vitb14
DINOv2 ViT-B/14 model pretrained on the LVD-142M dataset.
dinov2/hubconf.py:59
Functiondinov2_vitb14_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-B/14 backbone (optionally) pretrained on the LVD-142M dataset and trained on ImageNet-1k
dinov2/hubconf.py:154
Functiondinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
dinov2/hubconf.py:73
Functiondinov2_vitg14_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-g/14 backbone (optionally) pretrained on the LVD-142M dataset and trained on ImageNet-1k
dinov2/hubconf.py:168
Functiondinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
dinov2/hubconf.py:66
Functiondinov2_vitl14_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-L/14 backbone (optionally) pretrained on the LVD-142M dataset and trained on ImageNet-1k
dinov2/hubconf.py:161
Functiondinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
dinov2/hubconf.py:52
Functiondinov2_vits14_lc
Linear classifier (1 or 4 layers) on top of a DINOv2 ViT-S/14 backbone (optionally) pretrained on the LVD-142M dataset and trained on ImageNet-1k
dinov2/hubconf.py:147
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/modules/encoders/modules.py:71
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/modules/midas/api.py:22
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/ddpm.py:36
Functiondpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan_light.py:261
Functiondpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan.py:262
Methoddump_extra
(self, root: Optional[str] = None)
dinov2/dinov2/data/datasets/image_net_22k.py:303
Methoddump_extra
(self, split: "ImageNet.Split", root: Optional[str] = None)
dinov2/dinov2/data/datasets/image_net.py:249
Functionenable
Enable distributed mode Args: set_cuda_current_device: If True, call torch.cuda.set_device() to set the current PyTorch CUDA
dinov2/dinov2/distributed/__init__.py:240
Methodencode
(self, x)
ldm/modules/encoders/modules.py:40
Methodencode
(self, text)
ldm/modules/encoders/modules.py:103
Methodencode
(self, text)
ldm/modules/encoders/modules.py:149
Methodencode
(self, text)
ldm/modules/encoders/modules.py:211
Methodencode
(self, text)
ldm/modules/encoders/modules.py:225
Methodencode
(self, image)
ldm/modules/encoders/modules.py:269
Methodencode
(self, image)
ldm/modules/encoders/modules.py:314
Methodencode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:206
Methodencode
(self, x0, c, t_enc, use_original_steps=False, return_intermediates=None, unconditional_guidanc
cldm/ddim_hacked.py:235
Methodentries_path
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:53
Functionextract_canney_noise
(image, mask, dilate=True)
datasets/data_utils.py:223
Functionextract_target_boundary
(img, target_mask)
datasets/data_utils.py:343
Methodf
(*args, **kwargs)
dinov2/dinov2/models/vision_transformer.py:118
← previousnext →701–800 of 1,053, ranked by callers