MCPcopy Create free account

hub / github.com/PaddlePaddle/EasyData / functions

Functions676 in github.com/PaddlePaddle/EasyData

↓ 33 callersMethodinfo
(self)
deploy/ppcv/utils/timer.py:70
↓ 29 callersMethodget
key can be one of [list, tuple, str]
deploy/ppcv/ops/general_data_obj.py:24
↓ 25 callersMethodkeys
get all keys of the data
deploy/ppcv/ops/general_data_obj.py:42
↓ 18 callersMethodget
Creates a generator to extract data from the queue. Skip the data if it is `None`. # Yields tuple of data in the
deploy/python/dataaug/utils/data_utils.py:157
↓ 16 callersFunctionapply
:param cfg_item: a sub cfg item in default.yml, it should contain enable and fraction. such as prydown: enabl
deploy/python/dataaug/utils/renderer.py:71
↓ 12 callersFunctioncreate_operators
create operators based on the config Args: params(list): a dict list, used to create some operators mod(module) : a module t
deploy/ppcv/ops/base.py:34
↓ 11 callersFunctionsample_level
(n)
deploy/python/dataaug/data/preprocess/ops/functional.py:45
↓ 9 callersFunctionsetup_logger
Initialize logger and set its verbosity level to INFO. Args: name (str): the root module name of this logger output (str): a
deploy/ppcv/utils/logger.py:26
↓ 8 callersMethoddmsg
(self, msg)
deploy/python/dataaug/utils/renderer.py:179
↓ 8 callersMethodint_around
(self, val)
deploy/python/dataaug/utils/renderer.py:277
↓ 8 callersMethodis_bgr
(self)
deploy/python/dataaug/utils/renderer.py:827
↓ 7 callersFunction_check_args_tf
(kwargs)
deploy/python/dataaug/data/preprocess/ops/timm_autoaugment.py:63
↓ 7 callersMethodparse_args
(self, argv=None)
deploy/ppcv/core/config.py:39
↓ 6 callersFunctionfloat_parameter
Helper function to scale `val` between 0 and maxval. Args: level: Level of the operation that will be between [0, `PARAMETER_MAX`]. ma
deploy/python/dataaug/data/preprocess/ops/functional.py:33
↓ 6 callersMethodrun
(self, x)
deploy/ppcv/ops/predictor.py:124
↓ 6 callersMethodvalue
(self)
deploy/ppcv/utils/timer.py:47
↓ 5 callersMethod__init__
(self, model_cfg, env_cfg=None)
deploy/ppcv/ops/connector/op_connector.py:101
↓ 5 callersFunction_randomly_negate
With 50% prob, negate the value
deploy/python/dataaug/data/preprocess/ops/timm_autoaugment.py:192
↓ 5 callersFunctionint_parameter
Helper function to scale `val` between 0 and maxval . Args: level: Level of the operation that will be between [0, `PARAMETER_MAX`]. m
deploy/python/dataaug/data/preprocess/ops/functional.py:21
↓ 4 callersFunctioncheck_dir
(path)
deploy/python/dataaug/utils/utility.py:57
↓ 4 callersFunctionget_path
Download from given url to root_dir. if file or directory specified by url is exists under root_dir, return the path directly, otherwise down
deploy/ppcv/utils/download.py:128
↓ 4 callersMethodget_word_size
Get word size removed offset :param font: truetype :param word: :return: size: word size, removed offset
deploy/python/dataaug/utils/renderer.py:183
↓ 4 callersFunctionis_url
Whether path is URL. Args: path (string): URL string or not.
deploy/ppcv/utils/download.py:50
↓ 4 callersFunctionoverride
Recursively replace dict of list Args: dl(dict or list): dict or list to be replaced ks(list): list of keys v(str): v
deploy/python/dataaug/utils/config.py:98
↓ 4 callersFunctionparse_url
(url)
deploy/ppcv/utils/download.py:61
↓ 4 callersMethodpredict_images
(self, input)
deploy/ppcv/engine/pipeline.py:102
↓ 4 callersMethodrun
(self, input, frame_id=-1)
deploy/ppcv/core/framework.py:156
↓ 4 callersFunctionstr2num
(v)
deploy/python/dataaug/utils/config.py:107
↓ 3 callersMethod__bilinear_interp
(x, y, v11, v12, v21, v22)
deploy/python/dataaug/data/imaug/text_image_aug/warp_mls.py:37
↓ 3 callersMethod__init__
(self, padding: int, fill: int = 0, padding_mode: str = "co
deploy/python/dataaug/data/preprocess/ops/operators.py:637
↓ 3 callersMethod_mix_target
(self, targets0, targets1, lam)
deploy/python/dataaug/data/preprocess/batch_ops/batch_operators.py:50
↓ 3 callersMethod_unpack
_unpack
deploy/python/dataaug/data/preprocess/batch_ops/batch_operators.py:33
↓ 3 callersMethodapply
:param word_img: word image with big background :param text_box_pnts: left-top, right-top, right-bottom, left-bottom of text word
deploy/python/dataaug/utils/liner.py:50
↓ 3 callersMethodapply_gauss_blur
(self, img, ks=None)
deploy/python/dataaug/utils/renderer.py:751
↓ 3 callersFunctioncliped_rand_norm
:param mu: 均值 :param sigma3: 3 倍标准差, 99% 的数据落在 (mu-3*sigma, mu+3*sigma) :return:
deploy/python/dataaug/utils/math_utils.py:42
↓ 3 callersFunctioncoloring
(message, color="OKGREEN")
deploy/python/dataaug/utils/logger.py:44
↓ 3 callersMethoddecode
convert text-index into text-label.
deploy/ppcv/ops/models/ocr_crnn_recognition/postprocess.py:73
↓ 3 callersFunctiondraw_box
:param img: gray image, will be convert to BGR image :param pnts: left-top, right-top, right-bottom, left-bottom :param color: :retur
deploy/python/dataaug/utils/renderer.py:18
↓ 3 callersMethodgenerate
(self)
deploy/python/dataaug/data/imaug/text_image_aug/warp_mls.py:41
↓ 3 callersFunctionget_image_list_from_label_file
(label_file_path, delimiter=' ')
deploy/python/dataaug/utils/get_image_list.py:39
↓ 3 callersMethodget_mini_boxes
(self, contour)
deploy/ppcv/ops/models/ocr_db_detection/postprocess.py:156
↓ 3 callersFunctionget_model_path
Get model path from WEIGHTS_HOME, if not exists, download it from url.
deploy/ppcv/utils/download.py:66
↓ 3 callersFunctionload_yaml
(yaml_file)
deploy/utils/utils.py:18
↓ 3 callersMethodpredict
(self, input=None)
python_whl/easydata.py:273
↓ 3 callersFunctionprob
percent: 0 ~ 1, e.g: 如果 percent=0.1,有 10% 的可能性
deploy/python/dataaug/utils/renderer.py:61
↓ 3 callersMethodset
key: str value: an object
deploy/ppcv/ops/general_data_obj.py:35
↓ 3 callersMethodtype
(self)
deploy/ppcv/ops/base.py:69
↓ 2 callersMethod__call__
(self, img)
deploy/python/dataaug/data/preprocess/__init__.py:61
↓ 2 callersMethod__init__
(self, *args, **kwargs)
deploy/python/dataaug/data/preprocess/__init__.py:58
↓ 2 callersMethod_aug
(self, img)
deploy/python/dataaug/data/preprocess/ops/operators.py:103
↓ 2 callersFunction_check_exist_file_md5
(filename, md5sum, url)
deploy/ppcv/utils/download.py:204
↓ 2 callersFunction_get_3rd_point
To calculate the affine matrix, three pairs of points are required. This function is used to get the 3rd point, given 2D points a & b. The 3r
deploy/ppcv/ops/models/keypoint/preprocess.py:96
↓ 2 callersFunction_md5check
(fullname, md5sum=None)
deploy/ppcv/utils/download.py:227
↓ 2 callersMethod_one_hot
(self, targets)
deploy/python/dataaug/data/preprocess/batch_ops/batch_operators.py:47
↓ 2 callersMethodbox_score_fast
box_score_fast: use bbox mean score as the mean score
deploy/ppcv/ops/models/ocr_db_detection/postprocess.py:179
↓ 2 callersFunctionbuild_postprocess
(config)
deploy/python/dataaug/predict/postprocess.py:25
↓ 2 callersFunctioncreate_operators
create operators based on the config Args: params(list): a dict list, used to create some operators
deploy/python/dataaug/predict/preprocess.py:32
↓ 2 callersMethodcrop_img
Crop text from large input image :param img: image to crop :param text_box_pnts_transformed: text_bbox_pnts after apply_persp
deploy/python/dataaug/utils/renderer.py:219
↓ 2 callersMethoddraw_border_text
:param x/y: 应该是移除了 offset 的
deploy/python/dataaug/utils/renderer.py:559
↓ 2 callersMethoddraw_text_with_random_space
If random_space applied, text_x, text_y, word_width, word_height may change
deploy/python/dataaug/utils/renderer.py:482
↓ 2 callersMethoddraw_text_wrapper
:param x/y: 应该是移除了 offset 的
deploy/python/dataaug/utils/renderer.py:550
↓ 2 callersMethodgen_rand_bg
Generate random background
deploy/python/dataaug/utils/renderer.py:648
↓ 2 callersFunctionget_affine_transform
Get the affine transform matrix, given the center/scale/rot/output_size. Args: center (np.ndarray[2, ]): Center of the bounding box (x, y
deploy/ppcv/ops/models/keypoint/preprocess.py:21
↓ 2 callersFunctionget_color
(idx)
deploy/ppcv/ops/output/keypoint.py:30
↓ 2 callersMethodget_gray_word_color
Only use word roi area to get word color
deploy/python/dataaug/utils/renderer.py:280
↓ 2 callersMethodget_output_keys
(cls)
deploy/ppcv/ops/base.py:73
↓ 2 callersMethodget_word_color
(self)
deploy/python/dataaug/utils/renderer.py:296
↓ 2 callersFunctionis_poly_outside_rect
(poly, x, y, w, h)
deploy/python/dataaug/data/imaug/random_crop_data.py:38
↓ 2 callersMethodis_running
Returns: bool: Whether the worker theads are running.
deploy/python/dataaug/utils/data_utils.py:127
↓ 2 callersFunctionload_config
Load config from file. Args: file_path (str): Path of the config file to be loaded. Returns: global config
deploy/python/dataaug/gen_ocr_rec.py:97
↓ 2 callersMethodloop_set
(self, key_list, value)
python_whl/easydata.py:52
↓ 2 callersFunctionparse_args
()
python_whl/easydata.py:114
↓ 2 callersFunctionparse_class_id_map
(class_id_map_file)
deploy/ppcv/ops/models/classification/postprocess.py:19
↓ 2 callersMethodpostprocess
(self, inputs)
deploy/ppcv/ops/models/base.py:54
↓ 2 callersFunctionrandom_select
(axis, max_size)
deploy/python/dataaug/data/imaug/random_crop_data.py:58
↓ 2 callersMethodrandom_xy_offset
Get random left-top point for putting a small rect in a large rect. Normally dst_height>src_height and dst_width>src_width
deploy/python/dataaug/utils/renderer.py:196
↓ 2 callersFunctionregion_wise_random_select
(regions, max_size)
deploy/python/dataaug/data/imaug/random_crop_data.py:67
↓ 2 callersMethodreset_dep
(self, )
deploy/ppcv/core/framework.py:117
↓ 2 callersMethodrun
(self)
deploy/python/dataaug/__init__.py:130
↓ 2 callersMethodrun
(self, input)
deploy/ppcv/engine/pipeline.py:81
↓ 2 callersFunctionsample_mask
Samples a mean lambda from beta distribution parametrised by alpha, creates a low frequency image and binarises it based on this lambda :par
deploy/python/dataaug/data/preprocess/ops/fmix.py:144
↓ 2 callersMethodsave
(self, id, image_file)
deploy/python/dataaug/predict/postprocess.py:168
↓ 2 callersFunctionsplit_regions
(axis)
deploy/python/dataaug/data/imaug/random_crop_data.py:47
↓ 2 callersMethodunclip
(self, box, unclip_ratio)
deploy/ppcv/ops/models/ocr_db_detection/postprocess.py:148
↓ 1 callersMethod__call__
(self, x, file_names=None, multilabel=False)
deploy/python/dataaug/data/postprocess/topk.py:50
↓ 1 callersMethod__call__
(self, x, file_names=None, multilabel=False)
deploy/python/dataaug/predict/postprocess.py:115
↓ 1 callersMethod__eq__
(self, other)
deploy/ppcv/ops/connector/keyframes_extract_helper.py:54
↓ 1 callersMethod__init__
(self, config)
deploy/python/dataaug/gen_ocr_rec.py:152
↓ 1 callersMethod__init__
(self, topk=1, class_id_map_file=None, delimiter=None)
deploy/python/dataaug/data/postprocess/topk.py:23
↓ 1 callersMethod__init__
(self, topk=1, class_id_map_file=None)
deploy/python/dataaug/predict/postprocess.py:88
↓ 1 callersMethod__init__
( self, target_size, keep_ratio=True, interp=cv2.INTER_LINEAR,
deploy/ppcv/ops/models/detection/preprocess.py:49
↓ 1 callersMethod__init__
(self, keep_keys, **kwargs)
deploy/ppcv/ops/models/ocr_db_detection/preprocess.py:202
↓ 1 callersMethod__init__
(self)
deploy/ppcv/utils/timer.py:25
↓ 1 callersMethod__init__
(self, **kwargs)
python_whl/easydata.py:204
↓ 1 callersMethod__lt__
(self, other)
deploy/ppcv/ops/connector/keyframes_extract_helper.py:46
↓ 1 callersMethod_apply_basic
(self, img, mixing_weights, m)
deploy/python/dataaug/data/preprocess/ops/timm_autoaugment.py:771
↓ 1 callersMethod_apply_blended
(self, img, mixing_weights, m)
deploy/python/dataaug/data/preprocess/ops/timm_autoaugment.py:755
↓ 1 callersMethod_calc_blended_weights
(self, ws, m)
deploy/python/dataaug/data/preprocess/ops/timm_autoaugment.py:745
↓ 1 callersFunction_download
Download from url, save to path. url (str): download url path (str): download to given path
deploy/ppcv/utils/download.py:153
↓ 1 callersMethod_extract_features
(self, gallery_images, config)
deploy/python/dataaug/predict/build_gallery.py:166
next →1–100 of 676, ranked by callers