MCPcopy Create free account

hub / github.com/ladaapp/lada / functions

Functions1,651 in github.com/ladaapp/lada

↓ 2 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
lada/models/basicvsrpp/mmagic/img_utils.py:132
↓ 2 callersFunctionunpad_image
(img: Image, pad: Pad)
lada/utils/image_utils.py:105
↓ 2 callersMethodupdate_cursor_position
(self, x)
lada/gui/watch/timeline.py:100
↓ 2 callersMethodupdate_text_view_encoder_options
(self, encoder: str)
lada/gui/config/encoding_preset_dialog.py:85
↓ 2 callersMethodvalidate_and_set_device
(self, configured_device: str)
lada/gui/config/config.py:446
↓ 2 callersFunctionvalidate_file_name_pattern
(file_name_pattern: str)
lada/gui/utils.py:87
↓ 2 callersFunctionwindow_partition
Args: x: (B, D, H, W, C) window_size (tuple[int]): window size Returns: windows: (B*num_windows, window_size*window_
lada/models/dover/models/backbone_v0_1.py:45
↓ 2 callersFunctionwrite_frames_to_video_file
(frames: list[Image], output_path, fps: int | float | Fraction, codec='x264', preset='medium', crf=None)
lada/utils/video_utils.py:191
↓ 2 callersFunctionxyxy2xywh
(x)
lada/models/bpjdet/utils/general.py:151
↓ 1 callersFunctionVideoReaderOpenCV
(*args, **kwargs)
lada/utils/video_utils.py:73
↓ 1 callersMethod__enter__
(self)
lada/utils/video_utils.py:87
↓ 1 callersMethod__exit__
(self, exc_type, exc_value, traceback)
lada/utils/video_utils.py:94
↓ 1 callersMethod__init__
(self, video_metadata: VideoMetadata)
lada/cli/utils.py:180
↓ 1 callersMethod__init__
(self, shortcuts_manager: ShortcutsManager)
lada/gui/shortcuts.py:34
↓ 1 callersMethod__init__
(self, original_file: Gio.File, restored_file: Gio.File)
lada/gui/export/export_item_data.py:92
↓ 1 callersMethod__init__
(self, generator, discriminator=None, gan_loss=None,
lada/models/basicvsrpp/basicvsrpp_gan.py:65
↓ 1 callersMethod__init__
(self, fake_nums: int, real_nums: int = 0, fake_key: Option
lada/models/basicvsrpp/mmagic/base_gen_metric.py:48
↓ 1 callersMethod__init__
(self, cfg='yolov5s.yaml', ch=3, nc=None, anchors=None, num_offsets=0, autobalance=False)
lada/models/bpjdet/models/yolo.py:89
↓ 1 callersMethod__init__
( self, fsize_t, fragments_t, frame_interval=1, num_clips=1, drop_rate=0.0, )
lada/models/dover/datasets/dover_datasets.py:275
↓ 1 callersMethod_apply_video_compression
(self, imgs: list[Image], codec, bitrate, crf=None)
lada/utils/transforms.py:224
↓ 1 callersMethod_as_dict
(self)
lada/gui/config/config.py:378
↓ 1 callersFunction_assert_masked
(pred_alpha, trimap)
lada/models/basicvsrpp/mmagic/metrics_utils.py:18
↓ 1 callersMethod_build_dataloaders
Build dataloaders. Args: dataloader (Dataloader or dict or list): A dataloader object or a dict to build a datalo
lada/models/basicvsrpp/mmagic/multi_loops.py:112
↓ 1 callersMethod_build_dataloaders
Build dataloaders. Args: dataloader (Dataloader or dict or list): A dataloader object or a dict to build a datalo
lada/models/basicvsrpp/mmagic/multi_loops.py:363
↓ 1 callersMethod_build_evaluators
Build evaluators. Args: evaluator (Evaluator or dict or list): A evaluator object or a dict to build the evaluato
lada/models/basicvsrpp/mmagic/multi_loops.py:139
↓ 1 callersMethod_build_evaluators
Build evaluators. Args: evaluator (Evaluator or dict or list): A evaluator object or a dict to build the evaluato
lada/models/basicvsrpp/mmagic/multi_loops.py:390
↓ 1 callersMethod_cache_thumbnail
Add frame to cache with LRU eviction
lada/utils/video_utils.py:577
↓ 1 callersFunction_cal_inside_iou
(bigBox, smallBox)
lada/models/bpjdet/inference.py:48
↓ 1 callersMethod_cal_metric_hash
Calculate a unique hash value based on the `SAMPLER_MODE` and `sample_model`.
lada/models/basicvsrpp/mmagic/evaluator.py:86
↓ 1 callersMethod_check_file
(self, file_index: 0, file_path: str)
lada/datasetcreation/nsfw_scene_detector.py:394
↓ 1 callersMethod_clip_buffer_contains_all_cips_needed_for_current_restoration
(self, current_frame_num, num_mosaic_detections, clip_buffer)
lada/restorationpipeline/frame_restorer.py:241
↓ 1 callersMethod_collect_garbage
(self, clip_buffer)
lada/restorationpipeline/frame_restorer.py:232
↓ 1 callersFunction_create_mask
(frame: Image, box: Box)
lada/datasetcreation/detectors/head_detector.py:10
↓ 1 callersMethod_create_or_append_scenes_based_on_prediction_result
(self, results: UltralyticsResults, scenes: list[Scene], frame_num)
lada/restorationpipeline/mosaic_detector.py:264
↓ 1 callersFunction_create_realesrgan_degradation_pipeline
(img_shape, mosaic_size: int, device: str, p:float)
scripts/dataset_creation/create-mosaic-detection-dataset.py:39
↓ 1 callersMethod_descale_pred
(self, p, flips, scale, img_size)
lada/models/bpjdet/models/yolo.py:182
↓ 1 callersMethod_destruct_norm_and_conversion
De-norm and de-convert channel order. Noted that, we de-norm first, and then de-conversion, since mean and std used in normalization is
lada/models/basicvsrpp/mmagic/data_preprocessor.py:704
↓ 1 callersMethod_destruct_padding
Destruct padding of the input tensor. Args: batch_tensor (Tensor): Tensor to destruct. data_samples (Union[SampleList
lada/models/basicvsrpp/mmagic/data_preprocessor.py:749
↓ 1 callersMethod_determine_relative_file_paths_by_v1_metadata
(path: str, v1_metadata: RestorationDatasetMetadataV1)
lada/datasetcreation/restoration_dataset_metadata.py:132
↓ 1 callersMethod_dump_queue_stats
(self)
lada/restorationpipeline/frame_restorer.py:140
↓ 1 callersMethod_encoding_preset_as_dict
(self, encoding_preset: video_utils.EncodingPreset)
lada/gui/config/config.py:403
↓ 1 callersMethod_file_already_processed
(self, path_to_check: str)
lada/datasetcreation/nsfw_scene_detector.py:365
↓ 1 callersFunction_filter_video_files
(directory_path: str)
lada/cli/utils.py:24
↓ 1 callersMethod_find_subtitle_file
Find SRT subtitle file with the same name as video file.
lada/gui/watch/watch_view.py:683
↓ 1 callersMethod_format_duration
(self, duration_s)
lada/cli/utils.py:223
↓ 1 callersMethod_from_dict
(self, dict)
lada/gui/config/config.py:414
↓ 1 callersMethod_generate_kernel
(self, kernel_size: int, use_sync_filter: bool, kernel_list: list[str], kernel_prob: list[float], blur_sigma,
lada/utils/transforms.py:29
↓ 1 callersMethod_generate_kernel
(self, kernel_size: int, use_sync_filter: bool)
lada/utils/transforms.py:67
↓ 1 callersMethod_get_base_mosaic_block_size
(self, scene: Scene)
lada/datasetcreation/nsfw_scene_processor.py:233
↓ 1 callersMethod_get_cached_thumbnail
Get frame from cache if available and recent enough
lada/utils/video_utils.py:564
↓ 1 callersMethod_get_custom_detection_models
()
lada/__init__.py:93
↓ 1 callersMethod_get_custom_restoration_models
()
lada/__init__.py:108
↓ 1 callersFunction_get_detection
(dets: list[Box], frame, random_extend_masks: bool)
lada/datasetcreation/detectors/head_detector.py:35
↓ 1 callersFunction_get_language_from_os
()
lada/__init__.py:40
↓ 1 callersMethod_get_mean_processing_duration
(self)
lada/cli/utils.py:220
↓ 1 callersMethod_get_mean_processing_duration
(self)
lada/gui/export/export_utils.py:119
↓ 1 callersMethod_get_next_frame_and_push_buffer
(self)
lada/gui/watch/gstreamer_pipeline_appsrc.py:234
↓ 1 callersFunction_get_position
Returns a random position for the watermark Args: img_width (int): The width of the image img_height (int): The height of th
lada/utils/watermark_creation_utils.py:53
↓ 1 callersFunction_get_position_for_logo
Returns a position between: - top left - top right - bottom left - bottom right - middle With a padding of 10% of the ima
lada/utils/watermark_creation_utils.py:256
↓ 1 callersMethod_get_seek_preview_popover_pointing_rect
(self, mouse_x_in_timeline: float)
lada/gui/watch/watch_view.py:397
↓ 1 callersFunction_get_unique_pixel_values
(mask: Mask)
lada/utils/ultralytics_utils.py:108
↓ 1 callersFunction_get_version
(version: str)
lada/__init__.py:15
↓ 1 callersMethod_get_well_known_detection_models
()
lada/__init__.py:127
↓ 1 callersMethod_get_well_known_restoration_models
()
lada/__init__.py:135
↓ 1 callersMethod_init_images_masks_and_pad
(self, cropped_scene: CroppedScene, scene: Optional[Scene], mosaic: bool, crop: bool, resize_crops: bool, resi
lada/datasetcreation/nsfw_scene_processor.py:155
↓ 1 callersMethod_init_new_file
(self, metadata: VideoMetadata)
lada/datasetcreation/nsfw_scene_detector.py:384
↓ 1 callersFunction_init_translations
()
lada/__init__.py:50
↓ 1 callersMethod_initialize_biases
(self, cf=None)
lada/models/bpjdet/models/yolo.py:200
↓ 1 callersMethod_is_considerable_mouse_motion
(self, x, y, min_distance_px=3.)
lada/gui/watch/overlay_elements_controller.py:105
↓ 1 callersMethod_is_hovering_overlay_or_control_widgets
(self)
lada/gui/watch/overlay_elements_controller.py:108
↓ 1 callersMethod_is_resized
(self, current_allocation: Gdk.Rectangle)
lada/gui/watch/overlay_elements_controller.py:111
↓ 1 callersFunction_load_image
(source: str | np.ndarray, device: torch.device, imgz: int, stride: int)
lada/models/bpjdet/inference.py:36
↓ 1 callersMethod_make_grid
(nx=20, ny=20)
lada/models/bpjdet/models/yolo.py:82
↓ 1 callersFunction_mosaic_get_block_data_fun
(model)
lada/utils/mosaic_utils.py:32
↓ 1 callersMethod_open_file
(self, video_metadata: video_utils.VideoMetadata, subtitle_path: str | None)
lada/gui/watch/watch_view.py:505
↓ 1 callersMethod_parse_encoder_options
(self, encoder_options: str)
lada/utils/video_utils.py:371
↓ 1 callersFunction_post_process_batch
(data, imgs, paths, shapes, body_dets, part_dets)
lada/models/bpjdet/inference.py:63
↓ 1 callersMethod_preprocess_cpu
(self, imgs: list[ImageTensor])
lada/models/yolo/yolo11_segmentation_model.py:47
↓ 1 callersMethod_preprocess_data_sample
Preprocess data samples. When `training` is True, fields belong to :attr:`self.data_keys` will be converted to :attr:`self.output_chan
lada/models/basicvsrpp/mmagic/data_preprocessor.py:552
↓ 1 callersMethod_preprocess_gpu
(self, imgs: list[ImageTensor])
lada/models/yolo/yolo11_segmentation_model.py:53
↓ 1 callersMethod_read_next_clip
(self, current_frame_num, clip_buffer)
lada/restorationpipeline/frame_restorer.py:290
↓ 1 callersMethod_read_next_frame
(self, video_frames_generator, expected_frame_num)
lada/restorationpipeline/frame_restorer.py:271
↓ 1 callersMethod_reinit_open_file_async
(self, file: Gio.File)
lada/gui/watch/watch_view.py:490
↓ 1 callersMethod_request_stop_appsource_worker
(self)
lada/gui/watch/gstreamer_pipeline_appsrc.py:180
↓ 1 callersMethod_resize_window
(self, paintable: Gdk.Paintable, initial: bool | None = False)
lada/gui/window.py:135
↓ 1 callersMethod_restore_clip
Restores each contained from of the mosaic clip. If self.mosaic_detection is True will instead draw mosaic detection boundaries on ea
lada/restorationpipeline/frame_restorer.py:217
↓ 1 callersMethod_restore_clip_frames
(self, images: list[ImageTensor])
lada/restorationpipeline/frame_restorer.py:163
↓ 1 callersMethod_restore_frame
Takes mosaic frame and restored clips and replaces mosaic regions in frame with restored content from the clips starting at the same frame nu
lada/restorationpipeline/frame_restorer.py:176
↓ 1 callersMethod_setup_shortcuts
(self)
lada/gui/window.py:123
↓ 1 callersMethod_setup_shortcuts
(self)
lada/gui/watch/watch_view.py:677
↓ 1 callersMethod_should_update_seek_preview
(self, timestamp_ns: int, mouse_x: float)
lada/gui/watch/watch_view.py:430
↓ 1 callersFunction_ssim
Calculate SSIM (structural similarity) for one channel images. It is called by func:`ssim`. Args: img1, img2 (np.ndarray): Images wi
lada/models/basicvsrpp/mmagic/ssim.py:94
↓ 1 callersFunction_to_mask_img_tensor
(masks: torch.Tensor, class_val=0, pixel_val=255)
lada/utils/ultralytics_utils.py:74
↓ 1 callersFunction_torch_pad_reflect
(image: torch.Tensor, paddings: Sequence[int])
lada/utils/image_utils.py:18
↓ 1 callersMethodadd_files
(self, video_files)
lada/datasetcreation/nsfw_scene_detector.py:412
↓ 1 callersMethodadd_files
(self, added_files: list[Gio.File])
lada/gui/export/export_view.py:113
↓ 1 callersFunctionadd_jpg_compression
Add JPG compression artifacts. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. quality (float): JPG
lada/utils/degradations.py:701
↓ 1 callersFunctionadd_logo_watermark
Main to function to add logo watermark to an image Args: img (Image.Image): image to add watermark to logo (Image.Image): log
lada/utils/watermark_creation_utils.py:298
↓ 1 callersFunctionadd_text_watermark
Add a text watermark to an image Args: img (Image.Image): The image font_name (str): The font name Returns: tup
lada/utils/watermark_creation_utils.py:168
↓ 1 callersMethodadjust_pipeline_with_new_source_file
(self, video_metadata: VideoMetadata, subtitle_path: str | None = None)
lada/gui/watch/gstreamer_pipeline_manager.py:348
← previousnext →301–400 of 1,651, ranked by callers