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

↓ 3 callersFunctionpreprocessing_transforms
(mode, **kwargs)
dzoedepth/data/data_mono.py:64
↓ 3 callersMethodreinit_camera
(self, fov)
inpaint/mesh.py:2408
↓ 3 callersMethodremove_hooks
(self)
dzoedepth/models/base_models/midas.py:321
↓ 3 callersMethodrender
(self)
inpaint/mesh.py:2402
↓ 3 callersMethodsave
(self, label)
pix2pix/models/base_model_hg.py:37
↓ 3 callersFunctionsize_operation
(size_a, size_b, operation)
inpaint/mesh_tools.py:459
↓ 3 callersMethodtest
Forward function used in test time. This function wraps <forward> function in no_grad() so we don't save intermediate steps for backprop
pix2pix/models/base_model.py:98
↓ 3 callersMethodtranslate
(self, trans=[0,0,0])
inpaint/mesh.py:2393
↓ 3 callersFunctionupdate_model_config
(config, mode, model_name, model_version=None, strict=False)
dzoedepth/utils/config.py:334
↓ 2 callersFunctionDL_inpaint_edge
(mesh, info_on_pix, config, image,
inpaint/mesh.py:1395
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000, zero_init_residual=False, groups=1, width_per_group=6
lib/Resnext_torch.py:121
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000)
lib/Resnet.py:96
↓ 2 callersMethod__init__
( self, in_channels, features=256, use_bn=False, out_channels=[256
ddepth_anything_v2/depth_anything_v2/dpt.py:39
↓ 2 callersMethod__init__
( self, in_channels, features=256, use_bn=False, out_channels=[256
ddepth_anything_v2/metric_depth/depth_anything_v2/dpt.py:39
↓ 2 callersMethod_append_el
(self, thing, ignored=False)
src/gradio_args_transport.py:18
↓ 2 callersFunction_make_divisible
(v, divisor, min_value=None)
dmidas/backbones/next_vit.py:96
↓ 2 callersFunction_make_vit_b16_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11], vit_features=
dmidas/backbones/vit.py:75
↓ 2 callersMethod_print
(self, text)
pix2pix/util/get_data.py:35
↓ 2 callersMethodadd_border
(self, input, mask_flag, PCONV=True)
inpaint/networks.py:158
↓ 2 callersFunctionapply_stereo_divergence
(original_image, depth, divergence, separation, stereo_offset_exponent, fill_technique)
src/stereoimage_generation.py:77
↓ 2 callersFunctionbatched_background_removal
(inimages, model_name)
src/core.py:675
↓ 2 callersFunctionchange_dataset
(config, new_dataset)
dzoedepth/utils/config.py:435
↓ 2 callersFunctionclean_far_edge_new
(input_edge, end_depth_maps, mask, context, global_mesh, info_on_pix, self_edge, inpaint_id, config)
inpaint/utils.py:114
↓ 2 callersFunctionclean_folder
(folder, img_exts=['.png', '.jpg', '.npy'])
inpaint/boostmonodepth_utils.py:47
↓ 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
dzoedepth/utils/misc.py:202
↓ 2 callersMethodcompute_visuals
Calculate additional output images for visdom and HTML visualization
pix2pix/models/base_model.py:108
↓ 2 callersFunctioncontext_and_holes
(mesh, edge_ccs, config, specific_edge_id, specific_edge_loc, depth_feat_model, connect_
inpaint/mesh.py:910
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
lib/Resnet.py:17
↓ 2 callersFunctioncreate_dataset
Create a dataset given the option. This function wraps the class CustomDatasetDataLoader. This is the main interface between this package
pix2pix/data/__init__.py:47
↓ 2 callersFunctioncreate_model
Create a model given the option. This function warps the class CustomDatasetDataLoader. This is the main interface between this package and '
pix2pix/models/__init__.py:54
↓ 2 callersFunctioncreate_triangles
Reference: https://github.com/google-research/google-research/blob/e96197de06613f1b027d20328e06d69829fa5a89/infinite_nature/render_utils.py#L68
dzoedepth/utils/geometry.py:75
↓ 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
dzoedepth/data/preprocess.py:124
↓ 2 callersFunctiondepth_inpainting
(context_cc, extend_context_cc, erode_context_cc, mask_cc, mesh, config, union_size, depth_feat_model, edge_ou
inpaint/mesh_tools.py:751
↓ 2 callersFunctiondepth_to_pcd
(depth, u_u0, v_v0, f, invalid_value=0)
lib/test_utils.py:23
↓ 2 callersFunctiondoubleestimate
(img, size1, size2, pix2pixsize, model, net_type, pix2pixmodel)
src/depthmap_generation.py:1028
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
ddepth_anything_v2/depth_anything_v2/dinov2_layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth
( x: Tensor, residual_func: Callable[[Tensor], Tensor], sample_drop_ratio: float = 0.0, )
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/block.py:110
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
ddepth_anything_v2/depth_anything_v2/dinov2_layers/block.py:181
↓ 2 callersFunctiondrop_add_residual_stochastic_depth_list
( x_list: List[Tensor], residual_func: Callable[[Tensor, Any], Tensor], sample_drop_ratio: float =
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/block.py:181
↓ 2 callersMethodenkey_body
This is what should be passed into the function that is called by gradio
src/gradio_args_transport.py:67
↓ 2 callersMethodenkey_tail
Must be the last element of the bundle for unbundling to work
src/gradio_args_transport.py:61
↓ 2 callersMethodenkey_to_dict
Unbundle: get a dictionary with stuff after it is sent bby the gradio to the function. Enkey format: bunch of Gradio components, then
src/gradio_args_transport.py:82
↓ 2 callersFunctionestimatedepthanything
(image, model, w, h)
src/depthmap_generation.py:516
↓ 2 callersFunctionestimatedepthanything_v2
(image, model, w, h)
src/depthmap_generation.py:548
↓ 2 callersFunctionestimateleres
(img, model, w, h)
src/depthmap_generation.py:406
↓ 2 callersFunctionestimatemarigold
(image, model, w, h, marigold_ensembles=5, marigold_steps=12)
src/depthmap_generation.py:504
↓ 2 callersFunctionestimatezoedepth
(img, model, w, h)
src/depthmap_generation.py:443
↓ 2 callersFunctionfilter_edge
(mesh, edge_ccs, config, invalid=False)
inpaint/mesh_tools.py:47
↓ 2 callersFunctionfind_dataset_using_name
Import the module "data/[dataset_name]_dataset.py". In the file, the class called DatasetNameDataset() will be instantiated. It has to be a s
pix2pix/data/__init__.py:18
↓ 2 callersFunctionfind_model_using_name
Import the module "models/[model_name]_model.py". In the file, the class called DatasetNameModel() will be instantiated. It has to be a subcl
pix2pix/models/__init__.py:25
↓ 2 callersFunctionformat_exception
(e: Exception)
src/common_ui.py:434
↓ 2 callersFunctionforward_adapted_unflatten
(pretrained, x, function_name="forward_features")
dmidas/backbones/utils.py:83
↓ 2 callersFunctionforward_default
(pretrained, x, function_name="forward_features")
dmidas/backbones/utils.py:63
↓ 2 callersMethodforward_features
(self, x, masks=None)
ddepth_anything_v2/depth_anything_v2/dinov2.py:253
↓ 2 callersFunctiongetGF_fromintegral
(integralimage, rect)
src/depthmap_generation.py:1170
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
ddepth_anything_v2/depth_anything_v2/dinov2_layers/block.py:157
↓ 2 callersFunctionget_attn_bias_and_cat
this will perform the index select, cat the tensors, and provide the attn_bias from cache
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/block.py:157
↓ 2 callersFunctionget_black_border
Crops the black border of the RGB. Args: rgb: RGB image, shape (H, W, 3). Returns: Crop parameters.
dzoedepth/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)
dzoedepth/data/preprocess.py:39
↓ 2 callersMethodget_conf_parameters
Returns parameters of all the ModuleDicts children that are exclusively used for the given bin configuration
dzoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:285
↓ 2 callersFunctionget_norm_layer
Return a normalization layer Parameters: norm_type (str) -- the name of the normalization layer: batch | instance | none For BatchNo
pix2pix/models/networks.py:18
↓ 2 callersFunctionget_readout_oper
(vit_features, features, use_readout, start_index=1)
dmidas/backbones/utils.py:127
↓ 2 callersFunctionget_uniquefn
(outpath, basename, ext, suffix='')
src/core.py:352
↓ 2 callersMethodget_value
(self)
dzoedepth/utils/misc.py:91
↓ 2 callersFunctionget_vkitti2_loader
(data_dir_root, batch_size=1, **kwargs)
dzoedepth/data/vkitti2.py:172
↓ 2 callersFunctionget_vkitti_loader
(data_dir_root, batch_size=1, **kwargs)
dzoedepth/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.
dzoedepth/data/preprocess.py:82
↓ 2 callersFunctionglobal_scaling
Normalizes objs, but uses (a, b) instead of (minimum, maximum) value of objs, if supplied
src/video_mode.py:104
↓ 2 callersFunctiongrad
(x)
dzoedepth/trainers/loss.py:96
↓ 2 callersMethodimage2tensor
(self, raw_image, input_size=518)
ddepth_anything_v2/depth_anything_v2/dpt.py:196
↓ 2 callersMethodinfer_image
(self, raw_image, input_size=518)
ddepth_anything_v2/metric_depth/depth_anything_v2/dpt.py:188
↓ 2 callersFunctioninfer_type
(x)
dzoedepth/utils/arg_utils.py:3
↓ 2 callersFunctioninit_image_coor
(height, width, u0=None, v0=None)
lib/test_utils.py:8
↓ 2 callersFunctioninit_net
Initialize a network: 1. register CPU/GPU device (with multi-GPU support); 2. initialize the network weights Parameters: net (network)
pix2pix/models/networks.py:101
↓ 2 callersMethodinit_weights
initialize network's weights init_type: normal | xavier | kaiming | orthogonal https://github.com/junyanz/pytorch-CycleGAN-an
inpaint/networks.py:12
↓ 2 callersMethodload_networks
Load all the networks from the disk. Parameters: epoch (int) -- current epoch; used in the file name '%s_net_%s.pth' % (epoch, na
pix2pix/models/base_model.py:176
↓ 2 callersFunctionload_state_dict
Load state_dict into model, handling DataParallel and DistributedDataParallel. Also checks for "model" key in state_dict. DataParallel prefixes s
dzoedepth/models/model_io.py:27
↓ 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
dzoedepth/models/model_io.py:64
↓ 2 callersFunctionload_wts
(model, checkpoint_path)
dzoedepth/models/model_io.py:54
↓ 2 callersFunctionmake_2tuple
(x)
ddepth_anything_v2/depth_anything_v2/dinov2_layers/patch_embed.py:17
↓ 2 callersFunctionmake_2tuple
(x)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/patch_embed.py:17
↓ 2 callersFunctionmake_backbone_default
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[2, 5, 8, 11],
dmidas/backbones/utils.py:144
↓ 2 callersFunctionmax_rectangle_size
(histogram)
inpaint/utils.py:1365
↓ 2 callersFunctionmkdir
create a single empty directory if it didn't exist Parameters: path (str) -- a single directory path
pix2pix/util/util.py:98
↓ 2 callersMethodmove_models_to
(self, device)
src/depthmap_generation.py:356
↓ 2 callersFunctionopen_path_as_images
Takes the filepath, returns (fps, frames). Every frame is a Pillow Image object
src/video_mode.py:13
↓ 2 callersFunctionopen_small_mask
(mask, context, open_iteration, kernel)
inpaint/utils.py:54
↓ 2 callersFunctionoutput_3d_photo
(verts, colors, faces, Height, Width, hFov, vFov, tgt_poses, video_traj_types, ref_pose, o
inpaint/mesh.py:2413
↓ 2 callersFunctionoverlap_red_cyan
(im1, im2)
src/stereoimage_generation.py:287
↓ 2 callersMethodparse
Parse our options, create checkpoints directory suffix, and set up gpu device.
pix2pix/options/base_options.py:133
↓ 2 callersFunctionpath_planning
(num_frames, x, y, z, path_type='')
inpaint/utils.py:29
↓ 2 callersFunctionplan_path
(mesh, info_on_pix, cc, end_pt, global_mesh, input_edge, mask, valid_map, inpaint_id, npath_map=None, fpath_ma
inpaint/utils.py:438
↓ 2 callersFunctionpoint_to_voxel
(x, z)
lib/spvcnn_utils.py:37
↓ 2 callersMethodquantize_depth
(self, depth)
dzoedepth/trainers/loss.py:198
↓ 2 callersFunctionread_ply
(mesh_fi)
inpaint/mesh.py:2266
↓ 2 callersFunctionrecursive_add_edge
(edge_mesh, mesh, info_on_pix, cur_node, mark)
inpaint/mesh_tools.py:815
↓ 2 callersFunctionrefine_depth_around_edge
(mask_depth, far_edge, uncleaned_far_edge, near_edge, mask, all_depth, config)
inpaint/utils.py:1224
↓ 2 callersFunctionrefresh_node
(old_node, old_feat, new_node, new_feat, mesh, stime=False)
inpaint/utils.py:550
↓ 2 callersFunctionremove_redundant_edge
(mesh, edge_mesh, edge_ccs, info_on_pix, config, redundant_number=1000, invalid=False, spdb=False)
inpaint/mesh.py:636
↓ 2 callersFunctionrgb2gray
(rgb)
src/depthmap_generation.py:956
← previousnext →101–200 of 1,036, ranked by callers