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

↓ 1 callersFunctioncalculateprocessingres
(img, basesize, confidence=0.1, scale_threshold=3, whole_size_threshold=3000)
src/depthmap_generation.py:969
↓ 1 callersFunctionchw2hwc
(chw)
dmarigold/marigold/util/image_util.py:48
↓ 1 callersFunctionclear_node_feat
(G, fts)
inpaint/mesh.py:346
↓ 1 callersFunctioncolorize_depth_maps
Colorize depth maps.
dmarigold/marigold/util/image_util.py:7
↓ 1 callersFunctioncompute_errors
Compute metrics for 'pred' compared to 'gt' Args: gt (numpy.ndarray): Ground truth values pred (numpy.ndarray): Predicted values
dzoedepth/utils/misc.py:159
↓ 1 callersFunctioncompute_scale_and_shift
(prediction, target, mask)
dzoedepth/trainers/loss.py:259
↓ 1 callersFunctionconvert_i16_to_rgb
(image, like)
src/core.py:52
↓ 1 callersFunctionconvert_to_i16
(arr)
src/core.py:44
↓ 1 callersFunctioncreate_mesh
(image, depth, keep_edges=False, spherical=False)
src/core.py:740
↓ 1 callersFunctioncreate_mesh
(depth, image, int_mtx, config)
inpaint/mesh.py:34
↓ 1 callersFunctioncreate_normalmap
Generates normalmaps. :param depthmap: depthmap that will be used to generate normalmap :param pre_blur: apply gaussian blur before taking gra
src/normalmap_generation.py:5
↓ 1 callersFunctioncreate_placeholder
(context, mask, depth, fpath_map, npath_map, mesh, inpaint_id, edge_ccs, extend_edge_cc, all_edge_maps, self_e
inpaint/utils.py:586
↓ 1 callersFunctioncreate_stereoimages
Creates stereoscopic images. An effort is made to make them look nice, but beware that the resulting image will have some distortion. The corr
src/stereoimage_generation.py:13
↓ 1 callersMethodcrop_aware_infer
(self, x)
dzoedepth/trainers/zoedepth_trainer.py:114
↓ 1 callersFunctioncrop_image
Crops the image according to the crop parameters. Args: image: RGB or depth image, shape (H, W, 3) or (H, W). crop_params: Crop p
dzoedepth/data/preprocess.py:112
↓ 1 callersMethoddecode_depth
Decode depth latent into depth map. Args: depth_latent (torch.Tensor): Depth latent to be decoded.
dmarigold/marigold/marigold_pipeline.py:341
↓ 1 callersFunctiondenormalize
Reverses the imagenet normalization applied to the input. Args: x (torch.Tensor - shape(N,3,H,W)): input tensor Returns: tor
dzoedepth/models/base_models/midas.py:31
↓ 1 callersFunctiondepth_edges_mask
Returns a mask of edges in the depth map. Args: depth: 2D numpy array of shape (H, W) with dtype float32. Returns: mask: 2D numpy arra
src/core.py:724
↓ 1 callersFunctiondepth_to_points
(depth, R=None, t=None)
dzoedepth/utils/geometry.py:39
↓ 1 callersFunctiondepthmap_mode_video
(inp)
src/common_ui.py:245
↓ 1 callersMethoddisplay_current_results
Display current results on visdom; save current results to an HTML file. Parameters: visuals (OrderedDict) - - dictionary of imag
pix2pix/util/visualizer.py:93
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
ddepth_anything_v2/depth_anything_v2/dinov2_layers/drop_path.py:15
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0.0, training: bool = False)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/drop_path.py:15
↓ 1 callersFunctionencode_np_to_base64
(image)
scripts/depthmap_api.py:33
↓ 1 callersMethodencode_rgb
Encode RGB image into latent. Args: rgb_in (torch.Tensor): Input RGB image to be encoded. Retur
dmarigold/marigold/marigold_pipeline.py:322
↓ 1 callersFunctionencode_to_base64
(image)
scripts/depthmap_api.py:22
↓ 1 callersFunctionenlarge_border
(mesh, info_on_pix, depth, image, config)
inpaint/mesh_tools.py:504
↓ 1 callersFunctionensemble_depths
To ensemble multiple affine-invariant depth images (up to scale and shift), by aligning estimating the scale and shift
dmarigold/marigold/util/ensemble.py:24
↓ 1 callersFunctionensure_gradio_temp_directory
()
src/common_ui.py:14
↓ 1 callersMethodensure_models
(self, model_type, device: torch.device, boost: bool, tiling_mode: bool = False)
src/depthmap_generation.py:60
↓ 1 callersFunctionestimateboost
(img, model, model_type, pix2pixmodel, whole_size_threshold)
src/depthmap_generation.py:774
↓ 1 callersFunctionestimatemidas
(img, model, w, h, resize_mode, normalization, no_half, precision_is_autocast)
src/depthmap_generation.py:455
↓ 1 callersFunctionestimatemidasBoost
(img, model, w, h)
src/depthmap_generation.py:1180
↓ 1 callersFunctioneval_depth
(pred, target)
ddepth_anything_v2/metric_depth/util/metric.py:4
↓ 1 callersFunctionfill_dummy_bord
(mesh, info_on_pix, image, depth, config)
inpaint/mesh_tools.py:471
↓ 1 callersFunctionfill_missing_node
(mesh, info_on_pix, image, depth)
inpaint/mesh_tools.py:519
↓ 1 callersFunctionfind_anchors
(matrix)
inpaint/utils.py:1393
↓ 1 callersFunctionfind_batch_size
Automatically search for suitable operating batch size. Args: ensemble_size (int): Number of predictions to be ensembled inp
dmarigold/marigold/util/batchsize.py:26
↓ 1 callersMethodforward
(self, x)
dmidas/dpt_depth.py:110
↓ 1 callersMethodforward
(self, x)
ddepth_anything_v2/depth_anything_v2/dpt.py:176
↓ 1 callersMethodforward
(self, x: Tensor)
ddepth_anything_v2/depth_anything_v2/dinov2_layers/block.py:82
↓ 1 callersMethodforward
(self, x: Tensor)
ddepth_anything_v2/depth_anything_v2/dinov2_layers/attention.py:49
↓ 1 callersMethodforward
(self, x)
ddepth_anything_v2/metric_depth/depth_anything_v2/dpt.py:178
↓ 1 callersMethodforward
(self, x: Tensor)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/block.py:82
↓ 1 callersMethodforward
(self, x: Tensor)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/attention.py:49
↓ 1 callersMethodforward
Run forward pass; called by both functions <optimize_parameters> and <test>.
pix2pix/models/base_model.py:69
↓ 1 callersMethodforward
Run forward pass; called by both functions <optimize_parameters> and <test>.
pix2pix/models/pix2pix4depth_model.py:114
↓ 1 callersMethodforward
(self, input_feat, refine_border=False, sample=False, PCONV=True)
inpaint/networks.py:195
↓ 1 callersMethodforward
(self, x, refine_border=False)
inpaint/networks.py:316
↓ 1 callersMethodforward
(self, input, add_border=False)
inpaint/networks.py:388
↓ 1 callersMethodforward_features
(self, x, masks=None)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2.py:253
↓ 1 callersMethodforward_features_list
(self, x_list, masks_list)
ddepth_anything_v2/depth_anything_v2/dinov2.py:233
↓ 1 callersMethodforward_features_list
(self, x_list, masks_list)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2.py:233
↓ 1 callersMethodforward_nested
x_list contains a list of tensors to nest together and run
ddepth_anything_v2/depth_anything_v2/dinov2_layers/block.py:205
↓ 1 callersMethodforward_nested
x_list contains a list of tensors to nest together and run
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/block.py:205
↓ 1 callersFunctionframes_to_video
(fps, frames, path, name, colorvids_bitrate=None)
src/video_mode.py:71
↓ 1 callersMethodfreeze
(self)
dzoedepth/models/base_models/midas.py:240
↓ 1 callersMethodfreeze_bn
(self)
dzoedepth/models/base_models/midas.py:252
↓ 1 callersMethodfreeze_encoder
(self, freeze_rel_pos=False)
dzoedepth/models/base_models/midas.py:288
↓ 1 callersFunctiongenerate_face
(mesh, info_on_pix, config)
inpaint/mesh.py:201
↓ 1 callersFunctiongenerate_init_node
(mesh, config, min_node_in_cc)
inpaint/mesh.py:164
↓ 1 callersFunctiongeneratemask
(size)
src/depthmap_generation.py:944
↓ 1 callersFunctiongeneratepatchs
(img, base_size, factor)
src/depthmap_generation.py:1070
↓ 1 callersFunctionget_MiDaS_samples
(image_folder, depth_folder, config, specific=None, aft_certain=None)
inpaint/utils.py:838
↓ 1 callersFunctionget_branges_scales
(x, sample_drop_ratio=0.0)
ddepth_anything_v2/depth_anything_v2/dinov2_layers/block.py:134
↓ 1 callersFunctionget_branges_scales
(x, sample_drop_ratio=0.0)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2_layers/block.py:134
↓ 1 callersFunctionget_cmd_opt
Get command line argument
src/backbone.py:29
↓ 1 callersFunctionget_commit_hash
()
src/misc.py:6
↓ 1 callersMethodget_current_losses
Return traning losses / errors. train.py will print out these errors on console, and save them to a file
pix2pix/models/base_model.py:136
↓ 1 callersFunctionget_ddad_loader
(data_dir_root, resize_shape, batch_size=1, **kwargs)
dzoedepth/data/ddad.py:115
↓ 1 callersMethodget_default_net_size
(model_type)
src/depthmap_generation.py:304
↓ 1 callersFunctionget_depth_from_maps
(context_map, mask_map, depth_map, H, W, log_depth=False)
inpaint/mesh_tools.py:992
↓ 1 callersFunctionget_depth_from_nodes
(context_cc, erode_context_cc, mask_cc, H, W, mesh, log_depth=False)
inpaint/mesh_tools.py:1013
↓ 1 callersFunctionget_diml_indoor_loader
(data_dir_root, batch_size=1, **kwargs)
dzoedepth/data/diml_indoor_test.py:120
↓ 1 callersFunctionget_diml_outdoor_loader
(data_dir_root, batch_size=1, **kwargs)
dzoedepth/data/diml_outdoor_test.py:109
↓ 1 callersFunctionget_diode_loader
(data_dir_root, batch_size=1, **kwargs)
dzoedepth/data/diode.py:121
↓ 1 callersMethodget_enc_params_except_rel_pos
(self)
dzoedepth/models/base_models/midas.py:283
↓ 1 callersMethodget_enc_params_except_rel_pos
()
dzoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:261
↓ 1 callersFunctionget_func
Helper to return a function object by name. func_name must identify a function in this module or the path to a function relative to the base '
lib/net_tools.py:7
↓ 1 callersFunctionget_hypersim_loader
(data_dir_root, batch_size=1, **kwargs)
dzoedepth/data/hypersim.py:136
↓ 1 callersFunctionget_ibims_loader
(config, batch_size=1, **kwargs)
dzoedepth/data/ibims.py:79
↓ 1 callersMethodget_image_dir
Return the directory that stores images
pix2pix/util/html.py:35
↓ 1 callersFunctionget_image_from_url
(url)
dzoedepth/utils/misc.py:342
↓ 1 callersMethodget_image_paths
Return image paths that are used to load current data
pix2pix/models/base_model.py:112
↓ 1 callersFunctionget_installed_version
(package: str)
install.py:64
↓ 1 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
ddepth_anything_v2/depth_anything_v2/dinov2.py:297
↓ 1 callersMethodget_intermediate_layers
( self, x: torch.Tensor, n: Union[int, Sequence] = 1, # Layers or n last layers to ta
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2.py:297
↓ 1 callersFunctionget_intrinsics
Intrinsics for a pinhole camera model. Assume fov of 55 degrees and central principal point.
dzoedepth/utils/geometry.py:27
↓ 1 callersMethodget_lr_params
Learning rate configuration for different layers of the model Args: lr (float) : Base learning rate Returns:
dzoedepth/models/zoedepth/zoedepth_v1.py:204
↓ 1 callersFunctionget_model_config
Find and parse the .json config file for the model. Args: model_name (str): name of the model. The config file should be named config_{mo
dzoedepth/utils/config.py:306
↓ 1 callersFunctionget_neighbors
(mesh, node)
inpaint/mesh.py:198
↓ 1 callersFunctionget_next_sequence_number
(outpath, basename)
src/backbone.py:115
↓ 1 callersMethodget_raw_prediction
Get prediction from the model currently loaded by the ModelHolder object. If boost is enabled, net_width and net_height will be ignored.
src/depthmap_generation.py:375
↓ 1 callersMethodget_rel_pos_params
()
dzoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:256
↓ 1 callersFunctionget_rgb_from_nodes
(context_cc, erode_context_cc, mask_cc, H, W, mesh)
inpaint/mesh_tools.py:1049
↓ 1 callersMethodget_size
(self, width, height)
dzoedepth/data/transforms.py:215
↓ 1 callersMethodget_size
(self, width, height)
dzoedepth/models/base_models/midas.py:113
↓ 1 callersMethodget_size
(self, width, height)
dmidas/transforms.py:105
↓ 1 callersMethodget_size
(self, width, height)
ddepth_anything_v2/depth_anything_v2/util/transform.py:62
↓ 1 callersMethodget_size
(self, width, height)
ddepth_anything_v2/metric_depth/dataset/transform.py:107
← previousnext →301–400 of 1,036, ranked by callers