MCPcopy Create free account

hub / github.com/ladaapp/lada / functions

Functions1,651 in github.com/ladaapp/lada

Methodprepare
(self, module: nn.Module, dataloader: DataLoader)
lada/models/basicvsrpp/mmagic/base_sample_wise_metric.py:124
Methodpreset_changed_signal
(self, encoding_preset: EncodingPreset)
lada/gui/config/encoding_preset_dialog.py:71
Methodpreview_buffer_duration
(self)
lada/gui/config/config.py:151
Methodprint
(self)
lada/models/bpjdet/models/common.py:368
Methodprocess
Process one batch of data and predictions. Args: data_batch (Sequence[dict]): A batch of data from the dataloader
lada/models/basicvsrpp/mmagic/base_sample_wise_metric.py:83
Methodprocess_image
Process an image. Args: gt (Torch | np.ndarray): GT image. pred (Torch | np.ndarray): Pred image. mask (T
lada/models/basicvsrpp/mmagic/ssim.py:74
Methodprocess_image
Process an image. Args: gt (Torch | np.ndarray): GT image. pred (Torch | np.ndarray): Pred image. mask (T
lada/models/basicvsrpp/mmagic/psnr.py:65
Functionprocess_image_file
(file_path, output_root, detectors: list[NsfwImageDetector | FaceDetector | HeadDetector], negative_detectors:
scripts/dataset_creation/create-mosaic-detection-dataset.py:228
Methodprocess_scene
(self, scene: Scene, output_dir: Path, scene_processing_options: SceneProcessingOptions)
lada/datasetcreation/nsfw_scene_processor.py:353
Methodprogress
(self)
lada/gui/export/export_item_data.py:102
Methodprogress
(self)
lada/gui/export/export_multiple_files_row.py:52
Functionpsnr
(img1,img2)
lada/models/deepmosaics/util/image_processing.py:7
Methodput
(self, item, block=True, timeout=None)
lada/gui/frame_restorer_provider.py:199
Functionput_queue_stop_marker
(queue: Queue | PipelineQueue, debug_queue_name: str | None = None, stop_marker=STOP_MARKER)
lada/utils/threading_utils.py:66
Methodquality_score
(self)
lada/datasetcreation/nsfw_scene_processor.py:116
Functionr1_gradient_penalty_loss
Calculate R1 gradient penalty for WGAN-GP. R1 regularizer comes from: "Which Training Methods for GANs do actually Converge?" ICML'2018
lada/models/basicvsrpp/mmagic/gan_loss.py:427
Functionrandom_add_gaussian_noise
(img, sigma_range=(0, 1.0), gray_prob=0, clip=True, rounds=False)
lada/utils/degradations.py:504
Functionrandom_add_jpg_compression
Randomly add JPG compression artifacts. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. quality_rang
lada/utils/degradations.py:718
Functionrandom_add_poisson_noise
(img, scale_range=(0, 1.0), gray_prob=0, clip=True, rounds=False)
lada/utils/degradations.py:664
Functionrandom_scale_box
(img: Image, box: Box, scale_range=(1.0, 1.5))
lada/utils/box_utils.py:28
Methodread_metadata_version
(path: str)
lada/datasetcreation/restoration_dataset_metadata.py:48
Methodreal_nums_per_device
Number of real images need for current device.
lada/models/basicvsrpp/mmagic/base_gen_metric.py:67
Functionregister_all_modules
Register all modules in mmagic into the registries. Args: init_default_scope (bool): Whether initialize the mmagic default scope.
lada/models/basicvsrpp/mmagic/setup_env.py:14
Methodreinit_pipeline
()
lada/gui/watch/watch_view.py:611
Functionremove_background
Utility function to remove the background of a logo
lada/utils/watermark_creation_utils.py:222
Methodrender
(self)
lada/models/bpjdet/models/common.py:385
Functionresample_segments
(segments, n=1000)
lada/models/bpjdet/utils/general.py:256
Functionresize_simple
(img: Image, size: int, interpolation=cv2.INTER_LINEAR)
lada/utils/image_utils.py:238
Functionresize_video_frames
(frames: list, size: int | tuple[int, int])
lada/utils/video_utils.py:52
Functionresnet101
Constructs a ResNet-101 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lada/models/deepmosaics/models/model_util.py:308
Functionresnet18
Constructs a ResNet-18 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lada/models/deepmosaics/models/model_util.py:297
Methodrestore
(self, video: list[ImageTensor])
lada/restorationpipeline/deepmosaics_mosaic_restorer.py:12
Methodrestored_file
(self)
lada/gui/export/export_item_data.py:122
Methodrestored_file
(self)
lada/gui/export/export_multiple_files_row.py:140
Methodresume_export_requested_signal
(self)
lada/gui/export/export_single_file_page.py:56
Functionrgb2gray
Convert a RGB image to grayscale image. Args: img (ndarray): The input image. keepdim (bool): If False (by default), then return
lada/models/basicvsrpp/mmagic/colorspace.py:44
Functionrotate
(img: Image, deg)
lada/utils/image_utils.py:304
Methodrun
Launch validation. The evaluation process consists of four steps. 1. Prepare pre-calculated items for all metrics by calling :meth
lada/models/basicvsrpp/mmagic/multi_loops.py:421
Methodrun_export
()
lada/gui/export/export_view.py:436
Functionsave
(net,path,gpu_id)
lada/models/deepmosaics/models/model_util.py:18
Methodseek_preview_enabled
(self)
lada/gui/config/config.py:83
Methodseek_requested_signal
(self, position: int)
lada/gui/watch/timeline.py:49
Functionsegment2box
(segment, width=640, height=640)
lada/models/bpjdet/utils/general.py:239
Functionsegments2boxes
(segments)
lada/models/bpjdet/utils/general.py:247
Functionset_logging
(rank=-1, verbose=True)
lada/models/bpjdet/utils/general.py:39
Functionset_validation_css_classes
(widget: Gtk.Widget, is_valid: bool)
lada/gui/utils.py:67
Functionsetup_input_and_output_paths
(input_arg, output_arg, output_file_pattern)
lada/cli/utils.py:45
Methodshortcuts_manager
(self)
lada/gui/application.py:53
Methodshortcuts_manager
(self)
lada/gui/window.py:44
Methodshortcuts_manager
(self)
lada/gui/watch/watch_view.py:153
Methodshow_error_requested_signal
(self)
lada/gui/export/export_multiple_files_row.py:191
Methodshow_export_section
(self)
lada/gui/config/config_sidebar.py:193
Methodshow_mosaic_detections
(self)
lada/gui/config/config.py:96
Functionshow_open_files_dialog
(callback, dismissed_callback)
lada/gui/utils.py:123
Functionshow_open_subtitles_file_dialog
(callback, dismissed_callback)
lada/gui/utils.py:143
Methodshow_playback_section
(self)
lada/gui/config/config_sidebar.py:185
Methodshow_video_export_started
(self, save_file: Gio.File, temp_file_path: str | None = None, mp4_fast_start_enabled: bool = False)
lada/gui/export/export_single_file_page.py:105
Methodshow_video_export_started
(self, idx: int, temp_file_path: str | None, mp4_fast_start_enabled: bool = False)
lada/gui/export/export_multiple_files_page.py:74
Functionshowresult
(img1,img2,img3,name,is0_1 = False)
lada/models/deepmosaics/util/data.py:76
Functionshuffledata
(data,target)
lada/models/deepmosaics/util/data.py:70
Methodshutdown_confirmation_requested
(self)
lada/gui/export/export_view.py:182
Functionskip_if_uninitialized
(f)
lada/gui/utils.py:60
Methodsmooth_boxes_center_point
(scene: Scene, window_in_seconds: float, smooth_function='median')
lada/datasetcreation/nsfw_scene_detector.py:265
Functionsmooth_mask
(mask: Mask, kernel_size: int)
lada/utils/mask_utils.py:67
Methodspeed_fps
(self)
lada/gui/export/export_item_data.py:68
Methodspin_row_clip_max_duration_selected_callback
(self, spin_row, value)
lada/gui/config/config_sidebar.py:220
Methodspin_row_preview_buffer_duration_selected_callback
(self, spin_row, value)
lada/gui/config/config_sidebar.py:215
Methodspin_row_subtitles_font_size_changed_callback
(self, spin_row, value)
lada/gui/config/config_sidebar.py:385
Methodspinner_visible
(self)
lada/gui/export/spinner_button.py:35
Functionsplice
Stitching multiple images, all imgs must have the same size imgs : [img1,img2,img3,img4] splice_shape: (2,2)
lada/models/deepmosaics/util/image_processing.py:14
Functionssim
(img1, img2, window_size = 11, size_average = True)
lada/models/deepmosaics/models/model_util.py:465
Methodstart
(self, start_ns)
lada/restorationpipeline/mosaic_detector.py:187
Methodstart_export_requested_signal
(self, start_export_button: Gtk.Button)
lada/gui/export/export_single_file_page.py:44
Methodstate
(self)
lada/gui/watch/gstreamer_pipeline_manager.py:59
Methodstate
(self)
lada/gui/export/export_item_data.py:110
Methodstate
(self)
lada/gui/export/export_multiple_files_row.py:67
Methodstop
(self)
lada/restorationpipeline/mosaic_detector.py:204
Methodstop_and_notify
()
lada/restorationpipeline/frame_restorer.py:133
Methodstop_export_requested_signal
(self)
lada/gui/export/export_single_file_page.py:48
Methodstop_export_requested_signal
(self, idx: int)
lada/gui/export/export_multiple_files_page.py:29
Methodstyle_manager
(self)
lada/gui/watch/timeline.py:24
Methodsubtitle
(self)
lada/gui/export/export_multiple_files_row.py:132
Methodsubtitle_file_opened
(self, files: list[Gio.File])
lada/gui/watch/watch_view.py:190
Methodsubtitles_font_size
(self)
lada/gui/config/config.py:306
Methodswitch_row_detect_face_mosaics_callback
(self, switch_row, active)
lada/gui/config/config_sidebar.py:345
Methodswitch_row_fp16_active_callback
(self, switch_row, active)
lada/gui/config/config_sidebar.py:340
Methodswitch_row_mp4_fast_start_active_callback
(self, switch_row, active)
lada/gui/config/config_sidebar.py:350
Methodswitch_row_mute_audio_active_callback
(self, switch_row, active)
lada/gui/config/config_sidebar.py:225
Methodswitch_row_seek_preview_active_callback
(self, switch_row, active)
lada/gui/config/config_sidebar.py:335
Methodswitch_views
(child_name)
lada/gui/window.py:125
Methodtemp_directory
(self)
lada/gui/config/config.py:273
Methodtemp_file_path
(self)
lada/gui/export/export_multiple_files_row.py:150
Functiontensor2img
Convert torch Tensors into image numpy arrays. After clamping to [min, max], values will be normalized to [0, 1]. Args: tensor (Tens
lada/utils/image_utils.py:144
Functiontest_inference
()
scripts/evaluation/run-bj-classifier.py:75
Methodtime_done_s
(self)
lada/gui/export/export_item_data.py:36
Methodtime_remaining_s
(self)
lada/gui/export/export_item_data.py:44
Functionto_tensor
(data,gpu_id,dtype)
lada/models/deepmosaics/util/data.py:9
Functiontodevice
(net,gpu_id)
lada/models/deepmosaics/models/model_util.py:26
Methodtoggle_button_dark_color_scheme_callback
(self, button_clicked)
lada/gui/config/config_sidebar.py:247
Methodtoggle_button_export_directory_filepicker_callback
(self, button_clicked)
lada/gui/config/config_sidebar.py:266
← previousnext →1,501–1,600 of 1,651, ranked by callers