MCPcopy Create free account

hub / github.com/ladaapp/lada / functions

Functions1,651 in github.com/ladaapp/lada

Method_convert_data_from_yolo
(chunk, chunk_idx_start, chunk_idx_exclusive_end)
lada/datasetcreation/nsfw_scene_detector.py:98
Function_fetch_data_and_check
Fetch and check data from one item of data_batch and predictions. Args: data_batch (dict): One item of data_batch. predictions (d
lada/models/basicvsrpp/mmagic/metrics_utils.py:25
Method_frame_detector_worker
(self)
lada/datasetcreation/nsfw_scene_detector.py:417
Method_frame_detector_worker
(self)
lada/restorationpipeline/mosaic_detector.py:346
Method_frame_feeder_worker
(self)
lada/restorationpipeline/mosaic_detector.py:284
Method_frame_inference_worker
(self)
lada/restorationpipeline/mosaic_detector.py:318
Method_frame_restoration_worker
(self)
lada/restorationpipeline/frame_restorer.py:301
Method_get_dataloader_size
Get dataloader size of current loop. In `MultiValLoop` and `MultiTestLoop`, we use `total_length` instead of `len(dataloader)` to deno
lada/models/basicvsrpp/mmagic/log_processor.py:20
Method_get_relative_path_dir
(scene_type, mosaic)
lada/datasetcreation/nsfw_scene_processor.py:294
Method_init_env
Init save dir.
lada/models/basicvsrpp/mmagic/vis_backend.py:74
Method_init_env
Setup env for wandb.
lada/models/basicvsrpp/mmagic/vis_backend.py:161
Method_init_weights
(self, m)
lada/models/dover/models/conv_backbone.py:111
Method_init_weights
(self, m)
lada/models/dover/models/conv_backbone.py:303
Method_init_weights
(self, m)
lada/models/dover/models/conv_backbone.py:412
Method_init_weights
(self, m)
lada/models/dover/models/conv_backbone.py:504
Method_init_weights
(m)
lada/models/dover/models/backbone_v0_1.py:813
Method_init_weights
(m)
lada/models/dover/models/backbone_get_attention.py:936
Method_init_weights
(self, m)
lada/models/dover/models/xclip_backbone.py:431
Method_init_weights
(self, m)
lada/models/dover/models/xclip_backbone.py:561
Method_init_weights
(self, m)
lada/models/dover/models/xclip_backbone.py:632
Method_init_weights
(m)
lada/models/dover/models/swin_backbone.py:1018
Method_on_activity_timer_run
(self, *args)
lada/gui/watch/overlay_elements_controller.py:87
Method_on_enough_data
(self, src)
lada/gui/watch/gstreamer_pipeline_appsrc.py:127
Method_on_motion
(self, obj, x, y)
lada/gui/watch/overlay_elements_controller.py:36
Method_on_need_data
(self, src, length)
lada/gui/watch/gstreamer_pipeline_appsrc.py:121
Method_on_seek_data
(self, appsrc, offset_ns)
lada/gui/watch/gstreamer_pipeline_appsrc.py:133
Method_on_toplevel_state_changed
(self, toplevel: Gdk.Toplevel, *_args)
lada/gui/window.py:114
Method_on_worker_thread_error
(self, error: ErrorMarker)
lada/restorationpipeline/frame_restorer.py:132
Method_print_biases
(self)
lada/models/bpjdet/models/yolo.py:210
Method_run_censor_detection
()
lada/datasetcreation/nsfw_scene_processor.py:441
Method_run_nudenet_nsfw_detection
()
lada/datasetcreation/nsfw_scene_processor.py:425
Method_run_video_quality_evaluation
()
lada/datasetcreation/nsfw_scene_processor.py:393
Method_run_watermark_detection
()
lada/datasetcreation/nsfw_scene_processor.py:410
Method_save
(data, file_type: Literal['mask', 'img', 'meta'], mosaic)
lada/datasetcreation/nsfw_scene_processor.py:330
Method_save_imgs
(self, file_path_template_format_string: pathlib.Path, imgs: np.ndarray, jpeg_quality_level=95)
lada/datasetcreation/nsfw_scene_processor.py:219
Method_save_meta
(self, file_path: pathlib.Path, meta: restoration_dataset_metadata.RestorationDatasetMetadataV2)
lada/datasetcreation/nsfw_scene_processor.py:214
Method_save_vid
(self, file_path: pathlib.Path, imgs: list[np.ndarray[np.uint8]], fps=30, gray=False)
lada/datasetcreation/nsfw_scene_processor.py:206
Method_scene_detector_worker
(self)
lada/datasetcreation/nsfw_scene_detector.py:452
Method_wgan_loss
wgan loss. Args: input (Tensor): Input tensor. target (bool): Target label. Returns: Tensor: wga
lada/models/basicvsrpp/mmagic/gan_loss.py:60
Methodadd_files
(self, files: list[Gio.File])
lada/gui/watch/headerbar_files_drop_down.py:70
Functionadd_gaussian_noise
Add Gaussian noise. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. sigma (float): Noise scale (meas
lada/utils/degradations.py:424
Functionadd_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:474
Methodadd_image
Record the image to Tensorboard. Additional support upload gif files. Args: name (str): The image identifier.
lada/models/basicvsrpp/mmagic/vis_backend.py:23
Methodadd_image
Record the image to wandb. Additional support upload gif files. Args: name (str): The image identifier. image (np.nda
lada/models/basicvsrpp/mmagic/vis_backend.py:184
Functionadd_poisson_noise
Add poisson noise. Args: img (Numpy array): Input image, shape (h, w, c), range [0, 1], float32. scale (float): Noise scale. Defau
lada/utils/degradations.py:562
Functionadd_poisson_noise_pt
Add poisson noise to a batch of images (PyTorch version). Args: img (Tensor): Input image, shape (b, c, h, w), range [0, 1], float32.
lada/utils/degradations.py:629
Methodadd_scalars
Record the scalars to Pavi. The scalar dict will be written to the default and specified files if ``file_path`` is specified.
lada/models/basicvsrpp/mmagic/vis_backend.py:132
Methodadd_usage
(self, usage, actions, groups, prefix=None)
lada/cli/utils.py:174
Methodadjust_button
(icon_name)
lada/gui/watch/watch_view.py:286
Methodafter_test_iter
Visualize samples after test iteration. Args: runner (Runner): The runner of the training process. batch_idx (int): T
lada/models/basicvsrpp/mmagic/visualization_hook.py:234
Methodafter_train_iter
Visualize samples after train iteration. Args: runner (Runner): The runner of the training process. batch_idx (int):
lada/models/basicvsrpp/mmagic/visualization_hook.py:279
Methodafter_train_iter
This is the function to perform after each training iteration. Args: runner (Runner): runner to drive the pipeline ba
lada/models/basicvsrpp/mmagic/ema.py:121
Methodafter_val_iter
:class:`VisualizationHook` do not support visualize during validation. Args: runner (Runner): The runner of the training
lada/models/basicvsrpp/mmagic/visualization_hook.py:219
Functionanti_normalize
(data)
lada/models/deepmosaics/util/data.py:21
Functionapply_random_mask_extensions
(mask: Mask)
lada/utils/mask_utils.py:95
Functionapprox_max_length_by_memory_limit
(video_metadata: VideoMetadata, limit_in_megabytes, assume_images=True, assume_masks=True)
lada/utils/video_utils.py:267
Methodautoshape
(self)
lada/models/bpjdet/models/yolo.py:232
Methodautoshape
(self)
lada/models/bpjdet/models/common.py:288
Methodbanner_no_gpu_button_clicked
(self, button_clicked)
lada/gui/config/no_gpu_banner.py:39
Methodbefore_run
This is the function perform before each run. Args: runner (Runner): runner used to drive the whole pipeline Raises:
lada/models/basicvsrpp/mmagic/ema.py:157
Functionbgr2gray
Convert a BGR image to grayscale image. Args: img (ndarray): The input image. keepdim (bool): If False (by default), then return
lada/models/basicvsrpp/mmagic/colorspace.py:27
Methodbox
(self)
lada/datasetcreation/nsfw_scene_detector.py:58
Functionbox_to_mask
(box: Box, shape, mask_value: int)
lada/utils/mask_utils.py:99
Methodbuffer_queue_min_thresh_time
(self)
lada/gui/watch/watch_view.py:141
Methodbuffer_queue_min_thresh_time_auto
(self)
lada/gui/watch/watch_view.py:272
Methodbuffer_queue_underrun
(self, waiting_for_data: bool)
lada/gui/watch/gstreamer_pipeline_manager.py:77
Functionbuild_module
Build module from config or return the module itself. Args: module (Union[dict, nn.Module]): The module to build. builder (Regist
lada/models/basicvsrpp/mmagic/model_utils.py:88
Functionbuild_x_clip_model
( pretrained_path="./pretrained_weights/k400_32_8.pth", droppath=0.0, use_checkpoint=False, lo
lada/models/dover/models/xclip_backbone.py:813
Methodbutton_add_files_callback
(self, button_clicked)
lada/gui/export/export_view.py:196
Methodbutton_config_reset_callback
(self, button_clicked)
lada/gui/config/config_sidebar.py:230
Methodbutton_create_clicked_callback
(self, button: Gtk.Button)
lada/gui/config/encoding_preset_dialog.py:90
Methodbutton_create_preset_callback
(self, button)
lada/gui/config/config_sidebar.py:354
Methodbutton_delete_preset_callback
(self, button, preset_name: str, action_row: Adw.ActionRow)
lada/gui/config/config_sidebar.py:370
Methodbutton_edit_preset_callback
(self, button, preset_name: str, action_row: Adw.ActionRow)
lada/gui/config/config_sidebar.py:361
Methodbutton_open_file_callback
(self, button_clicked)
lada/gui/fileselection/file_selection_view.py:43
Methodbutton_open_files_callback
(self, button_clicked)
lada/gui/watch/watch_view.py:226
Methodbutton_remove_callback
(self, button)
lada/gui/export/export_multiple_files_row.py:170
Methodbutton_subtitles_callback
(self, button_clicked)
lada/gui/watch/watch_view.py:233
Methodbutton_toggle_fullscreen_callback
(self, button_clicked)
lada/gui/watch/watch_view.py:198
Functioncdf2
Calculate the CDF of the standard bivariate Gaussian distribution. Used in skewed Gaussian distribution. Args: d_matrix (ndarrasy)
lada/utils/degradations.py:67
Methodcensoring_detected
(self)
lada/datasetcreation/nsfw_scene_processor.py:148
Methodcheck_button_export_directory_alwaysask_callback
(self, button_clicked)
lada/gui/config/config_sidebar.py:252
Methodcheck_button_export_directory_defaultdir_callback
(self, button_clicked)
lada/gui/config/config_sidebar.py:260
Methodcheck_button_post_export_custom_command_callback
(self, check_button)
lada/gui/config/config_sidebar.py:323
Methodcheck_button_post_export_shutdown_callback
(self, check_button)
lada/gui/config/config_sidebar.py:316
Methodcheck_button_show_mosaic_detections_callback
(self, check_button)
lada/gui/config/config_sidebar.py:300
Functionclean_mask
(mask: Mask, box: Box)
lada/utils/mask_utils.py:43
Functionclean_str
(s)
lada/models/bpjdet/utils/general.py:77
Methodclicked_dismissed_signal
(self)
lada/gui/config/no_gpu_banner.py:47
Methodclose
(self)
lada/gui/export/export_view.py:635
Functioncoco80_to_coco91_class
()
lada/models/bpjdet/utils/general.py:139
Methodcolor_scheme
(self)
lada/gui/config/config.py:206
Functioncolorstr
(*input)
lada/models/bpjdet/utils/general.py:87
Functioncombine_audio_video_files
(av_video_metadata: video_utils.VideoMetadata, tmp_v_video_input_path, av_video_output_path)
lada/utils/audio_utils.py:16
Methodcombo_row_gpu_selected_callback
(self, combo_row, value)
lada/gui/config/config_sidebar.py:202
Methodcompute_metrics
Compute the metrics from processed results. Args: results (List): The processed results of each batch. Returns:
lada/models/basicvsrpp/mmagic/base_sample_wise_metric.py:68
Methodconfig
(self)
lada/gui/application.py:61
Methodconfig
(self)
lada/gui/window.py:36
Methodconfig
(self)
lada/gui/watch/watch_view.py:132
Methodconfig
(self)
lada/gui/config/no_gpu_banner.py:29
← previousnext →1,001–1,100 of 1,651, ranked by callers