Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ali-vilab/AnyDoor
/ functions
Functions
1,053 in github.com/ali-vilab/AnyDoor
⨍
Functions
1,053
◇
Types & classes
180
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
Method
accuracy_averaging
(self)
dinov2/dinov2/eval/metrics.py:28
Function
add_Poisson_noise
(img)
ldm/modules/image_degradation/bsrgan_light.py:407
Method
add_meter
(self, name, meter)
dinov2/dinov2/logging/helpers.py:51
Function
add_resize
(img, sf=4)
ldm/modules/image_degradation/bsrgan_light.py:342
Function
add_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
Function
add_speckle_noise
(img, noise_level1=2, noise_level2=25)
ldm/modules/image_degradation/bsrgan_light.py:389
Function
analytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
ldm/modules/image_degradation/bsrgan_light.py:48
Function
analytic_kernel
Calculate the X4 kernel from the X2 kernel (for proof see appendix in paper)
ldm/modules/image_degradation/bsrgan.py:49
Function
apply_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
Method
attn_residual_func
(x: Tensor)
dinov2/dinov2/layers/block.py:83
Method
attn_residual_func
(x: Tensor, attn_bias=None)
dinov2/dinov2/layers/block.py:213
Method
aug_data
(self, image)
datasets/fashiontryon.py:23
Method
aug_data_back
(self, image)
datasets/base.py:24
Function
aug_data_mask
(image, mask)
run_inference.py:35
Function
augment_img_np3
(img, mode=0)
ldm/modules/image_degradation/utils_image.py:441
Function
augment_img_tensor
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:422
Function
augment_img_tensor4
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:401
Function
augment_imgs
(img_list, hflip=True, rot=True)
ldm/modules/image_degradation/utils_image.py:469
Method
avg
(self)
dinov2/dinov2/logging/helpers.py:172
Function
betas_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
Function
blur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan_light.py:127
Function
blur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan.py:128
Function
calculate_psnr
(img1, img2, border=0)
ldm/modules/image_degradation/utils_image.py:621
Function
calculate_ssim
calculate SSIM the same outputs as MATLAB's img1, img2: [0, 255]
ldm/modules/image_degradation/utils_image.py:642
Function
channel_convert
(in_c, tar_type, img_list)
ldm/modules/image_degradation/utils_image.py:597
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/uvo_val.py:39
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/ytb_vis.py:33
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/dreambooth.py:36
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/lvis.py:61
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/mose.py:27
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/uvo.py:32
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/saliency_modular.py:54
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/ytb_vos.py:33
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/vipseg.py:27
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/mvimagenet.py:24
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/fashiontryon.py:31
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/vitonhd.py:23
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/dresscode.py:23
Method
check_region_size
(self, image, yyxx, ratio, mode = 'max')
datasets/sam.py:62
Method
checkpoint
(self)
dinov2/dinov2/run/eval/linear.py:29
Method
checkpoint
(self)
dinov2/dinov2/run/eval/log_regression.py:29
Method
checkpoint
(self)
dinov2/dinov2/run/eval/knn.py:29
Method
checkpoint
(self)
dinov2/dinov2/run/train/train.py:29
Function
classical_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
Function
classical_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
Function
collate_data_and_cast
(samples_list, mask_ratio_tuple, mask_probability, dtype, n_tokens=None, mask_generator=None)
dinov2/dinov2/data/collate.py:11
Method
configure_optimizers
(self)
ldm/models/autoencoder.py:150
Method
configure_optimizers
(self)
ldm/models/diffusion/ddpm.py:514
Method
configure_optimizers
(self)
ldm/models/diffusion/ddpm.py:1290
Method
configure_optimizers
(self)
cldm/cldm.py:422
Function
convert_module_to_f16
(x)
ldm/modules/diffusionmodules/openaimodel.py:23
Function
convert_module_to_f32
(x)
ldm/modules/diffusionmodules/openaimodel.py:26
Method
convert_to_fp16
Convert the torso of the model to float16.
ldm/modules/diffusionmodules/openaimodel.py:738
Method
convert_to_fp32
Convert the torso of the model to float32.
ldm/modules/diffusionmodules/openaimodel.py:746
Method
count_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:374
Method
count_flops
(model, _x, y)
ldm/modules/diffusionmodules/openaimodel.py:408
Method
decode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:209
Method
decode
(self, x_latent, cond, t_start, unconditional_guidance_scale=1.0, unconditional_conditioning=None,
cldm/ddim_hacked.py:299
Method
decode
(self)
dinov2/dinov2/data/datasets/decoders.py:22
Method
decode
(self)
dinov2/dinov2/data/datasets/decoders.py:31
Method
decode
(self)
dinov2/dinov2/data/datasets/decoders.py:39
Function
degradation_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
Function
degradation_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
Function
degradation_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
Function
degradation_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
Function
degradation_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
Function
dinov2_vitb14
DINOv2 ViT-B/14 model pretrained on the LVD-142M dataset.
dinov2/hubconf.py:59
Function
dinov2_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
Function
dinov2_vitg14
DINOv2 ViT-g/14 model (optionally) pretrained on the LVD-142M dataset.
dinov2/hubconf.py:73
Function
dinov2_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
Function
dinov2_vitl14
DINOv2 ViT-L/14 model (optionally) pretrained on the LVD-142M dataset.
dinov2/hubconf.py:66
Function
dinov2_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
Function
dinov2_vits14
DINOv2 ViT-S/14 model (optionally) pretrained on the LVD-142M dataset.
dinov2/hubconf.py:52
Function
dinov2_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
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/modules/encoders/modules.py:71
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/modules/midas/api.py:22
Function
disabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/ddpm.py:36
Function
dpsr_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
Function
dpsr_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
Method
dump_extra
(self, root: Optional[str] = None)
dinov2/dinov2/data/datasets/image_net_22k.py:303
Method
dump_extra
(self, split: "ImageNet.Split", root: Optional[str] = None)
dinov2/dinov2/data/datasets/image_net.py:249
Function
enable
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
Method
encode
(self, x)
ldm/modules/encoders/modules.py:40
Method
encode
(self, text)
ldm/modules/encoders/modules.py:103
Method
encode
(self, text)
ldm/modules/encoders/modules.py:149
Method
encode
(self, text)
ldm/modules/encoders/modules.py:211
Method
encode
(self, text)
ldm/modules/encoders/modules.py:225
Method
encode
(self, image)
ldm/modules/encoders/modules.py:269
Method
encode
(self, image)
ldm/modules/encoders/modules.py:314
Method
encode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:206
Method
encode
(self, x0, c, t_enc, use_original_steps=False, return_intermediates=None, unconditional_guidanc
cldm/ddim_hacked.py:235
Method
entries_path
(self)
dinov2/dinov2/data/datasets/image_net_22k.py:53
Function
extract_canney_noise
(image, mask, dilate=True)
datasets/data_utils.py:223
Function
extract_target_boundary
(img, target_mask)
datasets/data_utils.py:343
Method
f
(*args, **kwargs)
dinov2/dinov2/models/vision_transformer.py:118
← previous
next →
701–800 of 1,053, ranked by callers