MCPcopy Create free account

hub / github.com/ladaapp/lada / functions

Functions1,651 in github.com/ladaapp/lada

↓ 1 callersFunctionall_to_tensor
Trans image and sequence of frames to tensor. Args: value (np.ndarray | list[np.ndarray] | Tuple[np.ndarray]): The original i
lada/models/basicvsrpp/mmagic/img_utils.py:50
↓ 1 callersMethodapply_noise
(self, img)
lada/utils/transforms.py:147
↓ 1 callersFunctionapply_random_mask_extensions
(scene: Scene)
lada/datasetcreation/nsfw_scene_detector.py:306
↓ 1 callersFunctionapprox_memory
(video_metadata: VideoMetadata, frames_count, assume_images=True, assume_masks=True)
lada/utils/video_utils.py:257
↓ 1 callersFunctionattempt_load
(weights, map_location=None, inplace=True, fuse=True)
lada/models/bpjdet/models/experimental.py:68
↓ 1 callersMethodattention
(self, x: torch.Tensor)
lada/models/dover/models/xclip_backbone.py:321
↓ 1 callersFunctionautopad
(k, p=None)
lada/models/bpjdet/models/common.py:30
↓ 1 callersFunctionaverage
Average of key in results(list[dict]). Args: results (list[dict]): A list of dict containing the necessary data. key (str): The k
lada/models/basicvsrpp/mmagic/metrics_utils.py:56
↓ 1 callersFunctionbgr2ycbcr
Convert a BGR image to YCbCr image. The bgr version of rgb2ycbcr. It implements the ITU-R BT.601 conversion for standard-definition telev
lada/models/basicvsrpp/mmagic/colorspace.py:183
↓ 1 callersMethodbind
(self, model)
lada/gui/export/export_multiple_files_page.py:36
↓ 1 callersFunctionbivariate_Gaussian
Generate a bivariate isotropic or anisotropic Gaussian kernel. In the isotropic mode, only `sig_x` is used. `sig_y` and `theta` is ignored. Ar
lada/utils/degradations.py:83
↓ 1 callersFunctionbivariate_generalized_Gaussian
Generate a bivariate generalized Gaussian kernel. Described in `Parameter Estimation For Multivariate Generalized Gaussian Distributio
lada/utils/degradations.py:108
↓ 1 callersFunctionbivariate_plateau
Generate a plateau-like anisotropic kernel. 1 / (1+x^(beta)) Ref: https://stats.stackexchange.com/questions/203629/is-there-a-plateau-shaped-d
lada/utils/degradations.py:139
↓ 1 callersFunctionbox_iou
Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in (x1, y1, x2, y2) format. Arguments:
lada/models/bpjdet/utils/metrics.py:12
↓ 1 callersMethodbuild_attention_mask
(self)
lada/models/dover/models/xclip_backbone.py:242
↓ 1 callersMethodbuild_conv_block
(self, dim, padding_type, activation, use_dropout)
lada/models/deepmosaics/models/model_util.py:98
↓ 1 callersFunctionbuild_pip_install_commands
(dependencies: list[tuple[str, str, str]])
packaging/flatpak/convert-pylock-to-flatpak.py:63
↓ 1 callersMethodbutton_mute_unmute_callback
(self, button_clicked)
lada/gui/watch/watch_view.py:218
↓ 1 callersMethodbutton_play_pause_callback
(self, button_clicked)
lada/gui/watch/watch_view.py:202
↓ 1 callersMethodcache_text
(self, text)
lada/models/dover/models/xclip_backbone.py:782
↓ 1 callersFunctioncan_convert_to_image
Judge whether the input value can be converted to image tensor via :func:`images_to_tensor` function. Args: value (any): The input va
lada/models/basicvsrpp/mmagic/img_utils.py:11
↓ 1 callersMethodcast_data
Copying data to the target device. Args: data (dict): Data returned by ``DataLoader``. Returns: CollatedResu
lada/models/basicvsrpp/mmagic/data_preprocessor.py:131
↓ 1 callersFunctioncharbonnier_loss
Charbonnier loss. Args: pred (Tensor): Prediction Tensor with shape (n, c, h, w). target ([type]): Target Tensor with shape (n, c
lada/models/basicvsrpp/mmagic/pixelwise_loss.py:46
↓ 1 callersFunctioncheck_anchor_order
(m)
lada/models/bpjdet/utils/autoanchor.py:10
↓ 1 callersFunctionchoose_biggest_detection
Returns the biggest detection box and mask of a YOLO Results set
lada/utils/ultralytics_utils.py:83
↓ 1 callersMethodclear_thumbnail
(self)
lada/gui/watch/seek_preview_popover.py:59
↓ 1 callersFunctionclip_coords
(boxes, shape)
lada/models/bpjdet/utils/general.py:297
↓ 1 callersFunctionclip_coords_v2
(points, shape)
lada/models/bpjdet/utils/general.py:287
↓ 1 callersMethodcomplete
(self)
lada/datasetcreation/nsfw_scene_detector.py:96
↓ 1 callersMethodcompute_flow
Compute optical flow using SPyNet for feature alignment. Args: lqs (tensor): Input low quality (LQ) sequence with
lada/models/basicvsrpp/mmagic/basicvsr_plusplus_net.py:91
↓ 1 callersMethodcompute_flow
Compute flow from ref to supp. Note that in this function, the images are already resized to a multiple of 32. Args:
lada/models/basicvsrpp/mmagic/basicvsr_plusplus_net.py:403
↓ 1 callersFunctioncompute_mask
(D, H, W, window_size, shift_size, device)
lada/models/dover/models/backbone_v0_1.py:424
↓ 1 callersFunctioncompute_mask
(D, H, W, window_size, shift_size, device)
lada/models/dover/models/backbone_get_attention.py:530
↓ 1 callersFunctioncompute_mask
(D, H, W, window_size, shift_size, device)
lada/models/dover/models/swin_backbone.py:562
↓ 1 callersMethodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
lada/models/basicvsrpp/mmagic/base_gen_metric.py:180
↓ 1 callersMethodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
lada/models/basicvsrpp/mmagic/base_gen_metric.py:364
↓ 1 callersMethodcompute_zero_padding
Compute zero padding tuple. Args: kernel_size (tuple[int]): The size of the kernel. Returns: tuple: Padding
lada/models/basicvsrpp/mmagic/gan_loss.py:185
↓ 1 callersMethodconstruct_result
(self, preds: torch.tensor, img: torch.tensor, orig_img: ImageTensor, proto: torch.tensor)
lada/models/yolo/yolo11_segmentation_model.py:89
↓ 1 callersFunctionconvert_segment_masks_to_yolo_labels
pixel_to_class_mapping is a dict providing a mapping from pixel value to class id. e.g. if you only have a single class with id 0 and binary
lada/utils/ultralytics_utils.py:114
↓ 1 callersFunctionconvert_to_boxes
(dets)
lada/datasetcreation/detectors/face_detector.py:10
↓ 1 callersMethodconvert_to_datasample
Add predictions and destructed inputs (if passed) to data samples. Args: predictions (DataSample): The predictions of the model.
lada/models/basicvsrpp/mmagic/base_edit_model.py:124
↓ 1 callersFunctionconvert_to_yolo
( file_name: str, bbox: Tuple[float], category_id: int, yolo_labels_path: str, yolo_images
lada/utils/watermark_creation_utils.py:373
↓ 1 callersFunctionconvert_to_yolo_txt_lines
(labelme_json, labelme_label_to_yolo_class_mapping={"nsfw": 0})
scripts/dataset_creation/convert-dataset-labelme-to-yolo.py:10
↓ 1 callersFunctionconvert_yolo_mask
(yolo_mask: UltralyticsMasks, img_shape)
lada/utils/ultralytics_utils.py:78
↓ 1 callersFunctionconvnext_3d_small
(pretrained=False, in_22k=False, **kwargs)
lada/models/dover/models/conv_backbone.py:596
↓ 1 callersFunctionconvnextv2_3d_femto
(pretrained="../pretrained/convnextv2_femto_1k_224_ema.pt", **kwargs)
lada/models/dover/models/conv_backbone.py:610
↓ 1 callersFunctionconvnextv2_3d_pico
(pretrained="../pretrained/convnextv2_pico_1k_224_ema.pt", **kwargs)
lada/models/dover/models/conv_backbone.py:615
↓ 1 callersFunctioncopy_attr
(a, b, include=(), exclude=())
lada/models/bpjdet/utils/torch_utils.py:112
↓ 1 callersMethodcreate_item_for_list_box_fun
(self)
lada/gui/export/export_multiple_files_page.py:39
↓ 1 callersFunctioncreate_mask
(frame: Image, box: Box)
lada/datasetcreation/detectors/face_detector.py:18
↓ 1 callersMethodd_step_fake
Fake part of D step. Args: batch_outputs (Tensor): Output of generator. batch_gt_data (Tuple[Tensor]): Batch GT data.
lada/models/basicvsrpp/mmagic/real_basicvsr.py:313
↓ 1 callersMethodd_step_real
Real part of D step. Args: batch_outputs (Tensor): Batch output of generator. batch_gt_data (Tuple[Tensor]): Batch GT
lada/models/basicvsrpp/mmagic/real_basicvsr.py:293
↓ 1 callersMethodd_step_with_optim
D step with optim of GAN: Calculate losses of discriminator and run optim. Args: batch_outputs (Tensor): Batch output of
lada/models/basicvsrpp/mmagic/real_basicvsr.py:394
↓ 1 callersMethoddetect_face_mosaics
(self)
lada/gui/config/config.py:295
↓ 1 callersMethoddevice
(self, value: str)
lada/gui/frame_restorer_provider.py:59
↓ 1 callersFunctiondisc_shift_loss
Disc Shift loss. This loss is proposed in PGGAN as an auxiliary loss for discriminator. Args: pred (Tensor): Input tensor. Retu
lada/models/basicvsrpp/mmagic/gan_loss.py:387
↓ 1 callersFunctiondraw_box
(img, box, color=(255, 0, 0), thickness = 2)
lada/utils/visualization_utils.py:23
↓ 1 callersFunctiondraw_text
(text, position, output, font_scale=0.5)
lada/utils/visualization_utils.py:27
↓ 1 callersFunctiondrop_path
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). This is the same as the DropConnect impl I created for Ef
lada/models/dover/models/xclip_backbone.py:20
↓ 1 callersFunctiondump_encoder_options
(encoder: str)
lada/gui/utils.py:188
↓ 1 callersMethoddynamicize_shapes
(static_model)
lada/models/centerface/centerface.py:66
↓ 1 callersMethodencode_image
(self, image)
lada/models/dover/models/xclip_backbone.py:254
↓ 1 callersMethodencode_image
(self, image)
lada/models/dover/models/xclip_backbone.py:743
↓ 1 callersMethodencode_text
(self, text)
lada/models/dover/models/xclip_backbone.py:257
↓ 1 callersMethodevery_n_iters
This is the function to perform every n iterations. Args: runner (Runner): runner used to drive the whole pipeline n
lada/models/basicvsrpp/mmagic/ema.py:106
↓ 1 callersMethodexecute_post_export_action
(self)
lada/gui/export/export_view.py:575
↓ 1 callersFunctionextend_mask
(mask: Mask, value)
lada/utils/mask_utils.py:29
↓ 1 callersFunctionextract_csv_strings
(csv_file, pot_file, column_header)
translations/extract_csv_strings.py:7
↓ 1 callersMethodextract_gt_data
extract gt data from data samples. Args: data_samples (list): List of DataSample. Returns: Tensor: Extract g
lada/models/basicvsrpp/mmagic/real_basicvsr.py:116
↓ 1 callersFunctionfilter_srt_subtitle_files
(files: list[Gio.File])
lada/gui/utils.py:115
↓ 1 callersFunctionfilter_video_files
(files: list[Gio.File])
lada/gui/utils.py:104
↓ 1 callersFunctionformat_label
Convert label of various python types to :obj:`mmengine.LabelData`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :clas
lada/models/basicvsrpp/mmagic/data_sample.py:19
↓ 1 callersMethodforward
(self, img)
lada/utils/transforms.py:53
↓ 1 callersMethodforward
(self, x, augment=False, profile=False, visualize=False, scales=[0.5, 1, 2], flips=[None, 3, None])
lada/models/bpjdet/models/yolo.py:134
↓ 1 callersMethodforward
(self, x)
lada/models/bpjdet/models/common.py:137
↓ 1 callersMethodforward
(self, image, text)
lada/models/dover/models/xclip_backbone.py:272
↓ 1 callersMethodforward_augment
(self, x, s=[0.5, 1, 2], f=[None, 3, None])
lada/models/bpjdet/models/yolo.py:139
↓ 1 callersMethodforward_features
(self, x)
lada/models/dover/models/conv_backbone.py:116
↓ 1 callersMethodforward_features
(self, x)
lada/models/dover/models/conv_backbone.py:308
↓ 1 callersMethodforward_features
(self, x, return_spatial=False, multi=False, layer=-1)
lada/models/dover/models/conv_backbone.py:417
↓ 1 callersMethodforward_features
(self, x, return_spatial=False, multi=False, layer=-1)
lada/models/dover/models/conv_backbone.py:509
↓ 1 callersMethodforward_inference
Forward inference. Returns predictions of validation, testing, and simple inference. Args: inputs (torch.Tensor): batch i
lada/models/basicvsrpp/mmagic/base_edit_model.py:174
↓ 1 callersMethodforward_part1
(self, x, mask_matrix)
lada/models/dover/models/backbone_v0_1.py:308
↓ 1 callersMethodforward_part1
(self, x, mask_matrix)
lada/models/dover/models/backbone_get_attention.py:394
↓ 1 callersMethodforward_part1
(self, x, mask_matrix, resized_window_size=None)
lada/models/dover/models/swin_backbone.py:411
↓ 1 callersMethodforward_part2
(self, x)
lada/models/dover/models/backbone_v0_1.py:356
↓ 1 callersMethodforward_part2
(self, x)
lada/models/dover/models/backbone_get_attention.py:462
↓ 1 callersMethodforward_part2
(self, x)
lada/models/dover/models/swin_backbone.py:492
↓ 1 callersMethodforward_train
Forward Train. Run forward of generator with ``return_lqs=True`` Args: batch_inputs (Tensor): Batch inputs.
lada/models/basicvsrpp/mmagic/real_basicvsr.py:213
↓ 1 callersMethodforward_train
Forward training. Returns dict of losses of training. Args: inputs (torch.Tensor): batch input tensor collated by
lada/models/basicvsrpp/mmagic/base_edit_model.py:199
↓ 1 callersMethodfp16_enabled
(self)
lada/gui/config/config.py:284
↓ 1 callersFunctionfragment_infos
(D, H, W, fragments=7, device="cuda")
lada/models/dover/models/backbone_get_attention.py:17
↓ 1 callersFunctionfragment_infos
(D, H, W, fragments=7, device="cuda")
lada/models/dover/models/swin_backbone.py:18
↓ 1 callersMethodfuse
(self)
lada/models/bpjdet/models/yolo.py:222
↓ 1 callersFunctionfuse_conv_and_bn
(conv, bn)
lada/models/bpjdet/utils/torch_utils.py:53
↓ 1 callersMethodfuse_results
Fuse aesthetic and technical results into final scores
lada/models/dover/evaluate.py:93
↓ 1 callersMethodg_step
G step of GAN: Calculate losses of generator. Args: batch_outputs (Tensor): Batch output of generator. batch_gt_data
lada/models/basicvsrpp/mmagic/real_basicvsr.py:134
↓ 1 callersMethodg_step_super
G step of GAN: Calculate losses of generator. Args: batch_outputs (Tensor): Batch output of generator. batch_gt_data
lada/models/basicvsrpp/mmagic/real_basicvsr.py:258
↓ 1 callersMethodg_step_with_optim
G step with optim of GAN: Calculate losses of generator and run optim. Args: batch_outputs (Tensor): Batch output of gene
lada/models/basicvsrpp/mmagic/real_basicvsr.py:369
↓ 1 callersFunctiongather_dependencies
(pylock: dict, glib_version: tuple[int, int], python_version: tuple[int, int, int])
packaging/flatpak/convert-pylock-to-flatpak.py:88
← previousnext →401–500 of 1,651, ranked by callers