MCPcopy Index your code

hub / github.com/ladaapp/lada / functions

Functions1,651 in github.com/ladaapp/lada

↓ 2 callersFunctionconvert_yolo_mask_tensor
(yolo_mask: UltralyticsMasks, img_shape)
lada/utils/ultralytics_utils.py:65
↓ 2 callersMethodcreate_action
(self, name, callback, shortcuts=None)
lada/gui/missing_flatpak_extension_application.py:45
↓ 2 callersFunctioncreate_dataset
( image_directory: str, logo_directory: str, yolo_labels_path: str, yolo_images_path: str, dataset_min_siz
scripts/dataset_creation/create-watermark-detection-dataset.py:22
↓ 2 callersFunctioncreate_degradation_pipeline
(img_shape: tuple[int, int, int], mosaic_size: int, device='cuda')
scripts/dataset_creation/create-mosaic-detection-dataset.py:85
↓ 2 callersFunctioncreate_degradation_pipeline
(lq_size)
lada/models/basicvsrpp/mosaic_video_dataset.py:23
↓ 2 callersFunctioncrop_to_box_v3
Crops Mask and Image by using Box. Will try to grow Box to better fit target size Parameters ---------- box img mask_img
lada/utils/scene_utils.py:8
↓ 2 callersFunctiondefault_init_weights
Initialize network weights. Args: modules (nn.Module): Modules to be initialized. scale (float): Scale initialized weights, espec
lada/models/basicvsrpp/mmagic/model_utils.py:17
↓ 2 callersMethoddelete_preset_row
(self, idx)
lada/gui/config/config_sidebar.py:393
↓ 2 callersFunctiondetermine_max_scene_length
(video_metadata: VideoMetadata, limit_seconds: int | None, limit_memory: int | None)
lada/datasetcreation/nsfw_scene_detector.py:297
↓ 2 callersFunctiondevice_to_gpu_id
(device)
lada/gui/utils.py:33
↓ 2 callersMethodencode_text
(self, text)
lada/models/dover/models/xclip_backbone.py:746
↓ 2 callersMethodencode_video
(self, image)
lada/models/dover/models/xclip_backbone.py:762
↓ 2 callersMethodevaluate
Invoke ``evaluate`` method of each metric and collect the metrics dictionary. Different from `Evaluator.evaluate`, this function does not
lada/models/basicvsrpp/mmagic/evaluator.py:167
↓ 2 callersFunctionexif_transpose
Transpose a PIL image accordingly if it has an EXIF Orientation tag. From https://github.com/python-pillow/Pillow/blob/master/src/PIL/ImageOp
lada/models/bpjdet/utils/datasets.py:11
↓ 2 callersMethodextract
(self)
scripts/dataset_creation/extract-video-frames.py:28
↓ 2 callersMethodforward
Forward Function. Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W
lada/models/basicvsrpp/mmagic/pixelwise_loss.py:99
↓ 2 callersMethodforward_once
(self, x, profile=False, visualize=False)
lada/models/bpjdet/models/yolo.py:155
↓ 2 callersMethodforward_tensor
Forward tensor. Returns result of simple forward. Args: inputs (torch.Tensor): batch input tensor collated by :at
lada/models/basicvsrpp/mmagic/real_basicvsr.py:237
↓ 2 callersMethodfrom_json_file
(path: str)
lada/datasetcreation/restoration_dataset_metadata.py:78
↓ 2 callersFunctiongenerate_gaussian_noise
Generate Gaussian noise. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. sigma (float): Noise scale
lada/utils/degradations.py:406
↓ 2 callersFunctiongenerate_gaussian_noise_pt
Add Gaussian noise (PyTorch version). Args: img (Tensor): Shape (b, c, h, w), range[0, 1], float32. scale (float | Tensor): Noise
lada/utils/degradations.py:444
↓ 2 callersFunctiongenerate_poisson_noise
Generate poisson noise. Ref: https://github.com/scikit-image/scikit-image/blob/main/skimage/util/noise.py#L37-L219 Args: img (Numpy ar
lada/utils/degradations.py:538
↓ 2 callersFunctiongenerate_poisson_noise_pt
Generate a batch of poisson noise (PyTorch version) Args: img (Tensor): Input image, shape (b, c, h, w), range [0, 1], float32. sc
lada/utils/degradations.py:583
↓ 2 callersMethodget_1d_gaussian_kernel
Get the Gaussian filter coefficients in one dimension (x or y direction). Args: kernel_size (int): Kernel filter size in
lada/models/basicvsrpp/mmagic/gan_loss.py:234
↓ 2 callersMethodget_action_row_for_existing_preset
(self, preset: EncodingPreset, active: bool)
lada/gui/config/config_sidebar.py:462
↓ 2 callersMethodget_config_file_path
(self)
lada/gui/config/config.py:442
↓ 2 callersMethodget_detection_model_by_name
(model_name: str)
lada/__init__.py:160
↓ 2 callersFunctionget_detections
(source: str | Image, detectors: list[NsfwImageDetector | FaceDetector | HeadDetector], negative_detectors: li
scripts/dataset_creation/create-mosaic-detection-dataset.py:95
↓ 2 callersFunctionget_detectors
(nsfw_detector: NsfwImageDetector | None, head_detector: HeadDetector | None, face_detector: FaceDetector | No
scripts/dataset_creation/create-mosaic-detection-dataset.py:272
↓ 2 callersFunctionget_files
(dir)
scripts/evaluation/run-yolo.py:42
↓ 2 callersMethodget_frame_restoration_queue
(self)
lada/gui/frame_restorer_provider.py:183
↓ 2 callersMethodget_gst_buffer_bounds
(self)
lada/gui/watch/watch_view.py:599
↓ 2 callersFunctionget_mask_area_by_bounding_box
(mask)
lada/utils/mosaic_utils.py:24
↓ 2 callersFunctionget_mask_area_by_contour
(mask)
lada/utils/mosaic_utils.py:15
↓ 2 callersFunctionget_non_skipped
(detections)
scripts/dataset_creation/create-mosaic-detection-dataset.py:109
↓ 2 callersFunctionget_params_by_names
Support two kinds of name matching: 1. matching name from **first-level** submodule. 2. matching name by `re.fullmatch`. Args:
lada/models/basicvsrpp/mmagic/multi_optimizer_constructor.py:218
↓ 2 callersMethodget_progress
(self)
lada/gui/export/export_utils.py:129
↓ 2 callersFunctionget_random_parameter
(mask, randomize_size=True)
lada/utils/mosaic_utils.py:227
↓ 2 callersFunctionget_random_parameters_by_block_size
(mosaic_base_size, randomize_size, repeatable_random=False, size_scale=(0.7,2.2))
lada/utils/mosaic_utils.py:235
↓ 2 callersFunctionget_resized_video
( video, size_h=224, size_w=224, random_crop=False, arp=False, **kwargs, )
lada/models/dover/datasets/dover_datasets.py:144
↓ 2 callersMethodget_restoration_model_by_name
(model_name: str)
lada/__init__.py:153
↓ 2 callersFunctionget_runtime_version_info
(gnome_runtime_version: int, module_name: str)
packaging/flatpak/convert-pylock-to-flatpak.py:72
↓ 2 callersMethodget_selected_encoder
(self)
lada/gui/config/encoding_preset_dialog.py:78
↓ 2 callersMethodget_target_label
Get target label. Args: input (Tensor): Input tensor. target_is_real (bool): Whether the target is real or fake.
lada/models/basicvsrpp/mmagic/gan_loss.py:73
↓ 2 callersFunctionget_target_shape
(img_shape, target_size: int)
scripts/dataset_creation/create-mosaic-detection-dataset.py:34
↓ 2 callersFunctionget_video_encoder_codecs
()
lada/utils/video_utils.py:508
↓ 2 callersFunctionget_window_size
(x_size, window_size, shift_size=None)
lada/models/dover/models/backbone_v0_1.py:98
↓ 2 callersFunctionget_window_size
(x_size, window_size, shift_size=None)
lada/models/dover/models/backbone_get_attention.py:137
↓ 2 callersFunctionget_window_size
(x_size, window_size, shift_size=None)
lada/models/dover/models/swin_backbone.py:149
↓ 2 callersFunctionhas_modern_intel_gpu
(device_index: int = 0)
lada/utils/os_utils.py:30
↓ 2 callersFunctionhas_modern_nvidia_gpu
(device_index: int = 0)
lada/utils/os_utils.py:16
↓ 2 callersFunctionincrement_path
(path, exist_ok=False, sep='', mkdir=False)
lada/models/bpjdet/utils/general.py:410
↓ 2 callersMethodinflate_weights
(self, s_state_dict)
lada/models/dover/models/conv_backbone.py:400
↓ 2 callersMethodinit
(self)
lada/cli/utils.py:194
↓ 2 callersMethodinit_pipeline
(self, video_metadata: VideoMetadata, subtitle_path: str | None = None)
lada/gui/watch/gstreamer_pipeline_manager.py:131
↓ 2 callersFunctionis_intel_qsv_encoding_available
()
lada/utils/video_utils.py:332
↓ 2 callersFunctionis_nvidia_cuda_encoding_available
()
lada/utils/video_utils.py:356
↓ 2 callersFunctionis_splitable_var
Check whether input is a splitable variable. Args: var (Any): The input variable to check. Returns: bool: Whether input vari
lada/models/basicvsrpp/mmagic/data_sample.py:57
↓ 2 callersFunctionletterbox
(im, new_shape=(640, 640), color=(114, 114, 114), auto=True, scaleFill=False, scaleup=True, stride=32)
lada/models/bpjdet/utils/augmentations.py:13
↓ 2 callersFunctionload_fonts
(lang="en")
lada/utils/watermark_creation_utils.py:16
↓ 2 callersFunctionload_model
(save_path, model_version='pov')
scripts/evaluation/run-bj-classifier.py:24
↓ 2 callersFunctionload_model
(config: str | dict | None, checkpoint_path, device, fp16=False)
lada/models/basicvsrpp/inference.py:37
↓ 2 callersFunctionload_models
( device: torch.device, mosaic_restoration_model_name: str, mosaic_restoration_model_path: str,
lada/restorationpipeline/__init__.py:11
↓ 2 callersMethodnms
(boxes, scores, nms_thresh)
lada/models/centerface/centerface.py:152
↓ 2 callersMethodon_spinner_visible
(self, is_spinner_visible: bool)
lada/gui/watch/overlay_elements_controller.py:123
↓ 2 callersFunctionoverlaps_with_negative_detection
(box: Box)
scripts/dataset_creation/create-mosaic-detection-dataset.py:103
↓ 2 callersFunctionpad_image_by_pad
(img: Image, pad: Pad, mode='zero')
lada/utils/image_utils.py:56
↓ 2 callersMethodpath_to_gst_uri
(self, path: str)
lada/gui/watch/gstreamer_pipeline_manager.py:405
↓ 2 callersMethodpipeline_add_audio
(self)
lada/gui/watch/gstreamer_pipeline_manager.py:187
↓ 2 callersMethodpipeline_add_subtitles
(self, subtitle_path: str)
lada/gui/watch/gstreamer_pipeline_manager.py:289
↓ 2 callersMethodpipeline_remove_subtitles
(self)
lada/gui/watch/gstreamer_pipeline_manager.py:320
↓ 2 callersMethodprepare_metrics
Prepare for metrics before evaluation starts. Some metrics use pretrained model to extract feature. Some metrics use pretrained model
lada/models/basicvsrpp/mmagic/evaluator.py:56
↓ 2 callersMethodprepare_samplers
Prepare for the sampler for metrics whose sampling mode are different. For generative models, different metric need image generated wi
lada/models/basicvsrpp/mmagic/evaluator.py:100
↓ 2 callersMethodprocess
Pass `data_batch` from dataloader and `predictions` (generated results) to corresponding `metrics`. Args: data_samples (S
lada/models/basicvsrpp/mmagic/evaluator.py:140
↓ 2 callersFunctionprocess_file
(input_path, args)
scripts/evaluation/run-yolo.py:32
↓ 2 callersMethodprocess_image
(self, gt, pred, mask)
lada/models/basicvsrpp/mmagic/base_sample_wise_metric.py:115
↓ 2 callersFunctionquality_to_factor
Calculate factor corresponding to quality Args: quality(float): Quality for jpeg compression. Returns: float: Compression fac
lada/utils/jpeg_utils.py:440
↓ 2 callersFunctionrandom_bivariate_Gaussian
Randomly generate bivariate isotropic or anisotropic Gaussian kernels. In the isotropic mode, only `sigma_x_range` is used. `sigma_y_range` and `r
lada/utils/degradations.py:167
↓ 2 callersFunctionrandom_bivariate_generalized_Gaussian
Randomly generate bivariate generalized Gaussian kernels. In the isotropic mode, only `sigma_x_range` is used. `sigma_y_range` and `rotation_range
lada/utils/degradations.py:210
↓ 2 callersFunctionrandom_bivariate_plateau
Randomly generate bivariate plateau kernels. In the isotropic mode, only `sigma_x_range` is used. `sigma_y_range` and `rotation_range` is ignored.
lada/utils/degradations.py:261
↓ 2 callersMethodregister_group
(self, group_key, group_title)
lada/gui/shortcuts.py:15
↓ 2 callersFunctionrepad_image
(imgs: list[Image], pads: list[Pad], mode='reflect')
lada/utils/image_utils.py:79
↓ 2 callersMethodreset_appsource_worker
(self)
lada/gui/watch/watch_view.py:604
↓ 2 callersFunctionresize
(img: Image | ImageTensor, size: int | tuple[int, int], interpolation=cv2.INTER_LINEAR)
lada/utils/image_utils.py:198
↓ 2 callersFunctionresize_image
Resize an image to a specific size. Args: image (Image): The image to resize. size (Tuple[int, int]): The size to resize the
lada/utils/watermark_creation_utils.py:358
↓ 2 callersMethodrestore
(self, video: list[ImageTensor], max_frames=-1)
lada/restorationpipeline/basicvsrpp_mosaic_restorer.py:12
↓ 2 callersFunctionrestore_video_frames
T is numer of frames processed in a single step (center frame + N previous/next frames that come before/after it): T = 2N + 1. The paper aut
lada/models/deepmosaics/inference.py:10
↓ 2 callersMethodsave
(self, save_dir='runs/detect/exp')
lada/models/bpjdet/models/common.py:376
↓ 2 callersMethodseek_video
(self, seek_position_ns)
lada/gui/watch/watch_view.py:367
↓ 2 callersMethodset_gt_label
Set label of ``gt_label``.
lada/models/basicvsrpp/mmagic/data_sample.py:242
↓ 2 callersFunctionset_requires_grad
Set requires_grad for all the networks. Args: nets (nn.Module | list[nn.Module]): A list of networks or a single network.
lada/models/basicvsrpp/mmagic/model_utils.py:72
↓ 2 callersMethodset_restore_button_label
(self)
lada/gui/export/export_view.py:254
↓ 2 callersMethodset_speaker_icon
(self, mute: bool)
lada/gui/watch/watch_view.py:359
↓ 2 callersMethodset_tensor_data
convert input data to tensor, and then set or change key-value pairs in ``data_field`` by parameter ``data``. Args: data
lada/models/basicvsrpp/mmagic/data_sample.py:224
↓ 2 callersMethodshow_select_folder
(self)
lada/gui/config/config_sidebar.py:501
↓ 2 callersFunctionspatial_temporal_view_decomposition
( video_path: str | list[np.ndarray], sample_types, samplers, is_train=False, augment=False, )
lada/models/dover/datasets/dover_datasets.py:223
↓ 2 callersMethodstart
(self, start_ns=0)
lada/restorationpipeline/frame_restorer.py:70
↓ 2 callersMethodstop
(self)
lada/datasetcreation/nsfw_scene_detector.py:530
↓ 2 callersMethodstop
(self)
lada/restorationpipeline/frame_restorer.py:89
↓ 2 callersFunctionto_numpy
Convert data into numpy arrays of dtype. Args: img (Tensor | np.ndarray): Input data. dtype (np.dtype): Set the data type of the
lada/models/basicvsrpp/mmagic/img_utils.py:112
← previousnext →201–300 of 1,651, ranked by callers