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

Methodfreeze_conf
Freezes all the parameters of all the ModuleDicts children that are exclusively used for the given bin configuration
dzoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:297
Methodfuse
(self)
dmidas/backbones/levit.py:73
Functionfuse_model
(m)
dmidas/midas_net_custom.py:109
Functiongather_ops
Parameters for depthmap generation
src/backbone.py:36
Functiongen_video
(video, outpath, inp, custom_depthmap=None, colorvids_bitrate=None, smoothening='none')
src/video_mode.py:131
Functionget_area
(size)
inpaint/utils.py:1390
Functionget_context_from_nodes
(mesh, cc, H, W, source_type='')
inpaint/mesh_tools.py:924
Methodget_current_errors
(self)
pix2pix/models/base_model_hg.py:34
Methodget_current_visuals
(self)
pix2pix/models/base_model_hg.py:31
Functionget_hide_dirs
()
src/backbone.py:80
Methodget_image_paths
(self)
pix2pix/models/base_model_hg.py:25
Methodget_lr_params
Learning rate configuration for different layers of the model Args: lr (float) : Base learning rate Returns:
dzoedepth/models/zoedepth_nk/zoedepth_nk_v1.py:245
Functionget_map_from_nodes
(nodes, height, width)
inpaint/mesh_tools.py:868
Functionget_mask_from_nodes
(mesh, cc, H, W)
inpaint/mesh_tools.py:939
Functionget_option_setter
Return the static method <modify_commandline_options> of the dataset class.
pix2pix/data/__init__.py:41
Functionget_option_setter
Return the static method <modify_commandline_options> of the model class.
pix2pix/models/__init__.py:48
Functionget_options
()
scripts/depthmap_api.py:48
Functionget_outpath
Get path where results are saved by default
src/backbone.py:52
Functionget_params
(opt, size)
pix2pix/data/base_dataset.py:63
Methodget_rel_pos_params
(self)
dzoedepth/models/base_models/midas.py:278
Functionget_scheduler
Return a learning rate scheduler Parameters: optimizer -- the optimizer of the network opt (option class) -- stores all
pix2pix/models/networks.py:38
Functionget_trainer
Builds and returns a trainer based on the config. Args: config (dict): the config dict (typically constructed using utils.config.get_conf
dzoedepth/trainers/builder.py:28
Functionget_transform
(opt, params=None, grayscale=False, method=Image.BICUBIC, convert=True)
pix2pix/data/base_dataset.py:81
Functionget_union_size
(mesh, dilate, *alls_cc)
inpaint/mesh_tools.py:660
Functionget_valid_size
(imap)
inpaint/utils.py:888
Functionhook
(model, input, output)
dzoedepth/models/base_models/midas.py:45
Functionhook
(model, input, output)
dmidas/backbones/utils.py:57
Functionincomplete_node
(mesh, edge_maps, info_on_pix)
inpaint/mesh_tools.py:684
Methodinference
(self, rgb)
lib/multi_depth_model_woauxi.py:15
Functioninit_fun
(m)
inpaint/networks.py:41
Functioninit_func
(m)
pix2pix/models/networks.py:78
Methodinit_func
(m)
inpaint/networks.py:19
Methodinit_params
(self)
lib/network_auxi.py:347
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
ddepth_anything_v2/depth_anything_v2/dinov2.py:331
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
ddepth_anything_v2/metric_depth/depth_anything_v2/dinov2.py:331
Methodinitialize
(self, parser)
pix2pix/options/train_options.py:10
Methodinitialize
(self, parser)
pix2pix/options/test_options.py:10
Methodinitialize
(self, opt)
pix2pix/models/base_model_hg.py:8
Functioninv_attractor
Inverse attractor: dc = dx / (1 + alpha*dx^gamma), where dx = a - c, a = attractor point, c = bin center, dc = shift in bin center This is the def
dzoedepth/models/layers/attractor.py:45
Methoditers_per_epoch
(self)
dzoedepth/trainers/base_trainer.py:131
Functionjudge_dangle
(mark, mesh, node)
inpaint/mesh.py:721
Functionlambda_rule
(epoch)
pix2pix/models/networks.py:52
Functionlistfiles
(dirname)
src/backbone.py:122
Functionload_ckpt
Load checkpoint.
lib/net_tools.py:27
Methodload_ckpt
(self, checkpoint_dir="./checkpoints", ckpt_type="best")
dzoedepth/trainers/base_trainer.py:71
Functionload_model
Load the specified network. Args: device (device): the torch device used model_path (str): path to saved model model_type
dmidas/model_loader.py:29
Methodload_network
(self, network, network_label, epoch_label)
pix2pix/models/base_model_hg.py:49
Methodlog_bar_plot
(self, title, labels, values)
dzoedepth/trainers/base_trainer.py:319
Methodlog_line_plot
(self, data)
dzoedepth/trainers/base_trainer.py:310
Methodmerge_bn
(self)
dmidas/backbones/next_vit.py:194
Methodmerge_bn
(self, pre_bn)
dmidas/backbones/next_vit.py:235
Methodmerge_bn
(self)
dmidas/backbones/next_vit.py:309
Methodmerge_bn
(self)
dmidas/backbones/next_vit.py:401
Functionmkdirs
create empty directories if they don't exist Parameters: paths (str list) -- a list of directory paths
pix2pix/util/util.py:85
Methodmodify_commandline_options
Add new dataset-specific options, and rewrite default values for existing options. Parameters: parser -- original option
pix2pix/data/base_dataset.py:33
Methodmodify_commandline_options
Add new model-specific options, and rewrite default values for existing options. Parameters: parser -- original option p
pix2pix/models/base_model.py:47
Methodmodify_commandline_options
Add new dataset-specific options, and rewrite default values for existing options. Parameters: parser -- original option
pix2pix/models/pix2pix4depth_model.py:17
Methodname
(self)
pix2pix/models/base_model_hg.py:5
Functionnextvit_base
(pretrained=False, pretrained_cfg=None, **kwargs)
dmidas/backbones/next_vit.py:442
Functionnextvit_large
(pretrained=False, pretrained_cfg=None, **kwargs)
dmidas/backbones/next_vit.py:448
Functionnextvit_small
(pretrained=False, pretrained_cfg=None, **kwargs)
dmidas/backbones/next_vit.py:436
Functionnjit
(parallel=False)
src/stereoimage_generation.py:6
Functionon_submit
(image)
ddepth_anything_v2/app.py:60
Functionon_ui_settings
()
scripts/depthmap.py:81
Functionon_ui_tabs
()
src/common_ui.py:276
Methodopen
(self, fpath)
dzoedepth/data/data_mono.py:254
Methodoptimize_parameters
(self)
pix2pix/models/pix2pix4depth_model.py:144
Methodoptimize_parameters
(self)
pix2pix/models/base_model_hg.py:28
Functionparallelize
(config, model, find_unused_parameters=True)
dzoedepth/utils/misc.py:251
Functionparse_unknown
(unknown_args)
dzoedepth/utils/arg_utils.py:22
Functionpatch_embed_forward
Modification of timm.models.layers.patch_embed.py: PatchEmbed.forward to support arbitrary window sizes.
dmidas/backbones/beit.py:18
Functionpil_to_batched_tensor
(img)
dzoedepth/utils/misc.py:355
Functionprint_numpy
Print the mean, min, max, median, std, and size of a numpy array Parameters: val (bool) -- if print the values of the numpy array
pix2pix/util/util.py:69
Methodprint_options
Print and save options It will print both current options and default values(if different). It will save options into a text file / [
src/depthmap_generation.py:610
Methodprint_options
Print and save options It will print both current options and default values(if different). It will save options into a text file / [
pix2pix/options/base_options.py:108
Functionprintc
(text, color)
dzoedepth/utils/misc.py:337
Functionprocess
( depth_input_images: List[str] = Body([], title='Input Images'), options: Dict[str, object] =
scripts/depthmap_api.py:53
Functionprocess_video
( depth_input_images: List[str] = Body([], title='Input Images'), options: Dict[str, object] =
scripts/depthmap_api.py:78
Methodquery
Return an image from the pool. Parameters: images: the latest generated images from the generator Returns images from th
pix2pix/util/image_pool.py:23
Functionreconstruct_depth
para disp: disparity, [h, w] para rgb: rgb image, [h, w, 3], in rgb format
lib/test_utils.py:212
Functionrecover_metric_depth
(pred, gt)
lib/test_utils.py:229
Functionrefine_focal
(depth, focal, model, u0, v0)
lib/test_utils.py:111
Functionrefine_shift
(depth_wshift, model, focal, u0, v0)
lib/test_utils.py:120
Functionreload_sd_model
()
src/backbone.py:71
Functionrepaint_info
(mesh, cc, x_anchor, y_anchor, source_type)
inpaint/mesh_tools.py:911
Functionreproject_3d_int
(sx, sy, z, mesh)
inpaint/mesh.py:153
Functionreproject_3d_int_detail_FB
(sx, sy, z, w_offset, h_offset, mesh)
inpaint/mesh.py:139
Functionresize_for_edge
(tensor_dict, largest_size)
inpaint/mesh_tools.py:841
Methodresize_to_target
(self, prediction, target)
dzoedepth/trainers/base_trainer.py:64
Functionresnet101
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/Resnet.py:183
Functionresnet152
Constructs a ResNet-152 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/Resnet.py:193
Functionresnet18
Constructs a ResNet-18 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/Resnet.py:155
Functionresnet34
Constructs a ResNet-34 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/Resnet.py:164
Functionresnet50
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/Resnet.py:173
Functionresnet50_stride32
()
lib/network_auxi.py:8
Functionresnext101_stride32x8d
()
lib/network_auxi.py:11
Functionrevise_map_by_nodes
(nodes, imap, operation, limit_constr=None)
inpaint/mesh_tools.py:892
Methodrun
(self, p, *inputs)
scripts/depthmap.py:30
Functionrun_generate
(*inputs)
src/common_ui.py:454
Functionsave_image
(image, path, basename, **kwargs)
src/backbone.py:91
← previousnext →901–1,000 of 1,036, ranked by callers