Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dengdan/seglink
/ functions
Functions
165 in github.com/dengdan/seglink
⨍
Functions
165
◇
Types & classes
4
↓ 12 callers
Function
float_feature
Wrapper for inserting float features into Example proto.
datasets/dataset_utils.py:33
↓ 12 callers
Method
get_shape
(self, name)
nets/seglink_symbol.py:30
↓ 9 callers
Function
_is_tensor
Returns `True` if `x` is a symbolic tensor-like object. Args: x: A python object to check. Returns: `True` if `x` is a `tf.Tensor`
preprocessing/tf_image.py:62
↓ 6 callers
Function
bytes_feature
Wrapper for inserting bytes features into Example proto.
datasets/dataset_utils.py:41
↓ 6 callers
Function
int64_feature
Wrapper for inserting int64 features into Example proto.
datasets/dataset_utils.py:25
↓ 5 callers
Function
tensor_shape
(t)
nets/seglink_symbol.py:283
↓ 4 callers
Function
_assert
A polymorphic assert, works with tensors and boolean expressions. If `cond` is not a tensor, behave like an ordinary assert statement, except
preprocessing/tf_image.py:41
↓ 4 callers
Function
convert_to_example
Build an Example proto for an image example. Args: image_data: string, JPEG encoding of RGB image; labels: list of integers, identifie
datasets/dataset_utils.py:59
↓ 4 callers
Function
is_valid_cord
Tell whether the 2D coordinate (x, y) is valid or not. If valid, it should be on an h x w image
tf_extended/seglink.py:374
↓ 4 callers
Function
max_
(x, y)
preprocessing/tf_image.py:206
↓ 4 callers
Function
reshape_and_concat
(tensors)
nets/seglink_symbol.py:267
↓ 3 callers
Function
_ImageDimensions
Returns the dimensions of an image tensor. Args: image: A 3-D Tensor of shape `[height, width, channels]`. Returns: A list of `[he
preprocessing/tf_image.py:72
↓ 3 callers
Function
_create_local
Creates a new local variable. Args: name: The name of the new or existing variable. shape: Shape of the new or existing variable.
tf_extended/metrics.py:10
↓ 3 callers
Function
get_root
(idx)
tf_extended/seglink.py:581
↓ 2 callers
Function
_Check3DImage
Assert that we are working with properly shaped image. Args: image: 3-D Tensor of shape [height, width, channels] require_static: If
preprocessing/tf_image.py:90
↓ 2 callers
Function
_generate_anchors_one_layer
generate anchors on on layer return a ndarray with shape (h_l, w_l, 4), and the last dimmension in the order:[cx, cy, w, h]
nets/anchor_layer.py:24
↓ 2 callers
Function
anchor_rect_height_ratio
calculate the height ratio between anchor and rect
tf_extended/seglink.py:12
↓ 2 callers
Function
bboxes_crop_or_pad
Adapt bounding boxes to crop or pad operations. Coordinates are always supposed to be relative to the image. Arguments: bboxes: Tensor
preprocessing/tf_image.py:138
↓ 2 callers
Function
bboxes_intersection
Compute relative intersection between a reference box and a collection of bounding boxes. Namely, compute the quotient between intersection ar
tf_extended/bboxes.py:91
↓ 2 callers
Method
build_loss
(self, seg_labels, seg_offsets, link_labels, do_summary = True)
nets/seglink_symbol.py:142
↓ 2 callers
Function
cal_seg_loc_for_single_anchor
Step 2 to 4
tf_extended/seglink.py:173
↓ 2 callers
Function
cvt_to_tfrecords
(output_path , data_path, gt_path)
datasets/icdar2013_to_tfrecords.py:8
↓ 2 callers
Function
do_print
(stream=None)
config.py:140
↓ 2 callers
Function
draw_bbox
(image_data, line, color)
visualize_detection_result.py:7
↓ 2 callers
Function
equal_
(x, y)
preprocessing/tf_image.py:218
↓ 2 callers
Function
get_cross_layer_neighbours
(x, y)
tf_extended/seglink.py:371
↓ 2 callers
Function
get_inter_layer_neighbours
(x, y)
tf_extended/seglink.py:366
↓ 2 callers
Method
get_shapes
(self)
nets/seglink_symbol.py:24
↓ 2 callers
Function
min_
(x, y)
preprocessing/tf_image.py:212
↓ 2 callers
Function
min_area_rect
Args: xs: numpy ndarray with shape=(N,4). N is the number of oriented bboxes. 4 contains [x1, x2, x3, x4] ys: numpy ndarray with
tf_extended/seglink.py:28
↓ 2 callers
Function
reshape_labels_by_layer
(labels)
tf_extended/seglink.py:350
↓ 2 callers
Function
set_ignored_labels
(labels, idx)
tf_extended/seglink.py:515
↓ 2 callers
Function
set_ignored_labels_to_zero
(labels)
tf_extended/seglink.py:534
↓ 2 callers
Function
set_positive_labels_to_one
(labels)
tf_extended/seglink.py:526
↓ 2 callers
Function
tf_image_whitened
Subtracts the given means from each image channel. Returns: the centered image.
preprocessing/ssd_vgg_preprocessing.py:48
↓ 2 callers
Function
tf_summary_image
Add image with bounding boxes to summary.
preprocessing/ssd_vgg_preprocessing.py:93
↓ 2 callers
Function
transform_cv_rect
Transform the rects from opencv method minAreaRect to our rects. Step 1 of Figure 5 in seglink paper In cv2.minAreaRect, the w, h and theta
tf_extended/seglink.py:57
↓ 2 callers
Function
union
(idx1, idx2)
tf_extended/seglink.py:588
↓ 1 callers
Method
_add_extra_layers
(self, inputs, end_points)
nets/seglink_symbol.py:52
↓ 1 callers
Method
_add_seglink_layers
(self)
nets/seglink_symbol.py:118
↓ 1 callers
Function
_build_anchor_map
()
config.py:76
↓ 1 callers
Method
_build_network
(self)
nets/seglink_symbol.py:33
↓ 1 callers
Method
_build_seg_link_layer
(self, layer_name)
nets/seglink_symbol.py:82
↓ 1 callers
Function
_get_scale
(w_I, w_l)
nets/anchor_layer.py:43
↓ 1 callers
Method
_load_mat
(self)
datasets/synthtext_to_tfrecords.py:21
↓ 1 callers
Function
_reshape_and_concat
(tensors)
nets/anchor_layer.py:20
↓ 1 callers
Function
_set_batch_size
(bz)
config.py:55
↓ 1 callers
Function
_set_det_th
(seg_conf_th, link_conf_th)
config.py:59
↓ 1 callers
Function
_set_feat_shapes
(shapes)
config.py:51
↓ 1 callers
Function
_set_image_shape
(shape)
config.py:47
↓ 1 callers
Function
_set_loss_weight
(seg_loc_loss_w, link_cls_loss_w)
config.py:66
↓ 1 callers
Function
_set_train_with_ignored
(train_with_ignored_)
config.py:72
↓ 1 callers
Function
_test_generate_anchors_one_layer
test _generate_anchors_one_layer method by visualizing it in an image.
nets/anchor_layer.py:48
↓ 1 callers
Function
apply_with_random_selector
Computes func(x, sel), with sel sampled from [0...num_cases-1]. Args: x: input Tensor. func: Python function to apply. nu
preprocessing/ssd_vgg_preprocessing.py:104
↓ 1 callers
Function
bboxes_jaccard
(bbox, gxs, gys)
tf_extended/bboxes.py:236
↓ 1 callers
Function
bboxes_to_xys
Convert Seglink bboxes to xys, i.e., eight points The `image_shape` is used to to make sure all points return are valid, i.e., within image area
tf_extended/seglink.py:781
↓ 1 callers
Function
cal_link_labels
(labels)
tf_extended/seglink.py:381
↓ 1 callers
Function
check_var
(name)
caffe_to_tensorflow.py:86
↓ 1 callers
Function
combine_segs
(segs, return_bias = False)
tf_extended/seglink.py:722
↓ 1 callers
Function
config_initialization
()
eval_seglink.py:79
↓ 1 callers
Function
config_initialization
()
train_seglink.py:77
↓ 1 callers
Function
config_initialization
()
test_seglink.py:53
↓ 1 callers
Function
config_initialization
()
test/test_batch_and_gt.py:54
↓ 1 callers
Method
conv_biases_init
(self)
caffe_to_tensorflow.py:41
↓ 1 callers
Method
conv_weights_init
(self)
caffe_to_tensorflow.py:23
↓ 1 callers
Function
cos
(theta)
tf_extended/seglink.py:717
↓ 1 callers
Function
create_clones
(batch_queue)
train_seglink.py:175
↓ 1 callers
Function
create_dataset_batch_queue
(dataset)
train_seglink.py:108
↓ 1 callers
Function
create_dataset_batch_queue
(dataset)
test/test_batch_and_gt.py:70
↓ 1 callers
Function
crop_horizontal_bbox_using_anchor
Step 3 in Figure 5 in seglink paper The crop operation is operated only on the x direction. Args: bbox: a horizontal bbox with shape =
tf_extended/seglink.py:123
↓ 1 callers
Function
cvt_to_tfrecords
(output_path , data_path, gt_path)
datasets/icdar2015_to_tfrecords.py:8
↓ 1 callers
Function
cvt_to_tfrecords
(output_path , data_path, gt_path, records_per_file = 50000)
datasets/synthtext_to_tfrecords.py:114
↓ 1 callers
Function
cvt_to_tfrecords
(output_path , data_path, gt_path)
datasets/scut_to_tfrecords.py:8
↓ 1 callers
Function
decode_seg_offsets_pred
(seg_offsets_pred)
tf_extended/seglink.py:475
↓ 1 callers
Function
distort_color
Distort the color of a Tensor image. Each color distortion is non-commutative and thus ordering of the color ops matters. Ideally we would ra
preprocessing/ssd_vgg_preprocessing.py:123
↓ 1 callers
Function
distorted_bounding_box_crop
Generates cropped_image using a one of the bboxes randomly distorted. See `tf.image.sample_distorted_bounding_box` for more documentation. A
preprocessing/ssd_vgg_preprocessing.py:176
↓ 1 callers
Function
draw_bbox
()
test/test_preprocessing.py:129
↓ 1 callers
Function
draw_bbox
(mask, bbox, color = util.img.COLOR_RGB_RED)
test/test_batch_and_gt.py:49
↓ 1 callers
Function
draw_orbbox
()
test/test_preprocessing.py:138
↓ 1 callers
Function
draw_oriented_bbox
()
visualize_detection_result.py:29
↓ 1 callers
Function
draw_xys
()
test/test_preprocessing.py:133
↓ 1 callers
Function
encode_seg_offsets
Args: seg_locs: a ndarray with shape = (N, 5). It contains the abolute values of segment locations Return: seg_offsets, i.e.
tf_extended/seglink.py:443
↓ 1 callers
Function
eval
(dataset)
eval_seglink.py:140
↓ 1 callers
Function
eval
()
test_seglink.py:77
↓ 1 callers
Method
fetch_record
(self, image_idx)
datasets/synthtext_to_tfrecords.py:87
↓ 1 callers
Function
fix_image_flip_shape
Set the shape to 3 dimensional if we don't know anything else. Args: image: original image size result: flipped or transformed image
preprocessing/tf_image.py:119
↓ 1 callers
Function
flip_bboxes
Flip bounding boxes coordinates.
preprocessing/tf_image.py:284
↓ 1 callers
Method
get_image_path
(self, idx)
datasets/synthtext_to_tfrecords.py:28
↓ 1 callers
Method
get_num_words
(self, idx)
datasets/synthtext_to_tfrecords.py:32
↓ 1 callers
Method
get_txt
(self, image_idx, word_idx)
datasets/synthtext_to_tfrecords.py:79
↓ 1 callers
Function
get_valid_x
(x)
tf_extended/seglink.py:791
↓ 1 callers
Function
get_valid_y
(y)
tf_extended/seglink.py:798
↓ 1 callers
Method
get_word_bbox
(self, img_idx, word_idx)
datasets/synthtext_to_tfrecords.py:39
↓ 1 callers
Function
group_segs
group segments based on their scores and links. Return: segment groups as a list, consisting of list of segment indexes, reprensting a group
tf_extended/seglink.py:566
↓ 1 callers
Function
match_anchor_to_text_boxes_fast
Match anchors to text boxes. Return: seg_labels: shape = (N,), the seg_labels of segments. each value is the index of matched box i
tf_extended/seglink.py:257
↓ 1 callers
Method
normalize_bbox
(self, xys, width, height)
datasets/synthtext_to_tfrecords.py:48
↓ 1 callers
Function
preprocess_for_eval
Preprocess an image for evaluation. Args: image: A `Tensor` representing an image of arbitrary size. out_shape: Output shape afte
preprocessing/ssd_vgg_preprocessing.py:298
↓ 1 callers
Function
preprocess_for_train
Preprocesses the given image for training. Note that the actual resizing scale is sampled from [`resize_size_min`, `resize_size_max`].
preprocessing/ssd_vgg_preprocessing.py:234
↓ 1 callers
Function
read_dataset
(dataset)
eval_seglink.py:103
↓ 1 callers
Function
read_det_file
(image_name)
visualize_detection_result.py:55
next →
1–100 of 165, ranked by callers