MCPcopy Index your code

hub / github.com/ladaapp/lada / functions

Functions1,651 in github.com/ladaapp/lada

↓ 3 callersMethod_collect_target_results
Collected results in distributed environments. Args: target (str): Target results to collect. Returns: Optio
lada/models/basicvsrpp/mmagic/base_gen_metric.py:76
↓ 3 callersFunction_get_color
Returns a random color
lada/utils/watermark_creation_utils.py:118
↓ 3 callersFunction_get_output_file_path
(input_file_path: str, output_directory: str, output_file_pattern: str)
lada/cli/utils.py:41
↓ 3 callersMethod_parse_batch_channel_order
Parse channel order of inputs in batch.
lada/models/basicvsrpp/mmagic/data_preprocessor.py:216
↓ 3 callersMethod_parse_channel_index
Parse channel index of inputs.
lada/models/basicvsrpp/mmagic/data_preprocessor.py:145
↓ 3 callersMethod_parse_channel_order
(self, key: str, inputs: Tensor,
lada/models/basicvsrpp/mmagic/data_preprocessor.py:164
↓ 3 callersMethod_start_appsource_worker
(self, seek_position=None)
lada/gui/watch/gstreamer_pipeline_appsrc.py:148
↓ 3 callersMethod_start_export
(self, source_file: Gio.File, restore_file: Gio.File)
lada/gui/export/export_view.py:410
↓ 3 callersMethod_stop_appsource_worker
(self, shutdown=False)
lada/gui/watch/gstreamer_pipeline_appsrc.py:185
↓ 3 callersFunction_update_env_var
(env_var, paths, separator=";")
lada/gui/__init__.py:7
↓ 3 callersMethod_update_metainfo
Update `padding_info` and `channel_order` to metainfo of. *a batch of `data_samples`*. For channel order, we consider same field amon
lada/models/basicvsrpp/mmagic/data_preprocessor.py:236
↓ 3 callersMethodadd_files
(self, files: list[Gio.File])
lada/gui/watch/watch_view.py:476
↓ 3 callersMethodadd_frame
(self, nsfw_frame: NsfwFrame)
lada/datasetcreation/nsfw_scene_detector.py:85
↓ 3 callersFunctionaddmosaic_base
img: input image mask: input mask n: mosaic size model : squa_avg squa_mid squa_random squa_avg_circle_edge rect_avg rect_ratio:
lada/utils/mosaic_utils.py:44
↓ 3 callersMethodclose
(self, *args)
lada/gui/window.py:131
↓ 3 callersMethodcomplete
(self)
lada/gui/export/export_item_data.py:83
↓ 3 callersFunctionconv1x1
1x1 convolution
lada/models/deepmosaics/models/model_util.py:148
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
lada/models/deepmosaics/models/model_util.py:142
↓ 3 callersFunctionconvert_yolo_boxes
(yolo_box: UltralyticsBoxes, img_shape)
lada/utils/ultralytics_utils.py:37
↓ 3 callersFunctionconvnext_3d_tiny
(pretrained=False, in_22k=False, **kwargs)
lada/models/dover/models/conv_backbone.py:587
↓ 3 callersMethodcreate_action
(self, name, callback, shortcuts=None)
lada/gui/application.py:102
↓ 3 callersFunctioncreate_window
(window_size, channel)
lada/models/deepmosaics/models/model_util.py:411
↓ 3 callersMethoddestruct
Destruct padding, normalization and convert channel order to BGR if could. If `data_samples` is a list, outputs will be destructed as a
lada/models/basicvsrpp/mmagic/data_preprocessor.py:659
↓ 3 callersMethodforward_tensor
Forward tensor. Returns result of simple forward. Args: inputs (torch.Tensor): batch input tensor collated by :at
lada/models/basicvsrpp/mmagic/base_edit_model.py:154
↓ 3 callersMethodframes
(self)
lada/utils/video_utils.py:97
↓ 3 callersFunctionget_mosaic_block_size_v1
(mask_img, area_type ='normal')
lada/utils/mosaic_utils.py:122
↓ 3 callersFunctionget_spatial_fragments
( video, fragments_h=7, fragments_w=7, fsize_h=32, fsize_w=32, aligned=32, nfrags=
lada/models/dover/datasets/dover_datasets.py:16
↓ 3 callersFunctionimage_to_tensor
Trans image to tensor. Args: img (np.ndarray): The original image. Returns: Tensor: The output tensor.
lada/models/basicvsrpp/mmagic/img_utils.py:32
↓ 3 callersFunctioninference
(model, imgs, device="cuda:0", batch_size=16, model_version='pov')
scripts/evaluation/run-bj-classifier.py:35
↓ 3 callersFunctioninference
(model, source, imgz, data, conf_thres=0.45, iou_thres=0.75)
lada/models/bpjdet/inference.py:123
↓ 3 callersMethodinit_meta
(self, scene: Scene, output_dir, save_as_images: bool, save_flat: bool, mosaic: bool, mosaic_params: MosaicRan
lada/datasetcreation/nsfw_scene_processor.py:293
↓ 3 callersFunctionmesh_grid
Generate the mesh grid, centering at zero. Args: kernel_size (int): Returns: xy (ndarray): with the shape (kernel_size, kernel
lada/utils/degradations.py:37
↓ 3 callersFunctionnon_max_suppression
Runs Non-Maximum Suppression (NMS) on inference results Returns: list of detections, on (n,6) tensor per image [xyxy, conf, cls]
lada/models/bpjdet/utils/general.py:309
↓ 3 callersFunctionobtain_data
Obtain data of key from data_sample and converse data to device. Args: data_sample (dict): A dict of data sample. key (str): The k
lada/models/basicvsrpp/mmagic/metrics_utils.py:132
↓ 3 callersMethodrun
(self)
lada/utils/threading_utils.py:37
↓ 3 callersMethodrun
()
lada/gui/window.py:77
↓ 3 callersMethodrun
()
lada/gui/watch/watch_view.py:289
↓ 3 callersMethodseek
(self, offset_ns)
lada/utils/video_utils.py:137
↓ 3 callersFunctionset_default_settings
()
lada/utils/ultralytics_utils.py:18
↓ 3 callersMethodshutdown
(self)
lada/gui/export/shutdown_manager.py:85
↓ 3 callersFunctionsigma_matrix2
Calculate the rotated sigma matrix (two dimensional matrix). Args: sig_x (float): sig_y (float): theta (float): Radian mea
lada/utils/degradations.py:23
↓ 3 callersMethodstart
(self)
lada/datasetcreation/nsfw_scene_detector.py:520
↓ 3 callersMethodstop
(self)
lada/gui/frame_restorer_provider.py:179
↓ 3 callersFunctiontensor2im
(image_tensor, gray=False, rgb2bgr = True ,is0_1 = False, batch_index=0)
lada/models/deepmosaics/util/data.py:24
↓ 3 callersMethodupdate_gst_buffers
(self)
lada/gui/watch/watch_view.py:363
↓ 3 callersMethodupdate_playhead_position
(self, value)
lada/gui/watch/timeline.py:84
↓ 2 callersFunctionImageQualityEvaluation
(tensor1,tensor2)
scripts/training/train-mosaic-restoration-deepmosaics.py:52
↓ 2 callersFunctionShowImage
(tensor1,tensor2,tensor3,max_num)
scripts/training/train-mosaic-restoration-deepmosaics.py:61
↓ 2 callersMethod__init__
(self, message, stack_trace: str)
lada/utils/threading_utils.py:24
↓ 2 callersMethod__init__
(self, layer_name_list: List[str], vgg_type: str = 'vgg19',
lada/models/basicvsrpp/mmagic/perceptual_loss.py:37
↓ 2 callersMethod__init__
(self)
lada/models/bpjdet/models/experimental.py:56
↓ 2 callersMethod__init__
( self, in_channels=768, hidden_channels=64, dropout_ratio=0.5, pre_pool=False, **kwargs )
lada/models/dover/models/head.py:23
↓ 2 callersMethod_adjust_overlay_opacity
(self, widget: Gtk.Widget, reveal: bool)
lada/gui/watch/overlay_elements_controller.py:61
↓ 2 callersMethod_adjust_subtitles_pipeline_async
(self, action: Literal["hide", "open"], subtitles_file: Gio.File | None)
lada/gui/watch/watch_view.py:285
↓ 2 callersMethod_attach_file_launcher_to_open_button
(self)
lada/gui/export/export_multiple_files_row.py:160
↓ 2 callersMethod_clear_cache
(self)
lada/gui/frame_restorer_provider.py:150
↓ 2 callersFunction_convert_bbox_to_correct_format
Convert (x1, y1, x2, y2) to (x, y, w, h) with x, y the center of the bbox and w, h the width and height
lada/utils/watermark_creation_utils.py:155
↓ 2 callersMethod_create_clips_for_completed_scenes
(self, scenes, frame_num, eof)
lada/restorationpipeline/mosaic_detector.py:243
↓ 2 callersMethod_freeze_stages
(self)
lada/models/dover/models/backbone_v0_1.py:694
↓ 2 callersMethod_freeze_stages
(self)
lada/models/dover/models/backbone_get_attention.py:808
↓ 2 callersMethod_freeze_stages
(self)
lada/models/dover/models/swin_backbone.py:846
↓ 2 callersMethod_get_action_row_for_model
(self, modelfile: ModelFile, selected_radio_button: Gtk.CheckButton, selected_model_name, on_toggled: Callable
lada/gui/config/config_sidebar.py:427
↓ 2 callersFunction_get_alpha
Returns a random alpha value for the watermark Args: position (dict): The position of the watermark rotation (int): The rota
lada/utils/watermark_creation_utils.py:103
↓ 2 callersMethod_get_fallback_thumbnail
(self)
lada/utils/video_utils.py:561
↓ 2 callersFunction_get_mosaic_transform_args
(detection: Detection)
scripts/dataset_creation/create-mosaic-detection-dataset.py:172
↓ 2 callersFunction_get_rotation_from_position
Returns a rotation angle from a position TODO: TO FIX
lada/utils/watermark_creation_utils.py:83
↓ 2 callersMethod_gram_mat
Calculate Gram matrix. Args: x (torch.Tensor): Tensor with shape of (n, c, h, w). Returns: torch.Tensor: Gra
lada/models/basicvsrpp/mmagic/perceptual_loss.py:228
↓ 2 callersMethod_hide_overlays
(self)
lada/gui/watch/overlay_elements_controller.py:83
↓ 2 callersFunction_is_codec_hardware_acceleration_working
(codec_name: str, hwaccel_device_type: str, codec_mode: Literal["r", "w"]='w')
lada/utils/video_utils.py:359
↓ 2 callersMethod_mark_file_as_processed
(self, text_file: pathlib.Path, path_to_save: str)
lada/datasetcreation/nsfw_scene_detector.py:358
↓ 2 callersMethod_on_block_fade_out
(self, should_block_fade_out: bool)
lada/gui/watch/overlay_elements_controller.py:129
↓ 2 callersMethod_preprocess_dict_inputs
Preprocess dict type inputs. Args: batch_inputs (dict): Input dict. data_samples (List[DataSample], optional): The da
lada/models/basicvsrpp/mmagic/data_preprocessor.py:482
↓ 2 callersMethod_preprocess_image_list
Preprocess a list of image tensor and update metainfo to corresponding data samples. Args: tensor_list (List[Tensor]): Im
lada/models/basicvsrpp/mmagic/data_preprocessor.py:410
↓ 2 callersMethod_preprocess_image_tensor
Preprocess a batch of image tensor and update metainfo to corresponding data samples. Args: inputs (Tensor): Image tensor
lada/models/basicvsrpp/mmagic/data_preprocessor.py:361
↓ 2 callersMethod_process_buffer
Processes the buffer to encode frames.
lada/utils/video_utils.py:429
↓ 2 callersMethod_process_completed_scene
returns Scene if it fits the criteria for a valid completed scene like min/max length
lada/datasetcreation/nsfw_scene_detector.py:368
↓ 2 callersMethod_reveal_overlays
(self)
lada/gui/watch/overlay_elements_controller.py:79
↓ 2 callersMethod_set_video_metadata
(self, video_metadata: VideoMetadata)
lada/gui/watch/gstreamer_pipeline_appsrc.py:112
↓ 2 callersMethod_show_spinner
(self, *args)
lada/gui/watch/watch_view.py:660
↓ 2 callersMethod_show_video_preview
(self, *args)
lada/gui/watch/watch_view.py:668
↓ 2 callersFunction_ssim
(img1, img2, window, window_size, channel, size_average = True)
lada/models/deepmosaics/models/model_util.py:417
↓ 2 callersMethod_start_timer
(self)
lada/gui/watch/overlay_elements_controller.py:99
↓ 2 callersFunction_totensor
(img, bgr2rgb, float32)
lada/utils/image_utils.py:124
↓ 2 callersMethod_update_style
(self, color_scheme: ColorScheme)
lada/gui/config/config.py:371
↓ 2 callersMethod_update_time_remaining_and_speed
(self, completed=False)
lada/cli/utils.py:235
↓ 2 callersMethodadd_frame
(self, frame_num: int, img: ImageTensor, mask: MaskTensor, box: Box)
lada/restorationpipeline/mosaic_detector.py:39
↓ 2 callersMethodadd_preset_row
(self, action_row, radio_button)
lada/gui/config/config_sidebar.py:388
↓ 2 callersMethodadjust_subtitles
(self, subtitle_path: str | None)
lada/gui/watch/gstreamer_pipeline_manager.py:365
↓ 2 callersMethodattention
(self, x: torch.Tensor)
lada/models/dover/models/xclip_backbone.py:87
↓ 2 callersMethodbelongs
(self, box: Box)
lada/restorationpipeline/mosaic_detector.py:62
↓ 2 callersFunctionbox_area
(box)
lada/models/bpjdet/utils/metrics.py:25
↓ 2 callersFunctioncheck_for_errors
(futures: list[concurrent_futures.Future])
lada/utils/threading_utils.py:118
↓ 2 callersFunctioncheck_img_size
(imgsz, s=32, floor=0)
lada/models/bpjdet/utils/general.py:61
↓ 2 callersFunctioncircular_lowpass_kernel
2D sinc filter, ref: https://dsp.stackexchange.com/questions/58301/2-d-circularly-symmetric-low-pass-filter Args: cutoff (float): cutoff f
lada/utils/degradations.py:379
↓ 2 callersMethodclose
(self, ensure_completed_bar=False)
lada/cli/utils.py:197
↓ 2 callersMethodclose
(self, block=False)
lada/gui/watch/watch_view.py:700
↓ 2 callersMethodclose_thumbnailer
(self)
lada/gui/watch/watch_view.py:693
↓ 2 callersMethodclose_video_file
(self)
lada/gui/watch/gstreamer_pipeline_manager.py:154
↓ 2 callersMethodcontinue_next_file
(self)
lada/gui/export/export_view.py:265
↓ 2 callersFunctionconvert_yolo_box
(yolo_box: UltralyticsBoxes, img_shape)
lada/utils/ultralytics_utils.py:29
← previousnext →101–200 of 1,651, ranked by callers