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
↓ 1 callers
Function
read_gt_file
(image_name)
visualize_detection_result.py:51
↓ 1 callers
Function
read_image_file
(image_name)
visualize_detection_result.py:59
↓ 1 callers
Function
reshape
(t)
nets/seglink_symbol.py:268
↓ 1 callers
Function
reshape_link_gt_by_layer
(link_gt)
tf_extended/seglink.py:322
↓ 1 callers
Function
rotate_horizontal_bbox_to_oriented
Step 4 of Figure 5 in seglink paper: Rotate the cropped horizontal bbox back to its original direction Args: center: the cen
tf_extended/seglink.py:153
↓ 1 callers
Function
rotate_oriented_bbox_to_horizontal
Step 2 of Figure 5 in seglink paper Rotate bbox horizontally along a `center` point Args: center: the center of rotation
tf_extended/seglink.py:102
↓ 1 callers
Function
sin
(theta)
tf_extended/seglink.py:715
↓ 1 callers
Function
sum_gradients
(clone_grads)
train_seglink.py:157
↓ 1 callers
Function
tan
(theta)
tf_extended/seglink.py:719
↓ 1 callers
Function
tf_image_unwhitened
Re-convert to original image distribution, and convert to int if necessary. Returns: Centered image.
preprocessing/ssd_vgg_preprocessing.py:65
↓ 1 callers
Function
to_list
()
tf_extended/seglink.py:595
↓ 1 callers
Function
train
(train_op)
train_seglink.py:240
↓ 1 callers
Function
visualize
(image_root, det_root, output_root, gt_root = None)
visualize_detection_result.py:50
↓ 1 callers
Function
write_result_as_txt
(image_name, bboxes, path)
test_seglink.py:125
Method
OHNM_batch
(neg_conf, pos_mask, neg_mask)
nets/seglink_symbol.py:184
Method
OHNM_single_image
Online Hard Negative Mining. scores: the scores of being predicted as negative cls n_pos: the number of positive sampl
nets/seglink_symbol.py:159
Method
__init__
(self)
caffe_to_tensorflow.py:10
Method
__init__
(self, inputs, weight_decay = None, basenet_type = 'vgg', data_format = 'NHWC',
nets/seglink_symbol.py:8
Method
__init__
(self, file_pattern, split_sizes)
datasets/dataset_factory.py:5
Method
__init__
(self, mat_path, root_path)
datasets/synthtext_to_tfrecords.py:15
Method
_initializer
(shape, dtype, partition_info=None)
caffe_to_tensorflow.py:24
Function
basenet
backbone net of vgg16
nets/vgg.py:6
Function
bboxes_filter_overlap
Filter out bounding boxes based on (relative )overlap with reference box [0, 0, 1, 1]. Remove completely bounding boxes, or assign negative l
tf_extended/bboxes.py:68
Function
bboxes_matching
Matching a collection of detected boxes with groundtruth values. Does not accept batched-inputs. The algorithm goes as follows: for every dete
tf_extended/bboxes.py:147
Function
bboxes_resize
Resize bounding boxes based on a reference bounding box, assuming that the latter is [0, 0, 1, 1] after transform. Useful for updating a colle
tf_extended/bboxes.py:21
Function
draw_rectangle
()
visualize_detection_result.py:11
Function
draw_text
()
visualize_detection_result.py:20
Function
fmean
Compute f-mean with precision and recall
tf_extended/metrics.py:83
Function
generate_anchors
nets/anchor_layer.py:3
Function
get_all_seglink_gt
(xs, ys, ignored)
tf_extended/seglink.py:495
Function
get_basenet
(name, inputs)
nets/net_factory.py:7
Function
get_dataset
Given a dataset dataset_name and a split_name returns a Dataset. Args: dataset_name: String, the dataset_name of the dataset. spli
datasets/dataset_factory.py:46
Method
get_pos_and_neg_masks
(labels)
nets/seglink_symbol.py:149
Function
get_preprocessing
Returns preprocessing_fn(image, height, width, **kwargs). Args: name: The name of the preprocessing function. is_training: `True` if
preprocessing/preprocessing_factory.py:28
Function
get_split
(split_name, dataset_dir, file_pattern, num_samples, reader=None)
datasets/dataset_utils.py:99
Method
has_pos
()
nets/seglink_symbol.py:168
Function
image_to_tfexample
(image_data, image_format, height, width, class_id)
datasets/dataset_utils.py:49
Function
init_config
(image_shape, batch_size = 1, weight_decay = 0.0005, num_gpus = 1,
config.py:85
Function
is_anchor_center_in_rect
tell if the center of the anchor is in the rect represented using xs and ys and bbox_idx
tf_extended/seglink.py:20
Function
m_body
(i, ta_tp, ta_fp, gmatch, n_ignored_det)
tf_extended/bboxes.py:188
Function
m_condition
(i, ta_tp, ta_fp, gmatch, n_ignored_det)
tf_extended/bboxes.py:184
Function
main
(_)
eval_seglink.py:263
Function
main
(_)
train_seglink.py:265
Function
main
(_)
test_seglink.py:149
Function
main
(_)
test/test_preprocessing.py:60
Function
main
(_)
test/test_batch_and_gt.py:124
Function
match_anchor_to_text_boxes
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:191
Method
no_pos
()
nets/seglink_symbol.py:179
Function
np_bboxes_jaccard
(bbox, gxs, gys)
tf_extended/bboxes.py:241
Function
np_image_unwhitened
Re-convert to original image distribution, and convert to int if necessary. Numpy version. Returns: Centered image.
preprocessing/ssd_vgg_preprocessing.py:79
Function
precision_recall
Compute precision and recall from true positives and false positives booleans arrays
tf_extended/metrics.py:69
Function
preprocess_image
Pre-process an given image. Args: image: A `Tensor` representing an image of arbitrary size. output_height: The height of the image a
preprocessing/ssd_vgg_preprocessing.py:332
Function
preprocessing_fn
(image, labels, bboxes, xs, ys, out_shape, data_format='NHWC', **kwargs)
preprocessing/preprocessing_factory.py:45
Function
print_config
(flags, dataset, save_dir = None, print_to_file = True)
config.py:139
Function
random_flip_left_right
Random flip left-right of an image and its bounding boxes.
preprocessing/tf_image.py:281
Function
resize_image
Resize an image and bounding boxes.
preprocessing/tf_image.py:266
Function
resize_image_bboxes_with_crop_or_pad
Crops and/or pads an image to a target width and height. Resizes an image to a target width and height by either centrally cropping the image
preprocessing/tf_image.py:166
Function
safe_divide
Divides two values, returning 0 if the denominator is <= 0. Args: numerator: A real `Tensor`. denominator: A real `Tensor`, with dtype
tf_extended/math.py:25
Function
seglink_to_bbox
Args: seg_scores: the scores of segments being positive link_scores: the scores of linkage being positive seg_offsets_pre
tf_extended/seglink.py:684
Method
smooth_l1_loss
(pred, target, weights)
nets/seglink_symbol.py:215
Function
streaming_tp_fp_arrays
Streaming computation of True and False Positive arrays.
tf_extended/metrics.py:32
Function
tf_get_all_seglink_gt
xs, ys: tensors reprensenting ground truth bbox, both with shape=(N, 4), values in 0~1
tf_extended/seglink.py:549
Function
tf_min_area_rect
(xs, ys)
tf_extended/seglink.py:54
Function
tf_seglink_to_bbox
(seg_cls_pred, link_cls_pred, seg_offsets_pred, image_shape, seg_conf_threshold = None
tf_extended/seglink.py:663
Function
write_result
(image_name, image_data, bboxes, path)
test_seglink.py:67
← previous
101–165 of 165, ranked by callers