MCPcopy Create free account

hub / github.com/ShihaoZhaoZSH/Uni-ControlNet / functions

Functions2,265 in github.com/ShihaoZhaoZSH/Uni-ControlNet

Functionfuse_model
(m)
annotator/midas/midas/midas_net_custom.py:109
Methodgaussian
(self, theta_x, phi_x)
annotator/uniformer/mmcv/cnn/bricks/non_local.py:116
Functiongen_kernel
# modified version of https://github.com/assafshocher/BlindSR_dataset_generator # Kai Zhang # min_var = 0.175 * sf # variance of the gau
ldm/modules/image_degradation/bsrgan_light.py:144
Functiongen_kernel
# modified version of https://github.com/assafshocher/BlindSR_dataset_generator # Kai Zhang # min_var = 0.175 * sf # variance of the gau
ldm/modules/image_degradation/bsrgan.py:145
Methodget
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:39
Methodget
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:72
Methodget
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:440
Methodget
Get values according to the filepath. Args: filepath (str | obj:`Path`): Here, filepath is the lmdb key.
annotator/uniformer/mmcv/fileio/file_client.py:488
Methodget
Read data from a given ``filepath`` with 'rb' mode. Args: filepath (str or Path): Path to read data. Returns:
annotator/uniformer/mmcv/fileio/file_client.py:508
Functionget_classes
Get class names of a dataset.
annotator/uniformer/mmseg/core/evaluation/class_names.py:121
Methodget_classifier
(self)
annotator/uniformer/mmseg/models/backbones/uniformer.py:376
Methodget_fold_unfold
:param x: img of size (bs, c, h, w) :return: n img crops of size (n, bs, c, kernel_size[0], kernel_size[1])
ldm/models/diffusion/ddpm.py:714
Methodget_input
(self, batch, k, cond_key=None, bs=None, return_first_stage_outputs=False)
ldm/models/diffusion/ddpm.py:1651
Methodget_input
(self, batch, k, cond_key=None, bs=None, return_first_stage_outputs=False)
ldm/models/diffusion/ddpm.py:1695
Methodget_input
(self, batch, k, cond_key=None, bs=None, return_first_stage_outputs=False)
ldm/models/diffusion/ddpm.py:1760
Methodget_last_layer
(self)
ldm/modules/diffusionmodules/model.py:448
Methodget_local_path
Download a file from ``filepath`` and return a temporary path. ``get_local_path`` is decorated by :meth:`contxtlib.contextmanager`. It
annotator/uniformer/mmcv/fileio/file_client.py:300
Methodget_local_path
Only for unified API and do nothing.
annotator/uniformer/mmcv/fileio/file_client.py:633
Methodget_local_path
Download a file from ``filepath``. ``get_local_path`` is decorated by :meth:`contxtlib.contextmanager`. It can be called with ``with`
annotator/uniformer/mmcv/fileio/file_client.py:703
Methodget_local_path
Download data from ``filepath`` and write the data to local path. ``get_local_path`` is decorated by :meth:`contxtlib.contextmanager`. It
annotator/uniformer/mmcv/fileio/file_client.py:1095
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:162
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:193
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:220
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:233
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:252
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:266
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:314
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:368
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:485
Methodget_lr
(self, runner, base_lr)
annotator/uniformer/mmcv/runner/hooks/lr_updater.py:614
Functionget_model_complexity_info
Get complexity information of a model. This method can calculate FLOPs and parameter counts of a model with corresponding input shape. It can
annotator/uniformer/mmcv/cnn/utils/flops_counter.py:36
Methodget_model_output
(x, t)
ldm/models/diffusion/plms.py:184
Methodget_momentum
(self, runner, base_momentum)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:181
Methodget_momentum
(self, runner, base_momentum)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:210
Methodget_momentum
(self, runner, base_momentum)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:286
Methodget_regular_momentum
(self, runner)
annotator/uniformer/mmcv/runner/hooks/momentum_updater.py:479
Methodget_text
(self, filepath)
annotator/uniformer/mmcv/fileio/file_client.py:43
Methodget_text
(self, filepath, encoding=None)
annotator/uniformer/mmcv/fileio/file_client.py:81
Methodget_text
Read data from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): T
annotator/uniformer/mmcv/fileio/file_client.py:164
Methodget_text
(self, filepath, encoding=None)
annotator/uniformer/mmcv/fileio/file_client.py:447
Methodget_text
(self, filepath, encoding=None)
annotator/uniformer/mmcv/fileio/file_client.py:499
Methodget_text
Read data from a given ``filepath`` with 'r' mode. Args: filepath (str or Path): Path to read data. encoding (str): T
annotator/uniformer/mmcv/fileio/file_client.py:521
Methodget_text
(self, filepath, encoding='utf-8')
annotator/uniformer/mmcv/fileio/file_client.py:698
Methodget_unconditional_conditioning
(self, bs, device="cuda")
ldm/modules/encoders/modules.py:45
Methodget_x_prev_and_pred_x0
(e_t, index)
ldm/models/diffusion/plms.py:205
Functiongray2rgb
Convert a grayscale image to RGB image. Args: img (ndarray): The input image. Returns: ndarray: The converted RGB image.
annotator/uniformer/mmcv/image/colorspace.py:70
Functionhack_everything
(clip_skip=0)
models/hack.py:23
FunctionhandDetect
(candidate, subset, oriImg)
annotator/openpose/util.py:94
Methodheight
int: Height of video frames.
annotator/uniformer/mmcv/video/io.py:95
Methodhooks
list[:obj:`Hook`]: A list of registered hooks.
annotator/uniformer/mmcv/runner/base_runner.py:155
Functionimconvert
Convert an image from the src colorspace to dst colorspace. Args: img (ndarray): The input image. src (str): The source colorspac
annotator/uniformer/mmcv/image/colorspace.py:6
Functionimcrop
Crop image patches. 3 steps: scale the bboxes -> clip bboxes -> crop and pad. Args: img (ndarray): Image to be cropped. bbox
annotator/uniformer/mmcv/image/geometric.py:386
Functionimdenormalize
(img, mean, std, to_bgr=True)
annotator/uniformer/mmcv/image/photometric.py:48
Functionimequalize
Equalize the image histogram. This function applies a non-linear mapping to the input image, in order to create a uniform distribution of gra
annotator/uniformer/mmcv/image/photometric.py:131
Functionimflip
Flip an image horizontally or vertically. Args: img (ndarray): Image to be flipped. direction (str): The flip direction, either "
annotator/uniformer/mmcv/image/geometric.py:252
Functionimflip_
Inplace flip an image horizontally or vertically. Args: img (ndarray): Image to be flipped. direction (str): The flip direction,
annotator/uniformer/mmcv/image/geometric.py:272
Functionimfrombytes
Read an image from bytes. Args: content (bytes): Image bytes got from files or other streams. flag (str): Same as :func:`imread`.
annotator/uniformer/mmcv/image/io.py:203
Functioniminvert
Invert (negate) an image. Args: img (ndarray): Image to be inverted. Returns: ndarray: The inverted image.
annotator/uniformer/mmcv/image/photometric.py:59
Functionimnormalize
Normalize an image with mean and std. Args: img (ndarray): Image to be normalized. mean (ndarray): The mean to be used for normal
annotator/uniformer/mmcv/image/photometric.py:9
Functionimpad_to_multiple
Pad an image to ensure each edge to be multiple to some number. Args: img (ndarray): Image to be padded. divisor (int): Padded im
annotator/uniformer/mmcv/image/geometric.py:522
Functionimrescale
Resize image while keeping the aspect ratio. Args: img (ndarray): The input image. scale (float | tuple[int]): The scaling factor
annotator/uniformer/mmcv/image/geometric.py:221
Functionimresize
(img, scale, antialiasing=True)
ldm/modules/image_degradation/utils_image.py:766
Functionimresize_like
Resize image to the same size of a given image. Args: img (ndarray): The input image. dst_img (ndarray): The target image.
annotator/uniformer/mmcv/image/geometric.py:162
Functionimresize_np
(img, scale, antialiasing=True)
ldm/modules/image_degradation/utils_image.py:839
Functionimresize_to_multiple
Resize image according to a given size or scale factor and then rounds up the the resized or rescaled image size to the nearest value that can be
annotator/uniformer/mmcv/image/geometric.py:98
Functionimrotate
Rotate an image. Args: img (ndarray): Image to be rotated. angle (float): Rotation angle in degrees, positive values mean
annotator/uniformer/mmcv/image/geometric.py:292
Functionimsave
(img, img_path)
ldm/modules/image_degradation/utils_image.py:203
Functionimshear
Shear an image. Args: img (ndarray): Image to be sheared with format (h, w) or (h, w, c). magnitude (int | float): Th
annotator/uniformer/mmcv/image/geometric.py:611
Functionimshow
(x, title=None, cbar=False, figsize=None)
ldm/modules/image_degradation/utils_image.py:37
Functionimshow_bboxes
Draw bboxes on an image. Args: img (str or ndarray): The image to be displayed. bboxes (list or ndarray): A list of ndarray of sh
annotator/uniformer/mmcv/visualization/image.py:30
Functionimshow_det_bboxes
Draw bboxes and class labels (with scores) on an image. Args: img (str or ndarray): The image to be displayed. bboxes (ndarray):
annotator/uniformer/mmcv/visualization/image.py:84
Functionimtranslate
Translate an image. Args: img (ndarray): Image to be translated with format (h, w) or (h, w, c). offset (int | float)
annotator/uniformer/mmcv/image/geometric.py:680
Functionimwrite
(img, img_path)
ldm/modules/image_degradation/utils_image.py:209
Methodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:181
Methodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:267
Methodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:320
Methodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:365
Methodinit
(m)
annotator/uniformer/mmcv/cnn/utils/weight_init.py:425
Functioninit_
(tensor)
ldm/modules/attention.py:41
Functioninit_dist
(launcher, backend='nccl', **kwargs)
annotator/uniformer/mmcv/runner/dist_utils.py:14
Methodinit_weights
Initialize the weights in segmentor. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to N
annotator/uniformer/mmseg/models/segmentors/base.py:65
Methodinit_weights
Initialize the weights in backbone and heads. Args: pretrained (str, optional): Path to pre-trained weights. Defa
annotator/uniformer/mmseg/models/segmentors/cascade_encoder_decoder.py:48
Methodinit_weights
(self)
annotator/uniformer/mmseg/models/necks/fpn.py:157
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
annotator/uniformer/mmseg/models/backbones/unet.py:412
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
annotator/uniformer/mmseg/models/backbones/cgnet.py:338
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/vit.py:314
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/mobilenet_v3.py:220
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
annotator/uniformer/mmseg/models/backbones/hrnet.py:484
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/fast_scnn.py:360
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmseg/models/backbones/mobilenet_v2.py:136
Methodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
annotator/uniformer/mmseg/models/backbones/resnet.py:600
Methodinit_weights
Initialize weights of classification layer.
annotator/uniformer/mmseg/models/decode_heads/decode_head.py:133
Methodinit_weights
Initialize weights of classification layer.
annotator/uniformer/mmseg/models/decode_heads/point_head.py:104
Methodinit_weights
Initialize the weights.
annotator/uniformer/mmcv/runner/base_module.py:56
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmcv/cnn/alexnet.py:43
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmcv/cnn/vgg.py:125
Methodinit_weights
(self, pretrained=None)
annotator/uniformer/mmcv/cnn/resnet.py:265
Methodinner_iter
int: Iteration in an epoch.
annotator/uniformer/mmcv/runner/base_runner.py:170
Methodis_init
(self)
annotator/uniformer/mmcv/runner/base_module.py:53
Functionis_jit_tracing
()
annotator/uniformer/mmcv/utils/trace.py:8
← previousnext →1,901–2,000 of 2,265, ranked by callers