MCPcopy Create free account

hub / github.com/ahmetozlu/tensorflow_object_counting_api / functions

Functions517 in github.com/ahmetozlu/tensorflow_object_counting_api

↓ 2 callersMethodset_log_dir
Sets the model log directory and epoch counter. model_path: If None, or a format different from what this code uses then set a ne
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2246
↓ 2 callersFunctiontrim_zeros
It's common to have tensors larger than the available data and pad with zeros. This function removes rows that are all zeros. x: [rows, colum
mask_rcnn_counting_api/utils.py:577
↓ 2 callersFunctiontrim_zeros
It's common to have tensors larger than the available data and pad with zeros. This function removes rows that are all zeros. x: [rows, colum
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/utils.py:655
↓ 2 callersFunctiontrim_zeros
It's common to have tensors larger than the available data and pad with zeros. This function removes rows that are all zeros. x: [rows, colum
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/utils.py:655
↓ 2 callersFunctiontrim_zeros_graph
Often boxes are represented with matricies of shape [N, 4] and are padded with zeros. This removes zero boxes. boxes: [N, 4] matrix of boxes.
mask_rcnn_counting_api/model.py:2536
↓ 2 callersFunctiontrim_zeros_graph
Often boxes are represented with matrices of shape [N, 4] and are padded with zeros. This removes zero boxes. boxes: [N, 4] matrix of boxes.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2822
↓ 2 callersFunctiontrim_zeros_graph
Often boxes are represented with matrices of shape [N, 4] and are padded with zeros. This removes zero boxes. boxes: [N, 4] matrix of boxes.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2822
↓ 2 callersMethodunmold_detections
Reformats the detections of one image from the format of the neural network output to a format suitable for use in the rest of the app
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2424
↓ 2 callersMethodunmold_detections
Reformats the detections of one image from the format of the neural network output to a format suitable for use in the rest of the app
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2424
↓ 1 callersFunction_extract_predictions_and_losses
Constructs tensorflow detection graph and returns output tensors. Args: model: model to perform predictions with. create_input_dict_fn: fun
smurf_counter_training/legacy/evaluator.py:64
↓ 1 callersFunction_parse_requirements
(file_path)
mask_rcnn_counting_api/spaghetti_counter_training/training/setup.py:18
↓ 1 callersFunction_validate_label_map
Checks if a label map is valid. Args: label_map: StringIntLabelMap to validate. Raises: ValueError: if label map is invalid.
utils/label_map_util.py:25
↓ 1 callersMethodadd_class
(self, source, class_id, class_name)
mask_rcnn_counting_api/utils.py:254
↓ 1 callersMethodadd_class
(self, source, class_id, class_name)
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/utils.py:260
↓ 1 callersMethodadd_class
(self, source, class_id, class_name)
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/utils.py:260
↓ 1 callersMethodadd_image
(self, source, image_id, path, **kwargs)
mask_rcnn_counting_api/utils.py:268
↓ 1 callersMethodadd_image
(self, source, image_id, path, **kwargs)
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/utils.py:274
↓ 1 callersMethodadd_image
(self, source, image_id, path, **kwargs)
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/utils.py:274
↓ 1 callersMethodannToMask
Convert annotation which can be polygons, uncompressed RLE, or RLE to binary mask. :return: binary mask (numpy 2D array)
mask_rcnn_counting_api/coco.py:298
↓ 1 callersMethodannToRLE
Convert annotation which can be polygons, uncompressed RLE to RLE. :return: binary mask (numpy 2D array)
mask_rcnn_counting_api/coco.py:279
↓ 1 callersFunctionassign_detections_to_trackers
(trackers, detections, iou_thrd = 0.3)
backbone.py:26
↓ 1 callersMethodauto_download
Download the COCO dataset/annotations if requested. dataDir: The root directory of the COCO dataset. dataType: What to load (train, va
mask_rcnn_counting_api/coco.py:145
↓ 1 callersFunctionbatch_pack_graph
Picks different number of values from each row in x depending on the values in counts.
mask_rcnn_counting_api/model.py:2548
↓ 1 callersFunctionbatch_pack_graph
Picks different number of values from each row in x depending on the values in counts.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2834
↓ 1 callersFunctionbatch_pack_graph
Picks different number of values from each row in x depending on the values in counts.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2834
↓ 1 callersMethodbox_normal_to_pixel
(self, box, dim)
detection_layer.py:51
↓ 1 callersFunctionbox_union
(a, b)
utils/object_tracking_module/tracking_utils.py:33
↓ 1 callersMethodbuild
Build Mask R-CNN architecture. input_shape: The shape of the input image. mode: Either "training" or "inference". The inputs a
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:1847
↓ 1 callersMethodbuild
Build Mask R-CNN architecture. input_shape: The shape of the input image. mode: Either "training" or "inference". The inputs a
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:1847
↓ 1 callersFunctionbuild_coco_results
Arrange resutls to match COCO specs in http://cocodataset.org/#format
mask_rcnn_counting_api/coco.py:312
↓ 1 callersFunctionbuild_detection_targets
Generate targets for training Stage 2 classifier and mask heads. This is not used in normal training. It's useful for debugging or to train th
mask_rcnn_counting_api/model.py:1228
↓ 1 callersFunctionbuild_detection_targets
Generate targets for training Stage 2 classifier and mask heads. This is not used in normal training. It's useful for debugging or to train th
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:1296
↓ 1 callersFunctionbuild_detection_targets
Generate targets for training Stage 2 classifier and mask heads. This is not used in normal training. It's useful for debugging or to train th
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:1296
↓ 1 callersFunctionbuild_model
(x_train, num_classes)
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/parallel_model.py:128
↓ 1 callersFunctionbuild_model
(x_train, num_classes)
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/parallel_model.py:128
↓ 1 callersFunctionbuild_rpn_model
Builds a Keras model of the Region Proposal Network. It wraps the RPN graph so it can be used multiple times with shared weights. anchors
mask_rcnn_counting_api/model.py:856
↓ 1 callersFunctionbuild_rpn_model
Builds a Keras model of the Region Proposal Network. It wraps the RPN graph so it can be used multiple times with shared weights. anchors
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:877
↓ 1 callersFunctionbuild_rpn_model
Builds a Keras model of the Region Proposal Network. It wraps the RPN graph so it can be used multiple times with shared weights. anchors
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:877
↓ 1 callersFunctionbuild_rpn_targets
Given the anchors and GT boxes, compute overlaps and identify positive anchors and deltas to refine them to match their corresponding GT boxes.
mask_rcnn_counting_api/model.py:1386
↓ 1 callersFunctionbuild_rpn_targets
Given the anchors and GT boxes, compute overlaps and identify positive anchors and deltas to refine them to match their corresponding GT boxes.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:1453
↓ 1 callersFunctionbuild_rpn_targets
Given the anchors and GT boxes, compute overlaps and identify positive anchors and deltas to refine them to match their corresponding GT boxes.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:1453
↓ 1 callersFunctioncalculateEuclideanDistance
(variable1, variable2, length)
utils/color_recognition_module/knn_classifier.py:15
↓ 1 callersFunctionclass_text_to_int
(row_label)
smurf_counter_training/generate_tfrecord.py:31
↓ 1 callersFunctionclass_text_to_int
(row_label)
smurf_counter_training/images/test/generate_tfrecord.py:31
↓ 1 callersFunctionclass_text_to_int
(row_label)
smurf_counter_training/images/train/generate_tfrecord.py:31
↓ 1 callersFunctioncompute_ap
Compute Average Precision at a set IoU threshold (default 0.5). Returns: mAP: Mean Average Precision precisions: List of precisions at di
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/utils.py:724
↓ 1 callersFunctioncompute_ap
Compute Average Precision at a set IoU threshold (default 0.5). Returns: mAP: Mean Average Precision precisions: List of precisions at di
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/utils.py:724
↓ 1 callersFunctioncompute_matches
Finds matches between prediction and ground truth instances. Returns: gt_match: 1-D array. For each GT box it has the index of the matche
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/utils.py:665
↓ 1 callersFunctioncompute_matches
Finds matches between prediction and ground truth instances. Returns: gt_match: 1-D array. For each GT box it has the index of the matche
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/utils.py:665
↓ 1 callersFunctioncompute_overlaps
Computes IoU overlaps between two sets of boxes. boxes1, boxes2: [N, (y1, x1, y2, x2)]. For better performance, pass the largest set first an
mask_rcnn_counting_api/utils.py:77
↓ 1 callersFunctioncompute_overlaps
Computes IoU overlaps between two sets of boxes. boxes1, boxes2: [N, (y1, x1, y2, x2)]. For better performance, pass the largest set first an
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/utils.py:79
↓ 1 callersFunctioncompute_overlaps
Computes IoU overlaps between two sets of boxes. boxes1, boxes2: [N, (y1, x1, y2, x2)]. For better performance, pass the largest set first an
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/utils.py:79
↓ 1 callersFunctioncompute_overlaps_masks
Computes IoU overlaps between two sets of masks. masks1, masks2: [Height, Width, instances]
mask_rcnn_counting_api/utils.py:96
↓ 1 callersFunctioncompute_overlaps_masks
Computes IoU overlaps between two sets of masks. masks1, masks2: [Height, Width, instances]
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/utils.py:98
↓ 1 callersFunctioncompute_overlaps_masks
Computes IoU overlaps between two sets of masks. masks1, masks2: [Height, Width, instances]
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/utils.py:98
↓ 1 callersFunctionconvert_label_map_to_categories
Loads label map proto and returns categories list compatible with eval. This function loads a label map and returns a list of dicts, each of which
utils/label_map_util.py:58
↓ 1 callersFunctioncreate_category_index
Creates dictionary of COCO compatible categories keyed by category id. Args: categories: a list of dicts, each of which has the following keys:
utils/label_map_util.py:39
↓ 1 callersFunctioncreate_input_queue
Sets up reader, prefetcher and returns input queue. Args: batch_size_per_clone: batch size to use per clone. create_tensor_dict_fn: functio
smurf_counter_training/legacy/trainer.py:38
↓ 1 callersFunctioncreate_tf_example
(group, path)
smurf_counter_training/generate_tfrecord.py:50
↓ 1 callersFunctioncreate_tf_example
(group, path)
smurf_counter_training/images/test/generate_tfrecord.py:44
↓ 1 callersFunctioncreate_tf_example
(group, path)
smurf_counter_training/images/train/generate_tfrecord.py:44
↓ 1 callersFunctiondetect_and_color_splash
(model, image_path=None, video_path=None)
mask_rcnn_counting_api/spaghetti_counter_training/custom.py:201
↓ 1 callersFunctiondetect_and_color_splash
(model, image_path=None, video_path=None)
mask_rcnn_counting_api/spaghetti_counter_training/training/custom.py:201
↓ 1 callersFunctiondetection_targets_graph
Generates detection targets for one image. Subsamples proposals and generates target class IDs, bounding box deltas, and masks for each. Inpu
mask_rcnn_counting_api/model.py:460
↓ 1 callersFunctiondetection_targets_graph
Generates detection targets for one image. Subsamples proposals and generates target class IDs, bounding box deltas, and masks for each. Inpu
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:485
↓ 1 callersFunctiondetection_targets_graph
Generates detection targets for one image. Subsamples proposals and generates target class IDs, bounding box deltas, and masks for each. Inpu
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:485
↓ 1 callersFunctiondisplay_images
Display the given set of images, optionally with titles. images: list or array of image tensors in HWC format. titles: optional. A list of tit
mask_rcnn_counting_api/real_time_object_counting.py:100
↓ 1 callersFunctiondisplay_images
Display the given set of images, optionally with titles. images: list or array of image tensors in HWC format. titles: optional. A list of tit
mask_rcnn_counting_api/single_image_object_counting.py:110
↓ 1 callersFunctiondisplay_images
Display the given set of images, optionally with titles. images: list or array of image tensors in HWC format. titles: optional. A list of tit
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/visualize.py:36
↓ 1 callersFunctiondisplay_images
Display the given set of images, optionally with titles. images: list or array of image tensors in HWC format. titles: optional. A list of tit
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/visualize.py:36
↓ 1 callersFunctiondisplay_instances
boxes: [num_instance, (y1, x1, y2, x2, class_id)] in image coordinates. masks: [height, width, num_instances] class_ids: [num_instances]
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/visualize.py:84
↓ 1 callersFunctiondisplay_instances
boxes: [num_instance, (y1, x1, y2, x2, class_id)] in image coordinates. masks: [height, width, num_instances] class_ids: [num_instances]
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/visualize.py:84
↓ 1 callersFunctiondisplay_table
Display values in a table format. table: an iterable of rows, and each row is an iterable of values.
mask_rcnn_counting_api/real_time_object_counting.py:478
↓ 1 callersFunctiondisplay_table
Display values in a table format. table: an iterable of rows, and each row is an iterable of values.
mask_rcnn_counting_api/single_image_object_counting.py:494
↓ 1 callersFunctiondisplay_table
Display values in a table format. table: an iterable of rows, and each row is an iterable of values.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/visualize.py:568
↓ 1 callersFunctiondisplay_table
Display values in a table format. table: an iterable of rows, and each row is an iterable of values.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/visualize.py:547
↓ 1 callersFunctiondraw_bounding_boxes_on_image
Draws bounding boxes on image. Args: image: a PIL.Image object. boxes: a 2 dimensional numpy array of [N, 4]: (ymin, xmin, ymax, xmax).
utils/visualization_utils.py:313
↓ 1 callersFunctiondraw_keypoints_on_image
Draws keypoints on an image. Args: image: a PIL.Image object. keypoints: a numpy array with shape [num_keypoints, 2]. color: color to d
utils/visualization_utils.py:417
↓ 1 callersFunctionevaluate_coco
Runs official COCO evaluation. dataset: A Dataset object with valiadtion data eval_type: "bbox" or "segm" for bounding box or segmentation eva
mask_rcnn_counting_api/coco.py:339
↓ 1 callersMethodfind_last
Finds the last checkpoint file of the last trained model in the model directory. Returns: log_dir: The directory where eve
mask_rcnn_counting_api/model.py:1978
↓ 1 callersMethodfind_last
Finds the last checkpoint file of the last trained model in the model directory. Returns: The path of the last checkpoint
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2074
↓ 1 callersMethodfind_last
Finds the last checkpoint file of the last trained model in the model directory. Returns: The path of the last checkpoint
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2074
↓ 1 callersMethodfind_trainable_layer
If a layer is encapsulated by another layer, this function digs through the encapsulation and returns the layer that holds the weights
mask_rcnn_counting_api/model.py:2411
↓ 1 callersMethodfind_trainable_layer
If a layer is encapsulated by another layer, this function digs through the encapsulation and returns the layer that holds the weights
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2655
↓ 1 callersMethodfind_trainable_layer
If a layer is encapsulated by another layer, this function digs through the encapsulation and returns the layer that holds the weights
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2655
↓ 1 callersFunctiongenerate_anchors
scales: 1D array of anchor sizes in pixels. Example: [32, 64, 128] ratios: 1D array of anchor ratios of width/height. Example: [0.5, 1, 2]
mask_rcnn_counting_api/utils.py:514
↓ 1 callersFunctiongenerate_anchors
scales: 1D array of anchor sizes in pixels. Example: [32, 64, 128] ratios: 1D array of anchor ratios of width/height. Example: [0.5, 1, 2]
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/utils.py:592
↓ 1 callersFunctiongenerate_anchors
scales: 1D array of anchor sizes in pixels. Example: [32, 64, 128] ratios: 1D array of anchor ratios of width/height. Example: [0.5, 1, 2]
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/utils.py:592
↓ 1 callersFunctiongenerate_random_rois
Generates ROI proposals similar to what a region proposal network would generate. image_shape: [Height, Width, Depth] count: Number of RO
mask_rcnn_counting_api/model.py:1497
↓ 1 callersFunctiongenerate_random_rois
Generates ROI proposals similar to what a region proposal network would generate. image_shape: [Height, Width, Depth] count: Number of RO
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:1564
↓ 1 callersFunctiongenerate_random_rois
Generates ROI proposals similar to what a region proposal network would generate. image_shape: [Height, Width, Depth] count: Number of RO
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:1564
↓ 1 callersFunctionget_evaluators
Returns the evaluator class according to eval_config, valid for categories. Args: eval_config: evaluation configurations. categories: a lis
smurf_counter_training/legacy/evaluator.py:139
↓ 1 callersMethodget_imagenet_weights
Downloads ImageNet trained weights from Keras. Returns path to weights file.
mask_rcnn_counting_api/model.py:2041
↓ 1 callersMethodget_imagenet_weights
Downloads ImageNet trained weights from Keras. Returns path to weights file.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2147
↓ 1 callersMethodget_imagenet_weights
Downloads ImageNet trained weights from Keras. Returns path to weights file.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2147
↓ 1 callersFunctionget_inputs
Dequeues batch and constructs inputs to object detection model. Args: input_queue: BatchQueue object holding enqueued tensor_dicts. num_cla
smurf_counter_training/legacy/trainer.py:92
↓ 1 callersMethodget_localization
(self, image, visual=False)
detection_layer.py:56
↓ 1 callersFunctionget_masked_fixed_color
boxes: [num_instance, (y1, x1, y2, x2, class_id)] in image coordinates. masks: [height, width, num_instances] class_ids: [num_instances]
mask_rcnn_counting_api/real_time_object_counting.py:520
↓ 1 callersFunctionget_masked_fixed_color
boxes: [num_instance, (y1, x1, y2, x2, class_id)] in image coordinates. masks: [height, width, num_instances] class_ids: [num_instances]
mask_rcnn_counting_api/single_image_object_counting.py:536
↓ 1 callersMethodget_source_class_id
Map an internal class ID to the corresponding class ID in the source dataset.
mask_rcnn_counting_api/utils.py:327
← previousnext →101–200 of 517, ranked by callers