Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/EasyData
/ functions
Functions
676 in github.com/PaddlePaddle/EasyData
⨍
Functions
676
◇
Types & classes
156
↓ 33 callers
Method
info
(self)
deploy/ppcv/utils/timer.py:70
↓ 29 callers
Method
get
key can be one of [list, tuple, str]
deploy/ppcv/ops/general_data_obj.py:24
↓ 25 callers
Method
keys
get all keys of the data
deploy/ppcv/ops/general_data_obj.py:42
↓ 18 callers
Method
get
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 callers
Function
apply
: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 callers
Function
create_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 callers
Function
sample_level
(n)
deploy/python/dataaug/data/preprocess/ops/functional.py:45
↓ 9 callers
Function
setup_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 callers
Method
dmsg
(self, msg)
deploy/python/dataaug/utils/renderer.py:179
↓ 8 callers
Method
int_around
(self, val)
deploy/python/dataaug/utils/renderer.py:277
↓ 8 callers
Method
is_bgr
(self)
deploy/python/dataaug/utils/renderer.py:827
↓ 7 callers
Function
_check_args_tf
(kwargs)
deploy/python/dataaug/data/preprocess/ops/timm_autoaugment.py:63
↓ 7 callers
Method
parse_args
(self, argv=None)
deploy/ppcv/core/config.py:39
↓ 6 callers
Function
float_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 callers
Method
run
(self, x)
deploy/ppcv/ops/predictor.py:124
↓ 6 callers
Method
value
(self)
deploy/ppcv/utils/timer.py:47
↓ 5 callers
Method
__init__
(self, model_cfg, env_cfg=None)
deploy/ppcv/ops/connector/op_connector.py:101
↓ 5 callers
Function
_randomly_negate
With 50% prob, negate the value
deploy/python/dataaug/data/preprocess/ops/timm_autoaugment.py:192
↓ 5 callers
Function
int_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 callers
Function
check_dir
(path)
deploy/python/dataaug/utils/utility.py:57
↓ 4 callers
Function
get_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 callers
Method
get_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 callers
Function
is_url
Whether path is URL. Args: path (string): URL string or not.
deploy/ppcv/utils/download.py:50
↓ 4 callers
Function
override
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 callers
Function
parse_url
(url)
deploy/ppcv/utils/download.py:61
↓ 4 callers
Method
predict_images
(self, input)
deploy/ppcv/engine/pipeline.py:102
↓ 4 callers
Method
run
(self, input, frame_id=-1)
deploy/ppcv/core/framework.py:156
↓ 4 callers
Function
str2num
(v)
deploy/python/dataaug/utils/config.py:107
↓ 3 callers
Method
__bilinear_interp
(x, y, v11, v12, v21, v22)
deploy/python/dataaug/data/imaug/text_image_aug/warp_mls.py:37
↓ 3 callers
Method
__init__
(self, padding: int, fill: int = 0, padding_mode: str = "co
deploy/python/dataaug/data/preprocess/ops/operators.py:637
↓ 3 callers
Method
_mix_target
(self, targets0, targets1, lam)
deploy/python/dataaug/data/preprocess/batch_ops/batch_operators.py:50
↓ 3 callers
Method
_unpack
_unpack
deploy/python/dataaug/data/preprocess/batch_ops/batch_operators.py:33
↓ 3 callers
Method
apply
: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 callers
Method
apply_gauss_blur
(self, img, ks=None)
deploy/python/dataaug/utils/renderer.py:751
↓ 3 callers
Function
cliped_rand_norm
:param mu: 均值 :param sigma3: 3 倍标准差, 99% 的数据落在 (mu-3*sigma, mu+3*sigma) :return:
deploy/python/dataaug/utils/math_utils.py:42
↓ 3 callers
Function
coloring
(message, color="OKGREEN")
deploy/python/dataaug/utils/logger.py:44
↓ 3 callers
Method
decode
convert text-index into text-label.
deploy/ppcv/ops/models/ocr_crnn_recognition/postprocess.py:73
↓ 3 callers
Function
draw_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 callers
Method
generate
(self)
deploy/python/dataaug/data/imaug/text_image_aug/warp_mls.py:41
↓ 3 callers
Function
get_image_list_from_label_file
(label_file_path, delimiter=' ')
deploy/python/dataaug/utils/get_image_list.py:39
↓ 3 callers
Method
get_mini_boxes
(self, contour)
deploy/ppcv/ops/models/ocr_db_detection/postprocess.py:156
↓ 3 callers
Function
get_model_path
Get model path from WEIGHTS_HOME, if not exists, download it from url.
deploy/ppcv/utils/download.py:66
↓ 3 callers
Function
load_yaml
(yaml_file)
deploy/utils/utils.py:18
↓ 3 callers
Method
predict
(self, input=None)
python_whl/easydata.py:273
↓ 3 callers
Function
prob
percent: 0 ~ 1, e.g: 如果 percent=0.1,有 10% 的可能性
deploy/python/dataaug/utils/renderer.py:61
↓ 3 callers
Method
set
key: str value: an object
deploy/ppcv/ops/general_data_obj.py:35
↓ 3 callers
Method
type
(self)
deploy/ppcv/ops/base.py:69
↓ 2 callers
Method
__call__
(self, img)
deploy/python/dataaug/data/preprocess/__init__.py:61
↓ 2 callers
Method
__init__
(self, *args, **kwargs)
deploy/python/dataaug/data/preprocess/__init__.py:58
↓ 2 callers
Method
_aug
(self, img)
deploy/python/dataaug/data/preprocess/ops/operators.py:103
↓ 2 callers
Function
_check_exist_file_md5
(filename, md5sum, url)
deploy/ppcv/utils/download.py:204
↓ 2 callers
Function
_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 callers
Function
_md5check
(fullname, md5sum=None)
deploy/ppcv/utils/download.py:227
↓ 2 callers
Method
_one_hot
(self, targets)
deploy/python/dataaug/data/preprocess/batch_ops/batch_operators.py:47
↓ 2 callers
Method
box_score_fast
box_score_fast: use bbox mean score as the mean score
deploy/ppcv/ops/models/ocr_db_detection/postprocess.py:179
↓ 2 callers
Function
build_postprocess
(config)
deploy/python/dataaug/predict/postprocess.py:25
↓ 2 callers
Function
create_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 callers
Method
crop_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 callers
Method
draw_border_text
:param x/y: 应该是移除了 offset 的
deploy/python/dataaug/utils/renderer.py:559
↓ 2 callers
Method
draw_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 callers
Method
draw_text_wrapper
:param x/y: 应该是移除了 offset 的
deploy/python/dataaug/utils/renderer.py:550
↓ 2 callers
Method
gen_rand_bg
Generate random background
deploy/python/dataaug/utils/renderer.py:648
↓ 2 callers
Function
get_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 callers
Function
get_color
(idx)
deploy/ppcv/ops/output/keypoint.py:30
↓ 2 callers
Method
get_gray_word_color
Only use word roi area to get word color
deploy/python/dataaug/utils/renderer.py:280
↓ 2 callers
Method
get_output_keys
(cls)
deploy/ppcv/ops/base.py:73
↓ 2 callers
Method
get_word_color
(self)
deploy/python/dataaug/utils/renderer.py:296
↓ 2 callers
Function
is_poly_outside_rect
(poly, x, y, w, h)
deploy/python/dataaug/data/imaug/random_crop_data.py:38
↓ 2 callers
Method
is_running
Returns: bool: Whether the worker theads are running.
deploy/python/dataaug/utils/data_utils.py:127
↓ 2 callers
Function
load_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 callers
Method
loop_set
(self, key_list, value)
python_whl/easydata.py:52
↓ 2 callers
Function
parse_args
()
python_whl/easydata.py:114
↓ 2 callers
Function
parse_class_id_map
(class_id_map_file)
deploy/ppcv/ops/models/classification/postprocess.py:19
↓ 2 callers
Method
postprocess
(self, inputs)
deploy/ppcv/ops/models/base.py:54
↓ 2 callers
Function
random_select
(axis, max_size)
deploy/python/dataaug/data/imaug/random_crop_data.py:58
↓ 2 callers
Method
random_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 callers
Function
region_wise_random_select
(regions, max_size)
deploy/python/dataaug/data/imaug/random_crop_data.py:67
↓ 2 callers
Method
reset_dep
(self, )
deploy/ppcv/core/framework.py:117
↓ 2 callers
Method
run
(self)
deploy/python/dataaug/__init__.py:130
↓ 2 callers
Method
run
(self, input)
deploy/ppcv/engine/pipeline.py:81
↓ 2 callers
Function
sample_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 callers
Method
save
(self, id, image_file)
deploy/python/dataaug/predict/postprocess.py:168
↓ 2 callers
Function
split_regions
(axis)
deploy/python/dataaug/data/imaug/random_crop_data.py:47
↓ 2 callers
Method
unclip
(self, box, unclip_ratio)
deploy/ppcv/ops/models/ocr_db_detection/postprocess.py:148
↓ 1 callers
Method
__call__
(self, x, file_names=None, multilabel=False)
deploy/python/dataaug/data/postprocess/topk.py:50
↓ 1 callers
Method
__call__
(self, x, file_names=None, multilabel=False)
deploy/python/dataaug/predict/postprocess.py:115
↓ 1 callers
Method
__eq__
(self, other)
deploy/ppcv/ops/connector/keyframes_extract_helper.py:54
↓ 1 callers
Method
__init__
(self, config)
deploy/python/dataaug/gen_ocr_rec.py:152
↓ 1 callers
Method
__init__
(self, topk=1, class_id_map_file=None, delimiter=None)
deploy/python/dataaug/data/postprocess/topk.py:23
↓ 1 callers
Method
__init__
(self, topk=1, class_id_map_file=None)
deploy/python/dataaug/predict/postprocess.py:88
↓ 1 callers
Method
__init__
( self, target_size, keep_ratio=True, interp=cv2.INTER_LINEAR,
deploy/ppcv/ops/models/detection/preprocess.py:49
↓ 1 callers
Method
__init__
(self, keep_keys, **kwargs)
deploy/ppcv/ops/models/ocr_db_detection/preprocess.py:202
↓ 1 callers
Method
__init__
(self)
deploy/ppcv/utils/timer.py:25
↓ 1 callers
Method
__init__
(self, **kwargs)
python_whl/easydata.py:204
↓ 1 callers
Method
__lt__
(self, other)
deploy/ppcv/ops/connector/keyframes_extract_helper.py:46
↓ 1 callers
Method
_apply_basic
(self, img, mixing_weights, m)
deploy/python/dataaug/data/preprocess/ops/timm_autoaugment.py:771
↓ 1 callers
Method
_apply_blended
(self, img, mixing_weights, m)
deploy/python/dataaug/data/preprocess/ops/timm_autoaugment.py:755
↓ 1 callers
Method
_calc_blended_weights
(self, ws, m)
deploy/python/dataaug/data/preprocess/ops/timm_autoaugment.py:745
↓ 1 callers
Function
_download
Download from url, save to path. url (str): download url path (str): download to given path
deploy/ppcv/utils/download.py:153
↓ 1 callers
Method
_extract_features
(self, gallery_images, config)
deploy/python/dataaug/predict/build_gallery.py:166
next →
1–100 of 676, ranked by callers