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 callersMethodget_size
(self, width, height)
ddepth_anything_v2/metric_depth/depth_anything_v2/util/transform.py:62
↓ 1 callersFunctionget_sunrgbd_loader
(data_dir_root, batch_size=1, **kwargs)
dzoedepth/data/sun_rgbd_loader.py:104
↓ 1 callersMethodget_target_tensor
Create label tensors with the same size as the input. Parameters: prediction (tensor) - - tpyically the prediction from a discrim
pix2pix/models/networks.py:248
↓ 1 callersMethodget_value
(self)
dzoedepth/utils/misc.py:56
↓ 1 callersFunctiongrad_mask
(mask)
dzoedepth/trainers/loss.py:106
↓ 1 callersMethodguidedfilter
(self,I, p, r, eps)
pix2pix/util/guidedfilter.py:28
↓ 1 callersFunctionhypersim_distance_to_depth
(npyDistance)
dzoedepth/data/hypersim.py:36
↓ 1 callersFunctionhypersim_distance_to_depth
(npyDistance)
ddepth_anything_v2/metric_depth/dataset/hypersim.py:11
↓ 1 callersMethodimage2tensor
(self, raw_image, input_size=518)
ddepth_anything_v2/metric_depth/depth_anything_v2/dpt.py:197
↓ 1 callersMethodinfer
Inference interface for the model Args: x (torch.Tensor): input tensor of shape (b, c, h, w) pad_input (bool,
dzoedepth/models/depth_model.py:115
↓ 1 callersMethodinfer_pil
Inference interface for the model for PIL image Args: pil_img (PIL.Image.Image): input PIL image pad_input (b
dzoedepth/models/depth_model.py:131
↓ 1 callersMethodinfer_with_flip_aug
Inference interface for the model with horizontal flip augmentation Horizontal flip augmentation improves the accuracy of the model b
dzoedepth/models/depth_model.py:99
↓ 1 callersFunctioninit_log
(name, level=logging.INFO)
ddepth_anything_v2/metric_depth/util/utils.py:9
↓ 1 callersMethodinit_optimizer
(self)
dzoedepth/trainers/base_trainer.py:95
↓ 1 callersMethodinit_params
(self)
lib/network_auxi.py:126
↓ 1 callersMethodinit_params
(self)
lib/network_auxi.py:168
↓ 1 callersMethodinit_params
(self)
lib/network_auxi.py:215
↓ 1 callersMethodinit_params
(self)
lib/network_auxi.py:261
↓ 1 callersMethodinit_params
(self)
lib/network_auxi.py:310
↓ 1 callersMethodinit_scheduler
(self)
dzoedepth/trainers/base_trainer.py:113
↓ 1 callersFunctioninit_weights
Initialize network weights. Parameters: net (network) -- network to be initialized init_type (str) -- the name of an initializa
pix2pix/models/networks.py:67
↓ 1 callersMethodinit_weights
(self)
ddepth_anything_v2/depth_anything_v2/dinov2.py:172
↓ 1 callersMethodinit_weights
(self)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2.py:172
↓ 1 callersMethodinitial_params
(self, dev=0.01)
lib/network_auxi.py:395
↓ 1 callersFunctioninitial_voxelize
(z, init_res, after_res)
lib/spvcnn_utils.py:12
↓ 1 callersMethodinitialize
Define the common options that are used in both training and test.
pix2pix/options/base_options.py:20
↓ 1 callersFunctioninter_distances
To calculate the distance between each two depth maps.
dmarigold/marigold/util/ensemble.py:11
↓ 1 callersMethodinterpolate_pos_encoding
(self, x, w, h)
ddepth_anything_v2/depth_anything_v2/dinov2.py:179
↓ 1 callersMethodinterpolate_pos_encoding
(self, x, w, h)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2.py:179
↓ 1 callersFunctionis_image_file
(filename)
pix2pix/data/image_folder.py:19
↓ 1 callersMethodload_data
(self)
pix2pix/data/__init__.py:81
↓ 1 callersMethodload_models
Ensure that the depth model is loaded
src/depthmap_generation.py:76
↓ 1 callersFunctionload_state_dict_from_url
(model, url, **kwargs)
dzoedepth/models/model_io.py:59
↓ 1 callersFunctionlog_binom
log(nCk) using stirling approximation
dzoedepth/models/layers/dist_layers.py:29
↓ 1 callersFunctionmain
()
ddepth_anything_v2/metric_depth/train.py:43
↓ 1 callersFunctionmain
()
ddepth_anything_v2/metric_depth/depth_to_pointcloud.py:34
↓ 1 callersFunctionmain_ui_panel
(is_depth_tab)
src/common_ui.py:27
↓ 1 callersFunctionmax_size
(mat, value=0)
inpaint/utils.py:1354
↓ 1 callersFunctionmaybe_chdir
Detects if DepthMap was installed as a stable-diffusion-webui script, but run without current directory set to the stable-diffusion-webui root. Ch
main.py:10
↓ 1 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
ddepth_anything_v2/depth_anything_v2/dinov2.py:26
↓ 1 callersFunctionnamed_apply
(fn: Callable, module: nn.Module, name="", depth_first=True, include_root=False)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2.py:26
↓ 1 callersFunctionnum_value_pixels
(arr)
dzoedepth/data/preprocess.py:44
↓ 1 callersMethodoffload
Move to RAM to conserve VRAM
src/depthmap_generation.py:344
↓ 1 callersFunctionopen_folder_action
()
src/common_ui.py:225
↓ 1 callersMethodoptimize_parameters
Calculate losses, gradients, and update network weights; called in every training iteration
pix2pix/models/base_model.py:74
↓ 1 callersFunctionpano_depth_to_world_points
360 depth to world points given 2D depth is an equirectangular projection of a spherical image Treat depth as radius longitude : -pi
src/core.py:695
↓ 1 callersMethodparse
Parse our options, create checkpoints directory suffix, and set up gpu device.
src/depthmap_generation.py:637
↓ 1 callersMethodparse_img_size
(config)
dzoedepth/models/base_models/midas.py:356
↓ 1 callersFunctionparse_list
Parse a list of values for the key if the value is a string. The values are separated by a comma. Modifies the config in place.
dzoedepth/utils/config.py:295
↓ 1 callersFunctionpcd_to_sparsetensor
(pcd, mask_valid, voxel_size=0.01, num_points=100000)
lib/test_utils.py:32
↓ 1 callersFunctionpcd_uv_to_sparsetensor
(pcd, u_u0, v_v0, mask_valid, f= 500.0, voxel_size=0.01, mask_side=None, num_points=100000)
lib/test_utils.py:57
↓ 1 callersFunctionplan_path_e2e
(mesh, cc, end_pts, global_mesh, input_edge, mask, valid_map, inpaint_id, npath_map=None, fpath_map=None)
inpaint/utils.py:341
↓ 1 callersMethodpositional_encoding_1d
Generate positional encodings Args: sequence_length (int): Sequence length embedding_dim (int): Embedding dimension
dzoedepth/models/layers/patch_transformer.py:50
↓ 1 callersMethodpostprocess
(self, sample)
dzoedepth/data/data_mono.py:289
↓ 1 callersFunctionpredict_depth
(image)
ddepth_anything_v2/app.py:43
↓ 1 callersMethodprint_current_losses
print current losses on console; also save the losses to the disk Parameters: epoch (int) -- current epoch iters (int
pix2pix/util/visualizer.py:150
↓ 1 callersMethodprint_networks
Print the total number of parameters in the network and (if verbose) network architecture Parameters: verbose (bool) -- if verbos
pix2pix/models/base_model.py:201
↓ 1 callersFunctionprocess_predicitons
(predictions, smoothening='none')
src/video_mode.py:103
↓ 1 callersMethodraise_if_nan
(self, losses)
dzoedepth/trainers/base_trainer.py:125
↓ 1 callersMethodrandom_crop
(self, img, depth, height, width)
dzoedepth/data/data_mono.py:444
↓ 1 callersMethodrandom_translate
(self, img, depth, max_t=20)
dzoedepth/data/data_mono.py:456
↓ 1 callersFunctionread_MiDaS_depth
(disp_fi, disp_rescale=10., h=None, w=None)
inpaint/utils.py:942
↓ 1 callersFunctionread_mesh
(mesh_fi)
inpaint/mesh.py:2196
↓ 1 callersFunctionread_obj
(mesh_fi)
inpaint/mesh.py:2205
↓ 1 callersFunctionreassign_floating_island
(mesh, info_on_pix, image, depth)
inpaint/mesh.py:244
↓ 1 callersFunctionreconstruct_3D
Reconstruct depth to 3D pointcloud with the provided focal length. Return: pcd: N X 3 array, point cloud
lib/test_utils.py:130
↓ 1 callersFunctionrecurse
(inp)
dzoedepth/utils/config.py:258
↓ 1 callersFunctionrefine_color_around_edge
(mesh, info_on_pix, edge_ccs, config, spdb=False)
inpaint/utils.py:1064
↓ 1 callersFunctionrefine_focal_one_step
(depth, focal, model, u0, v0)
lib/test_utils.py:89
↓ 1 callersFunctionrefine_shift_one_step
(depth_wshift, model, focal, u0, v0)
lib/test_utils.py:100
↓ 1 callersFunctionrefresh_bord_depth
(mesh, info_on_pix, image, depth)
inpaint/mesh_tools.py:547
↓ 1 callersMethodreinit_mesh
(self, verts, faces, colors)
inpaint/mesh.py:2405
↓ 1 callersFunctionrelabel_node
(mesh, nodes, cur_node, new_node)
inpaint/mesh_tools.py:35
↓ 1 callersMethodreload
Undoes offload
src/depthmap_generation.py:350
↓ 1 callersFunctionremove_dangling
(mesh, edge_ccs, edge_mesh, info_on_pix, image, depth, config)
inpaint/mesh.py:739
↓ 1 callersFunctionremove_node_feat
(mesh, *feats)
inpaint/mesh.py:328
↓ 1 callersFunctionrepetitive_roundrobin
cycles through iterables but sample wise first yield first sample from first iterable then first sample from second iterable and so on th
dzoedepth/data/data_mono.py:181
↓ 1 callersFunctionreproject_3d_int_detail
(sx, sy, z, k_00, k_02, k_11, k_12, w_offset, h_offset)
inpaint/mesh.py:135
↓ 1 callersMethodreset
Reset the self.saved status
pix2pix/util/visualizer.py:82
↓ 1 callersFunctionresize_depth
Resize numpy (or image read by imageio) depth map Args: depth (numpy): depth width (int): image width height (int): image
inpaint/boostmonodepth_utils.py:56
↓ 1 callersFunctionresize_max_res
Resize image to limit maximum edge length while keeping aspect ratio Args: img (Image.Image): Image to be resized max_edge_r
dmarigold/marigold/util/image_util.py:57
↓ 1 callersFunctionresizewithpool
(img, size)
src/depthmap_generation.py:961
↓ 1 callersFunctionresnext101_32x8d
Constructs a ResNet-152 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/Resnext_torch.py:227
↓ 1 callersFunctionrun_3dphoto
(device, img_rgb, img_depth, inputnames, outpath, gen_inpainted_mesh_demos, vid_ssaa, vid_format)
src/core.py:365
↓ 1 callersFunctionrun_boostmonodepth
(img_names, src_folder, depth_folder)
inpaint/boostmonodepth_utils.py:13
↓ 1 callersFunctionrun_makevideo
(fn_mesh, vid_numframes, vid_fps, vid_traj, vid_shift, vid_border, dolly, vid_format, vid_ssaa,
src/core.py:614
↓ 1 callersFunctionsave_point_cloud
Save an RGB point cloud as a PLY file. :paras @pcd: Nx3 matrix, the XYZ coordinates @rgb: NX3 matrix, the rgb colors for each 3D poin
lib/test_utils.py:163
↓ 1 callersFunctionscale_torch
Scale the image and output it in torch.tensor. :param img: input rgb is in shape [H, W, C], input depth/disp is in shape [H, W] :param sc
src/depthmap_generation.py:424
↓ 1 callersMethodset_base_estimate
(self, est)
src/depthmap_generation.py:580
↓ 1 callersMethodset_fetch_features
(self, fetch_features)
dzoedepth/models/base_models/midas.py:231
↓ 1 callersMethodset_output_channels
(self, model_type)
dzoedepth/models/base_models/midas.py:329
↓ 1 callersMethodset_trainable
(self, trainable)
dzoedepth/models/base_models/midas.py:223
↓ 1 callersFunctionsetup_distributed
AdaHessian Optimizer Lifted from https://github.com/BIGBALLON/distribuuuu/blob/master/distribuuuu/utils.py Originally licensed MIT, Copyright
ddepth_anything_v2/metric_depth/util/dist_helper.py:8
↓ 1 callersMethodsingle_infer
Perform an individual depth prediction without ensembling. Args: rgb_in (torch.Tensor): Input RGB image.
dmarigold/marigold/marigold_pipeline.py:254
↓ 1 callersFunctionsmooth_cntsyn_gap
(init_depth_map, mask_region, context_region, init_mask_region=None)
inpaint/utils.py:913
↓ 1 callersFunctionsplit_combined_args
Splits the arguments that are combined with '__' into multiple arguments. Combined arguments should have equal number of keys and values.
dzoedepth/utils/config.py:271
↓ 1 callersFunctionstem_b4_transpose
Modification of https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/levit.py: stem_b16 such that ConvTranspose2
dmidas/backbones/levit.py:86
↓ 1 callersFunctiontear_edges
(mesh, threshold = 0.00025, xy2depth=None)
inpaint/mesh.py:71
↓ 1 callersMethodtrain
(self)
dzoedepth/trainers/base_trainer.py:142
↓ 1 callersMethodtrain_on_batch
(self, batch, train_step)
dzoedepth/trainers/base_trainer.py:119
← previousnext →401–500 of 1,036, ranked by callers