MCPcopy Create free account

hub / github.com/thygate/stable-diffusion-webui-depthmap-script / functions

Functions1,036 in github.com/thygate/stable-diffusion-webui-depthmap-script

Method__init__
( self, unet: UNet2DConditionModel, vae: AutoencoderKL, scheduler: DDIMSchedul
dmarigold/marigold/marigold_pipeline.py:68
Method__init__
(self, opt)
pix2pix/data/depthmerge_dataset.py:22
Method__init__
Initialize the class; save the options in the class Parameters: opt (Option class)-- stores all the experiment flags; needs to be
pix2pix/data/base_dataset.py:23
Method__init__
Initialize this class Step 1: create a dataset instance given the name [dataset_mode] Step 2: create a multi-threaded data loader.
pix2pix/data/__init__.py:65
Method__init__
(self, root, transform=None, return_paths=False, loader=default_loader)
pix2pix/data/image_folder.py:41
Method__init__
Reset the class; indicates the class hasn't been initailized
pix2pix/options/base_options.py:16
Method__init__
Initialize the BaseModel class. Parameters: opt (Option class)-- stores all the experiment flags; needs to be a subclass of BaseO
pix2pix/models/base_model.py:18
Method__init__
Initialize the pix2pix class. Parameters: opt (Option class)-- stores all the experiment flags; needs to be a subclass of BaseOpt
pix2pix/models/pix2pix4depth_model.py:38
Method__init__
Construct a Resnet-based generator Parameters: input_nc (int) -- the number of channels in input images output_n
pix2pix/models/networks.py:329
Method__init__
Initialize the Resnet block A resnet block is a conv block with skip connections We construct a conv block with build_conv_block func
pix2pix/models/networks.py:387
Method__init__
Construct a Unet generator Parameters: input_nc (int) -- the number of channels in input images output_nc (int) -- th
pix2pix/models/networks.py:447
Method__init__
Construct a Unet submodule with skip connections. Parameters: outer_nc (int) -- the number of filters in the outer conv layer
pix2pix/models/networks.py:482
Method__init__
Construct a PatchGAN discriminator Parameters: input_nc (int) -- the number of channels in input images ndf (int)
pix2pix/models/networks.py:549
Method__init__
Construct a 1x1 PatchGAN discriminator Parameters: input_nc (int) -- the number of channels in input images ndf (int
pix2pix/models/networks.py:597
Method__init__
(self, technique='cyclegan', verbose=True)
pix2pix/util/get_data.py:27
Method__init__
Initialize the HTML classes Parameters: web_dir (str) -- a directory that stores the webpage. HTML file will be created at <web_d
pix2pix/util/html.py:14
Method__init__
Initialize the Visualizer class Parameters: opt -- stores all the experiment flags; needs to be a subclass of BaseOptions
pix2pix/util/visualizer.py:53
Method__init__
(self, source, reference, r=64, eps= 0.05**2)
pix2pix/util/guidedfilter.py:4
Method__init__
Initialize the ImagePool class Parameters: pool_size (int) -- the size of image buffer, if pool_size=0, no buffer will be created
pix2pix/util/image_pool.py:12
Method__init__
(self)
inpaint/networks.py:9
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, bia
inpaint/networks.py:63
Method__init__
(self, layer_size=7, upsampling_mode='nearest')
inpaint/networks.py:135
Method__init__
(self, residual_blocks=8, init_weights=True)
inpaint/networks.py:238
Method__init__
(self, layer_size=7, upsampling_mode='nearest', add_hole_mask=False, add_two_layer=False, add_border=False)
inpaint/networks.py:333
Method__init__
(self, use_sigmoid=True, use_spectral_norm=True, init_weights=True, in_channels=None)
inpaint/networks.py:431
Method__init__
(self, dim, dilation=1)
inpaint/networks.py:475
Method__init__
(self, fov, verts, faces, colors,
inpaint/mesh.py:2370
Method__ior__
Add an extra bundle into your bundle, so you could have more bundeled items in your bundle.
src/gradio_args_transport.py:39
Method__isub__
Add an element that will not be packed into a bundle, but will be accessible.
src/gradio_args_transport.py:34
Method__iter__
(self)
dzoedepth/data/data_mono.py:208
Method__iter__
Return a batch of data
pix2pix/data/__init__.py:88
Method__len__
(self)
dzoedepth/data/vkitti.py:132
Method__len__
(self)
dzoedepth/data/vkitti2.py:168
Method__len__
(self)
dzoedepth/data/diode.py:117
Method__len__
(self)
dzoedepth/data/data_mono.py:211
Method__len__
(self)
dzoedepth/data/data_mono.py:509
Method__len__
(self)
dzoedepth/data/diml_outdoor_test.py:105
Method__len__
(self)
dzoedepth/data/sun_rgbd_loader.py:100
Method__len__
(self)
dzoedepth/data/hypersim.py:132
Method__len__
(self)
dzoedepth/data/ddad.py:111
Method__len__
(self)
dzoedepth/data/ibims.py:75
Method__len__
(self)
dzoedepth/data/diml_indoor_test.py:116
Method__len__
(self)
src/depthmap_generation.py:577
Method__len__
(self)
ddepth_anything_v2/metric_depth/dataset/kitti.py:56
Method__len__
(self)
ddepth_anything_v2/metric_depth/dataset/vkitti2.py:53
Method__len__
(self)
ddepth_anything_v2/metric_depth/dataset/hypersim.py:73
Method__len__
Return the total number of images.
pix2pix/data/depthmerge_dataset.py:81
Method__len__
Return the total number of images in the dataset.
pix2pix/data/base_dataset.py:46
Method__len__
Return the number of data in the dataset
pix2pix/data/__init__.py:84
Method__len__
(self)
pix2pix/data/image_folder.py:64
Method__new__
(cls, *args, **kwds)
src/common_constants.py:8
Method__setattr__
(self, name, value)
dzoedepth/utils/easydict/__init__.py:134
Method_dequantize_depth
Inverse of quantization depth : NCHW -> N1HW
dzoedepth/trainers/loss.py:211
Function_get_rel_pos_bias
Modification of timm.models.beit.py: Attention._get_rel_pos_bias to support arbitrary window sizes.
dmidas/backbones/beit.py:29
Function_resize_pos_embed
(self, posemb, gs_h, gs_w)
dmidas/backbones/vit.py:16
Functionapply_min_size
Rezise the sample to ensure the given size. Keeps aspect ratio. Args: sample (dict): sample size (tuple): image size Returns
dmidas/transforms.py:6
Functionapply_min_size
Rezise the sample to ensure the given size. Keeps aspect ratio. Args: sample (dict): sample size (tuple): image size Returns
ddepth_anything_v2/metric_depth/dataset/transform.py:8
Functionattention_forward
Modification of timm.models.beit.py: Attention.forward to support arbitrary window sizes.
dmidas/backbones/beit.py:65
Methodattn_residual_func
(x: Tensor)
ddepth_anything_v2/depth_anything_v2/dinov2_layers/block.py:83
Methodattn_residual_func
(x: Tensor, attn_bias=None)
ddepth_anything_v2/depth_anything_v2/dinov2_layers/block.py:213
Methodattn_residual_func
(x: Tensor)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/block.py:83
Methodattn_residual_func
(x: Tensor, attn_bias=None)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/block.py:213
Functionbeit_forward_features
Modification of timm.models.beit.py: Beit.forward_features to support arbitrary window sizes.
dmidas/backbones/beit.py:110
Functionblock_forward
Modification of timm.models.beit.py: Block.forward to support arbitrary window sizes.
dmidas/backbones/beit.py:94
Methodbuild_from_config
(config)
dzoedepth/models/zoedepth/zoedepth_v1.py:249
Methodbuild_from_config
(config)
dzoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:332
Functioncal_gradient_penalty
Calculate the gradient penalty loss, used in WGAN-GP paper https://arxiv.org/abs/1704.00028 Arguments: netD (network) -- dis
pix2pix/models/networks.py:286
Functioncalculate_fov_FB
(mesh)
inpaint/mesh.py:120
Functionclean_far_edge
(mask_edge, mask_edge_with_id, context_edge, mask, info_on_pix, global_mesh, anchor)
inpaint/utils.py:665
Functionclosure
(x)
dmarigold/marigold/util/ensemble.py:59
Functioncount_parameters
(model, include_all=False)
dzoedepth/utils/misc.py:155
Methodcreate_visdom_connections
If the program could not connect to Visdom server, this function will start a new server at port < self.port >
pix2pix/util/visualizer.py:86
Functioncrop_black_or_white_border
Crops the white and black border of the RGB and depth images. Args: rgb: RGB image, shape (H, W, 3). This image is used to determine the
dzoedepth/data/preprocess.py:136
Functioncrop_maps_by_size
(size, *imaps)
inpaint/utils.py:906
Functioncustom_depthmap_change_fn
(mode, zero_on, three_on)
src/common_ui.py:373
Functiondefault_loader
(path)
pix2pix/data/image_folder.py:35
Functiondefine_D
Create a discriminator Parameters: input_nc (int) -- the number of channels in input images ndf (int) -- the number
pix2pix/models/networks.py:170
Functiondefine_G
Create a generator Parameters: input_nc (int) -- the number of channels in input images output_nc (int) -- the number of channels
pix2pix/models/networks.py:119
Functiondenormalize
Reverses the imagenet normalization applied to the input. Args: x (torch.Tensor - shape(N,3,H,W)): input tensor Returns: tor
dzoedepth/utils/misc.py:60
Functiondepth_api
(_: gr.Blocks, app: FastAPI)
scripts/depthmap_api.py:42
Functiondepth_resize
(depth, origin_size, image_size)
inpaint/utils.py:974
Functiondiagnose_network
Calculate and print the mean of average absolute(gradients) Parameters: net (torch network) -- Torch network name (str) -- the na
pix2pix/util/util.py:28
Functiondilate_valid_size
(isize_dict, imap, dilate=[0, 0])
inpaint/utils.py:897
Functionedge_inpainting
(edge_id, context_cc, erode_context_cc, mask_cc, edge_cc, extend_edge_cc, mesh, edge_map,
inpaint/mesh_tools.py:712
Functionexp_attractor
Exponential attractor: dc = exp(-alpha*|dx|^gamma) * dx , where dx = a - c, a = attractor point, c = bin center, dc = shift in bin centermmary for exp
dzoedepth/models/layers/attractor.py:30
Methodf
(*args, **kwargs)
ddepth_anything_v2/depth_anything_v2/dinov2.py:130
Methodf
(*args, **kwargs)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2.py:130
Methodffn_residual_func
(x: Tensor)
ddepth_anything_v2/depth_anything_v2/dinov2_layers/block.py:86
Methodffn_residual_func
(x: Tensor, attn_bias=None)
ddepth_anything_v2/depth_anything_v2/dinov2_layers/block.py:216
Methodffn_residual_func
(x: Tensor)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/block.py:86
Methodffn_residual_func
(x: Tensor, attn_bias=None)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/block.py:216
Functionfilter_irrelevant_edge
(self_edge, other_edges, other_edges_with_id, current_edge_id, context, edge_ccs, mesh, anchor)
inpaint/utils.py:988
Functionfind_largest_rect
(dst_img, bg_color=(128, 128, 128))
inpaint/utils.py:1403
Methodflops
(self)
ddepth_anything_v2/depth_anything_v2/dinov2_layers/patch_embed.py:84
Methodflops
(self)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/patch_embed.py:84
Functionfollow_image_aspect_ratio
(depth, image)
inpaint/utils.py:956
Methodforward
(self, input, target, mask=None, interpolate=True, return_interpolated=False)
dzoedepth/trainers/loss.py:49
Methodforward
(self, input, target, mask=None, interpolate=True, return_interpolated=False)
dzoedepth/trainers/loss.py:116
Methodforward
(self, input, target, mask=None, interpolate=True, return_interpolated=False)
dzoedepth/trainers/loss.py:221
Methodforward
(self, prediction, target, mask, interpolate=True, return_interpolated=False)
dzoedepth/trainers/loss.py:286
← previousnext →701–800 of 1,036, ranked by callers