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

↓ 217 callersMethodappend
(self, value)
dzoedepth/utils/misc.py:52
↓ 205 callersMethodget
Download a dataset. Parameters: save_path (str) -- A directory to save the data to. dataset (str) -- (opt
pix2pix/util/get_data.py:79
↓ 99 callersMethodto
(self, device)
dzoedepth/models/depth_model.py:40
↓ 60 callersMethodcat
(self, A, B)
inpaint/networks.py:362
↓ 37 callersMethodupdate
(self, new_dict)
dzoedepth/utils/misc.py:79
↓ 35 callersMethodopen
(self, fpath)
dzoedepth/data/data_mono.py:266
↓ 33 callersMethodload
Load model from file. Args: path (str): file path
dmidas/base_model.py:5
↓ 30 callersMethodflatten
(el)
src/depthmap_generation.py:252
↓ 29 callersFunctionnorm_layer
(x)
pix2pix/models/networks.py:32
↓ 22 callersMethodeval
Make models eval mode during test time
pix2pix/models/base_model.py:91
↓ 17 callersMethodadd_rule
(self, first, rule, second)
src/gradio_args_transport.py:71
↓ 17 callersFunctionget_activation
(name)
dmidas/backbones/utils.py:56
↓ 14 callersFunction_make_scratch
(in_shape, out_shape, groups=1, expand=False)
dmidas/blocks.py:136
↓ 13 callersFunctionensure
(module_name, min_version=None)
install.py:20
↓ 13 callersFunctionensure_file_downloaded
(filename, url, sha256_hash_prefix=None)
src/misc.py:27
↓ 13 callersFunctionout_fmt
(input, cur_id_b, cur_id_self, cur_id_a, ply_flag)
inpaint/mesh.py:206
↓ 12 callersMethodnormalize
(self, input)
pix2pix/models/pix2pix4depth_model.py:109
↓ 12 callersMethodsave
save the current content to the HMTL file
pix2pix/util/html.py:68
↓ 12 callersFunctionspectral_norm
(module, mode=True)
inpaint/networks.py:497
↓ 10 callersFunctionadd_option
(name, default_value, description, name_prefix='depthmap_script')
scripts/depthmap.py:84
↓ 10 callersMethodpop
(self, k, d=None)
dzoedepth/utils/easydict/__init__.py:151
↓ 9 callersMethodupsample
(self, feat, mask)
inpaint/networks.py:365
↓ 8 callersMethod__init__
(self, inchannels, outchannels, upfactor=2)
lib/network_auxi.py:240
↓ 8 callersFunctionextrapolate
(global_mesh, info_on_pix, image, depth, other
inpaint/mesh_tools.py:81
↓ 8 callersMethodforward_3P
(self, mask, context, rgb, disp, edge, unit_length=128, cuda=None)
inpaint/networks.py:301
↓ 8 callersFunctiongroup_edges
(1) add_new_node(G, node) : add "node" to graph "G" (2) add_new_edge(G, node_a, node_b) : add edge "node_a--node_b" to graph "G" (3) exce
inpaint/mesh.py:385
↓ 8 callersFunctionupdate_info
(mapping_dict, info_on_pix, *meshes)
inpaint/mesh_tools.py:792
↓ 7 callersMethod__init__
(self, in_features, out_features=None, mlp_ratio=None, drop=0., bias=True)
dmidas/backbones/next_vit.py:152
↓ 7 callersMethod__init__
(self, in_ch, out_ch, bn=True, sample='none-3', activ='relu', conv_bias=False)
inpaint/networks.py:107
↓ 7 callersMethodboxfilter
(self,img, r)
pix2pix/util/guidedfilter.py:12
↓ 6 callersMethod__init__
Initialize the GANLoss class. Parameters: gan_mode (str) - - the type of GAN objective. It currently supports vanilla, lsgan, an
pix2pix/models/networks.py:224
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
dzoedepth/data/transforms.py:202
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
dzoedepth/models/base_models/midas.py:100
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
dmidas/transforms.py:94
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
ddepth_anything_v2/depth_anything_v2/util/transform.py:51
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
ddepth_anything_v2/metric_depth/dataset/transform.py:96
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
ddepth_anything_v2/metric_depth/depth_anything_v2/util/transform.py:51
↓ 6 callersFunctioncrop_maps_by_size
(size, *imaps)
inpaint/mesh_tools.py:1068
↓ 6 callersFunctiondilate_valid_size
(isize_dict, imap, dilate=[0, 0])
inpaint/mesh_tools.py:450
↓ 6 callersFunctionget_activation
(name, bank)
dzoedepth/models/base_models/midas.py:44
↓ 6 callersFunctionget_valid_size
(imap)
inpaint/mesh_tools.py:441
↓ 6 callersFunctionimpatch
(image, rect)
src/depthmap_generation.py:663
↓ 6 callersFunctionmerge_pre_bn
Merge pre BN to reduce inference runtime.
dmidas/backbones/next_vit.py:28
↓ 6 callersFunctionremove_leading_slash
(s)
dzoedepth/data/data_mono.py:241
↓ 6 callersMethodshow
(self, is_img2img)
scripts/depthmap.py:18
↓ 6 callersFunctionupdate_status
(2) clear_node_feat(G, *fts) : Clear all the node feature on graph G. (6) get_cross_nes(x, y) : Get the four cross neighbors of pixel(x, y).
inpaint/mesh.py:336
↓ 5 callersFunctionconvert2tensor
(input_dict)
inpaint/mesh_tools.py:1075
↓ 5 callersFunctionflatten
(config, except_keys=('bin_conf'))
dzoedepth/utils/config.py:257
↓ 5 callersMethodlog_images
(self, rgb: Dict[str, list] = {}, depth: Dict[str, list] = {}, scalar_field: Dict[str, list] = {}, prefix="",
dzoedepth/trainers/base_trainer.py:289
↓ 5 callersFunctionrequire_depth_edge
(context_edge, mask)
inpaint/utils.py:1057
↓ 4 callersMethod__init__
Init. Args: scale_factor (float): scaling mode (str): interpolation mode
dmidas/blocks.py:215
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size = None)
dmidas/dpt_depth.py:19
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
ddepth_anything_v2/depth_anything_v2/dpt.py:12
↓ 4 callersFunction_make_fusion_block
(features, use_bn, size=None)
ddepth_anything_v2/metric_depth/depth_anything_v2/dpt.py:12
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
lib/Resnext_torch.py:172
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
lib/Resnet.py:118
↓ 4 callersFunction_make_swin_backbone
( model, hooks=[1, 1, 17, 1], patch_grid=[96, 96] )
dmidas/backbones/swin_common.py:13
↓ 4 callersMethod_raw_assignment
(self, key, value, ignored=False)
src/gradio_args_transport.py:10
↓ 4 callersFunctioncore_generation_funnel
(outpath, inputimages, inputdepthmaps, inputnames, inp, ops=None)
src/core.py:83
↓ 4 callersMethodget_current_visuals
Return visualization images. train.py will display these images with visdom, and save the images to a HTML
pix2pix/models/base_model.py:128
↓ 4 callersFunctionget_opt
(name, default)
src/backbone.py:23
↓ 4 callersFunctionis_above_tolerance
(arr, total_pixels)
dzoedepth/data/preprocess.py:47
↓ 4 callersFunctionis_rank_zero
(args)
dzoedepth/trainers/base_trainer.py:44
↓ 4 callersFunctionmake_dataset
(dir, max_dataset_size=float("inf"))
pix2pix/data/image_folder.py:23
↓ 4 callersMethodmake_letter_box
(self, sample)
dzoedepth/data/transforms.py:273
↓ 4 callersMethodmerge_bn
(self, pre_norm)
dmidas/backbones/next_vit.py:161
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
ddepth_anything_v2/depth_anything_v2/dinov2.py:212
↓ 4 callersMethodprepare_tokens_with_masks
(self, x, masks=None)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2.py:212
↓ 4 callersFunctionrolling_window
(a, window, strides)
inpaint/bilateral_filtering.py:204
↓ 4 callersMethodrotate
(self, axis=[1,0,0], angle=0)
inpaint/mesh.py:2396
↓ 4 callersMethodsave_checkpoint
(self, filename)
dzoedepth/trainers/base_trainer.py:273
↓ 4 callersFunctionstrip_prefix_if_present
(state_dict, prefix)
lib/net_tools.py:46
↓ 4 callersMethodunload_models
(self)
src/depthmap_generation.py:363
↓ 4 callersMethodview_changed
(self)
inpaint/mesh.py:2399
↓ 3 callersMethod__init__
(self, beta=0.15)
dzoedepth/trainers/loss.py:44
↓ 3 callersMethod__init__
Projector MLP Args: in_features (int): input channels out_features (int): output channels mlp_dim (int, o
dzoedepth/models/layers/localbins_layers.py:100
↓ 3 callersMethod__init__
(self, inc, outc, ks=3, stride=1, dilation=1)
lib/spvcnn_classsification.py:44
↓ 3 callersMethod__init__
(self, start_index=1)
dmidas/backbones/utils.py:7
↓ 3 callersMethod_infer_with_pad_aug
Inference interface for the model with padding augmentation Padding augmentation fixes the boundary artifacts in the output depth map
dzoedepth/models/depth_model.py:57
↓ 3 callersFunction_make_beit_backbone
( model, features=[96, 192, 384, 768], size=[384, 384], hooks=[0, 4, 8, 11],
dmidas/backbones/beit.py:132
↓ 3 callersFunction_make_encoder
(backbone, features, use_pretrained, groups=1, expand=False, exportable=True, hooks=None, us
dmidas/blocks.py:36
↓ 3 callersMethodadd_header
Insert a header to the HTML file Parameters: text (str) -- the header text
pix2pix/util/html.py:39
↓ 3 callersMethodadd_images
add images to the HTML file Parameters: ims (str list) -- a list of image paths txts (str list) -- a list of image
pix2pix/util/html.py:48
↓ 3 callersFunctionbuild_model
Builds a model from a config. The model is specified by the model name and version in the config. The model is then constructed using the build_from_c
dzoedepth/models/builder.py:28
↓ 3 callersFunctioncheck_choices
(name, value, choices)
dzoedepth/utils/config.py:344
↓ 3 callersFunctioncolorize
Converts a depth map to a color image. Args: value (torch.Tensor, numpy.ndarry): Input depth map. Shape: (H, W) or (1, H, W) or (1, 1, H,
dzoedepth/utils/misc.py:97
↓ 3 callersFunctioncombine_end_node
(mesh, edge_mesh, edge_ccs, depth)
inpaint/mesh.py:542
↓ 3 callersFunctionconv1x1
1x1 convolution
lib/Resnext_torch.py:25
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
lib/Resnext_torch.py:19
↓ 3 callersMethodeval_infer
(self, x)
dzoedepth/trainers/zoedepth_trainer.py:107
↓ 3 callersFunctionextract_key
(prediction, key)
dzoedepth/trainers/loss.py:35
↓ 3 callersFunctionfilter_irrelevant_edge_new
(self_edge, comp_edge, other_edges, other_edges_with_id, current_edge_id, context, depth, mesh, context_cc, sp
inpaint/utils.py:66
↓ 3 callersMethodforward
(self, x)
lib/Resnet.py:135
↓ 3 callersMethodgather_options
Initialize our parser with basic options(only once). Add additional model-specific and dataset-specific options. These options are def
pix2pix/options/base_options.py:79
↓ 3 callersFunctionget_config
Main entry point to get the config for the model. Args: model_name (str): name of the desired model. mode (str, optional): "train
dzoedepth/utils/config.py:354
↓ 3 callersFunctionget_edge_from_nodes
(context_cc, erode_context_cc, mask_cc, edge_cc, extend_edge_cc, H, W, mesh)
inpaint/mesh_tools.py:947
↓ 3 callersFunctionget_map_from_ccs
(ccs, height, width, condition_input=None, condition=None, real_id=False, id_shift=0)
inpaint/mesh_tools.py:875
↓ 3 callersMethodinfer_image
(self, raw_image, input_size=518)
ddepth_anything_v2/depth_anything_v2/dpt.py:187
↓ 3 callersFunctionnormalize
(img)
pix2pix/data/depthmerge_dataset.py:11
↓ 3 callersFunctionnormalize01
(img)
pix2pix/data/depthmerge_dataset.py:17
next →1–100 of 1,036, ranked by callers