MCPcopy Create free account

hub / github.com/ahmetozlu/tensorflow_object_counting_api / functions

Functions517 in github.com/ahmetozlu/tensorflow_object_counting_api

↓ 15 callersFunctionlog
Prints a text message. And, optionally, if a Numpy array is provided it prints it's shape, min, and max values.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:39
↓ 15 callersFunctionlog
Prints a text message. And, optionally, if a Numpy array is provided it prints it's shape, min, and max values.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:39
↓ 10 callersFunctiondraw_mask_on_image_array
Draws mask on an image. Args: image: uint8 numpy array with shape (img_height, img_height, 3) mask: a uint8 numpy array of shape (img_heigh
utils/visualization_utils.py:444
↓ 9 callersFunctiondraw_bounding_box_on_image_array
Adds a bounding box to an image (numpy array). Args: image: a numpy array with shape [height, width, 3]. ymin: ymin of bounding box in norm
utils/visualization_utils.py:152
↓ 9 callersFunctiondraw_keypoints_on_image_array
Draws keypoints on an image (numpy array). Args: image: a numpy array with shape [height, width, 3]. keypoints: a numpy array with shape [n
utils/visualization_utils.py:396
↓ 9 callersFunctionlog
Prints a text message. And, optionally, if a Numpy array is provided it prints it's shape, min, and max values.
mask_rcnn_counting_api/model.py:43
↓ 8 callersFunctionidentity_block
The identity_block is the block that has no conv layer at shortcut # Arguments input_tensor: input tensor kernel_size: defualt 3,
mask_rcnn_counting_api/model.py:76
↓ 8 callersFunctionidentity_block
The identity_block is the block that has no conv layer at shortcut # Arguments input_tensor: input tensor kernel_size: default 3,
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:95
↓ 8 callersFunctionidentity_block
The identity_block is the block that has no conv layer at shortcut # Arguments input_tensor: input tensor kernel_size: default 3,
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:95
↓ 8 callersMethodpredict
Prediction tensors from inputs tensor. Args: preprocessed_inputs: a [batch, 28, 28, channels] float32 tensor. true_image_shapes: int3
smurf_counter_training/legacy/trainer_test.py:78
↓ 7 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/model.py:1765
↓ 7 callersFunctioncolor_histogram_of_training_image
(img_name)
utils/color_recognition_module/color_histogram_feature_extraction.py:44
↓ 7 callersMethodtrain
Train the model. train_dataset, val_dataset: Training and validation Dataset objects. learning_rate: The learning rate to train with
mask_rcnn_counting_api/model.py:2166
↓ 5 callersFunctionapply_mask
Apply the given mask to the image.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/visualize.py:73
↓ 5 callersFunctionapply_mask
Apply the given mask to the image.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/visualize.py:73
↓ 5 callersMethoddisplay
Display Configuration values.
mask_rcnn_counting_api/config.py:162
↓ 4 callersMethod__init__
mode: Either "training" or "inference" config: A Sub-class of the Config class model_dir: Directory to save training logs and
mask_rcnn_counting_api/model.py:1752
↓ 4 callersMethod__init__
mode: Either "training" or "inference" config: A Sub-class of the Config class model_dir: Directory to save training logs and
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:1834
↓ 4 callersMethod__init__
mode: Either "training" or "inference" config: A Sub-class of the Config class model_dir: Directory to save training logs and
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:1834
↓ 4 callersFunctionapply_mask
Apply the given mask to the image.
mask_rcnn_counting_api/real_time_object_counting.py:137
↓ 4 callersFunctionapply_mask
Apply the given mask to the image.
mask_rcnn_counting_api/single_image_object_counting.py:147
↓ 4 callersFunctionconv_block
conv_block is the block that has a conv layer at shortcut # Arguments input_tensor: input tensor kernel_size: defualt 3, the kerne
mask_rcnn_counting_api/model.py:109
↓ 4 callersFunctionconv_block
conv_block is the block that has a conv layer at shortcut # Arguments input_tensor: input tensor kernel_size: default 3, the kerne
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:130
↓ 4 callersFunctionconv_block
conv_block is the block that has a conv layer at shortcut # Arguments input_tensor: input tensor kernel_size: default 3, the kerne
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:130
↓ 4 callersMethodget_anchors
Returns anchor pyramid for the given image size.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2605
↓ 4 callersMethodget_anchors
Returns anchor pyramid for the given image size.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2605
↓ 4 callersMethodload_coco
Load a subset of the COCO dataset. dataset_dir: The root directory of the COCO dataset. subset: What to load (train, val, minival, val
mask_rcnn_counting_api/coco.py:92
↓ 4 callersFunctionrandom_colors
Generate random colors. To get visually distinct colors, generate them in HSV space then convert to RGB.
mask_rcnn_counting_api/real_time_object_counting.py:124
↓ 4 callersFunctionrandom_colors
Generate random colors. To get visually distinct colors, generate them in HSV space then convert to RGB.
mask_rcnn_counting_api/single_image_object_counting.py:134
↓ 4 callersFunctionrandom_colors
Generate random colors. To get visually distinct colors, generate them in HSV space then convert to RGB.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/visualize.py:60
↓ 4 callersFunctionrandom_colors
Generate random colors. To get visually distinct colors, generate them in HSV space then convert to RGB.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/visualize.py:60
↓ 4 callersFunctionvisualize_boxes_and_labels_on_image_array_tracker
Overlay labeled boxes on an image with formatted scores and label names. This function groups boxes that correspond to the same location and crea
utils/visualization_utils.py:984
↓ 3 callersMethodcompile
Gets the model ready for training. Adds losses, regularization, and metrics. Then calls the Keras compile() function.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2161
↓ 3 callersMethodcompile
Gets the model ready for training. Adds losses, regularization, and metrics. Then calls the Keras compile() function.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2161
↓ 3 callersMethoddetect
Runs the detection pipeline. images: List of images, potentially of different sizes. Returns a list of dicts, one dict per image. Th
mask_rcnn_counting_api/model.py:2341
↓ 3 callersMethoddetect
Runs the detection pipeline. images: List of images, potentially of different sizes. Returns a list of dicts, one dict per image. Th
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2489
↓ 3 callersMethoddisplay
Display Configuration values.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/config.py:221
↓ 3 callersMethodload_weights
Modified version of the correspoding Keras function with the addition of multi-GPU support and the ability to exclude some layers from
mask_rcnn_counting_api/model.py:2003
↓ 3 callersMethodload_weights
Modified version of the corresponding Keras function with the addition of multi-GPU support and the ability to exclude some layers fro
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2103
↓ 3 callersFunctionnorm_boxes_graph
Converts boxes from pixel coordinates to normalized coordinates. boxes: [..., (y1, x1, y2, x2)] in pixel coordinates shape: [..., (height, wid
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2844
↓ 3 callersFunctionnorm_boxes_graph
Converts boxes from pixel coordinates to normalized coordinates. boxes: [..., (y1, x1, y2, x2)] in pixel coordinates shape: [..., (height, wid
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2844
↓ 3 callersFunctionparse_image_meta_graph
Parses a tensor that contains image attributes to its components. See compose_image_meta() for more details. meta: [batch, meta length] where
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2781
↓ 3 callersFunctionparse_image_meta_graph
Parses a tensor that contains image attributes to its components. See compose_image_meta() for more details. meta: [batch, meta length] where
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2781
↓ 3 callersMethodprepare
Prepares the Dataset class for use. TODO: class map is not supported yet. When done, it should handle mapping classes from diff
mask_rcnn_counting_api/utils.py:286
↓ 3 callersMethodpreprocess
Input preprocessing, resizes images to 28x28. Args: inputs: a [batch, height_in, width_in, channels] float32 tensor representing a
smurf_counter_training/legacy/trainer_test.py:60
↓ 2 callersFunctionapply_box_deltas_graph
Applies the given deltas to the given boxes. boxes: [N, 4] where each row is y1, x1, y2, x2 deltas: [N, 4] where each row is [dy, dx, log(dh),
mask_rcnn_counting_api/model.py:185
↓ 2 callersFunctionapply_box_deltas_graph
Applies the given deltas to the given boxes. boxes: [N, (y1, x1, y2, x2)] boxes to update deltas: [N, (dy, dx, log(dh), log(dw))] refinements
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:213
↓ 2 callersFunctionapply_box_deltas_graph
Applies the given deltas to the given boxes. boxes: [N, (y1, x1, y2, x2)] boxes to update deltas: [N, (dy, dx, log(dh), log(dw))] refinements
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:213
↓ 2 callersFunctionbox_intersection
(a, b)
utils/object_tracking_module/tracking_utils.py:26
↓ 2 callersFunctionbuild_fpn_mask_graph
Builds the computation graph of the mask head of Feature Pyramid Network. rois: [batch, num_rois, (y1, x1, y2, x2)] Proposal boxes in normalized
mask_rcnn_counting_api/model.py:936
↓ 2 callersFunctionbuild_fpn_mask_graph
Builds the computation graph of the mask head of Feature Pyramid Network. rois: [batch, num_rois, (y1, x1, y2, x2)] Proposal boxes in normalized
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:959
↓ 2 callersFunctionbuild_fpn_mask_graph
Builds the computation graph of the mask head of Feature Pyramid Network. rois: [batch, num_rois, (y1, x1, y2, x2)] Proposal boxes in normalized
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:959
↓ 2 callersFunctionclip_boxes_graph
boxes: [N, 4] each row is y1, x1, y2, x2 window: [4] in the form y1, x1, y2, x2
mask_rcnn_counting_api/model.py:209
↓ 2 callersFunctionclip_boxes_graph
boxes: [N, (y1, x1, y2, x2)] window: [4] in the form y1, x1, y2, x2
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:237
↓ 2 callersFunctionclip_boxes_graph
boxes: [N, (y1, x1, y2, x2)] window: [4] in the form y1, x1, y2, x2
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:237
↓ 2 callersFunctioncolor_splash
Apply color splash effect. image: RGB image [height, width, 3] mask: instance segmentation mask [height, width, instance count] Returns r
mask_rcnn_counting_api/spaghetti_counter_training/custom.py:181
↓ 2 callersFunctioncolor_splash
Apply color splash effect. image: RGB image [height, width, 3] mask: instance segmentation mask [height, width, instance count] Returns r
mask_rcnn_counting_api/spaghetti_counter_training/training/custom.py:181
↓ 2 callersMethodcompile
Gets the model ready for training. Adds losses, regularization, and metrics. Then calls the Keras compile() function.
mask_rcnn_counting_api/model.py:2055
↓ 2 callersFunctioncompose_image_meta
Takes attributes of an image and puts them in one 1D array. image_id: An int ID of the image. Useful for debugging. image_shape: [height, wid
mask_rcnn_counting_api/model.py:2486
↓ 2 callersFunctioncompose_image_meta
Takes attributes of an image and puts them in one 1D array. image_id: An int ID of the image. Useful for debugging. original_image_shape: [H,
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2732
↓ 2 callersFunctioncompose_image_meta
Takes attributes of an image and puts them in one 1D array. image_id: An int ID of the image. Useful for debugging. original_image_shape: [H,
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2732
↓ 2 callersFunctioncompute_backbone_shapes
Computes the width and height of each stage of the backbone network. Returns: [N, (height, width)]. Where N is the number of stages
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:71
↓ 2 callersFunctioncompute_backbone_shapes
Computes the width and height of each stage of the backbone network. Returns: [N, (height, width)]. Where N is the number of stages
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:71
↓ 2 callersFunctioncompute_iou
Calculates IoU of the given box with the array of the given boxes. box: 1D vector [y1, x1, y2, x2] boxes: [boxes_count, (y1, x1, y2, x2)]
mask_rcnn_counting_api/utils.py:56
↓ 2 callersFunctioncompute_iou
Calculates IoU of the given box with the array of the given boxes. box: 1D vector [y1, x1, y2, x2] boxes: [boxes_count, (y1, x1, y2, x2)]
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/utils.py:58
↓ 2 callersFunctioncompute_iou
Calculates IoU of the given box with the array of the given boxes. box: 1D vector [y1, x1, y2, x2] boxes: [boxes_count, (y1, x1, y2, x2)]
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/utils.py:58
↓ 2 callersFunctiondata_generator
A generator that returns images and corresponding target class ids, bounding box deltas, and masks. dataset: The Dataset object to pick data
mask_rcnn_counting_api/model.py:1571
↓ 2 callersFunctiondata_generator
A generator that returns images and corresponding target class ids, bounding box deltas, and masks. dataset: The Dataset object to pick data
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:1638
↓ 2 callersFunctiondata_generator
A generator that returns images and corresponding target class ids, bounding box deltas, and masks. dataset: The Dataset object to pick data
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:1638
↓ 2 callersMethoddetect
Runs the detection pipeline. images: List of images, potentially of different sizes. Returns a list of dicts, one dict per image. Th
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2489
↓ 2 callersMethoddisplay
Display Configuration values.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/config.py:221
↓ 2 callersFunctiondraw_bounding_box_on_image
Adds a bounding box to an image. Each string in display_str_list is displayed on a separate line above the bounding box in black text on a rectan
utils/visualization_utils.py:184
↓ 2 callersFunctionfpn_classifier_graph
Builds the computation graph of the feature pyramid network classifier and regressor heads. rois: [batch, num_rois, (y1, x1, y2, x2)] Proposa
mask_rcnn_counting_api/model.py:882
↓ 2 callersFunctionfpn_classifier_graph
Builds the computation graph of the feature pyramid network classifier and regressor heads. rois: [batch, num_rois, (y1, x1, y2, x2)] Proposa
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:903
↓ 2 callersFunctionfpn_classifier_graph
Builds the computation graph of the feature pyramid network classifier and regressor heads. rois: [batch, num_rois, (y1, x1, y2, x2)] Proposa
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:903
↓ 2 callersMethodget_trainable_layers
Returns a list of layers that have weights.
mask_rcnn_counting_api/model.py:2420
↓ 2 callersMethodload_custom
Load a subset of the Balloon dataset. dataset_dir: Root directory of the dataset. subset: Subset to load: train or val
mask_rcnn_counting_api/spaghetti_counter_training/custom.py:66
↓ 2 callersMethodload_custom
Load a subset of the Balloon dataset. dataset_dir: Root directory of the dataset. subset: Subset to load: train or val
mask_rcnn_counting_api/spaghetti_counter_training/training/custom.py:66
↓ 2 callersMethodload_image
Load the specified image and return a [H,W,3] Numpy array.
mask_rcnn_counting_api/utils.py:355
↓ 2 callersFunctionload_image_gt
Load and return ground truth data for an image (image, mask, bounding boxes). augment: (deprecated. Use augmentation instead). If true, apply ran
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:1193
↓ 2 callersFunctionload_image_gt
Load and return ground truth data for an image (image, mask, bounding boxes). augment: (deprecated. Use augmentation instead). If true, apply ran
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:1193
↓ 2 callersFunctionload_labelmap
Loads label map proto. Args: path: path to StringIntLabelMap proto text file. Returns: a StringIntLabelMapProto
utils/label_map_util.py:108
↓ 2 callersMethodload_weights
Modified version of the corresponding Keras function with the addition of multi-GPU support and the ability to exclude some layers fro
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2103
↓ 2 callersMethodloss
Compute scalar loss tensors with respect to provided groundtruth. Calling this function requires that groundtruth tensors have been provided
smurf_counter_training/legacy/trainer_test.py:125
↓ 2 callersFunctionmold_image
Takes RGB images with 0-255 values and subtraces the mean pixel and converts it to float. Expects image colors in RGB order.
mask_rcnn_counting_api/model.py:2519
↓ 2 callersFunctionmold_image
Expects an RGB image (or array of images) and subtracts the mean pixel and converts it to float. Expects image colors in RGB order.
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2805
↓ 2 callersFunctionmold_image
Expects an RGB image (or array of images) and subtracts the mean pixel and converts it to float. Expects image colors in RGB order.
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2805
↓ 2 callersMethodmold_inputs
Takes a list of images and modifies them to the format expected as an input to the neural network. images: List of image matricies [he
mask_rcnn_counting_api/model.py:2242
↓ 2 callersMethodmold_inputs
Takes a list of images and modifies them to the format expected as an input to the neural network. images: List of image matrices [hei
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:2385
↓ 2 callersMethodmold_inputs
Takes a list of images and modifies them to the format expected as an input to the neural network. images: List of image matrices [hei
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:2385
↓ 2 callersFunctionoverlap
(x1,w1,x2,w2)
utils/object_tracking_module/tracking_utils.py:17
↓ 2 callersFunctionoverlaps_graph
Computes IoU overlaps between two sets of boxes. boxes1, boxes2: [N, (y1, x1, y2, x2)].
mask_rcnn_counting_api/model.py:431
↓ 2 callersFunctionoverlaps_graph
Computes IoU overlaps between two sets of boxes. boxes1, boxes2: [N, (y1, x1, y2, x2)].
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/model.py:456
↓ 2 callersFunctionoverlaps_graph
Computes IoU overlaps between two sets of boxes. boxes1, boxes2: [N, (y1, x1, y2, x2)].
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/model.py:456
↓ 2 callersFunctionparse_image_meta_graph
Parses a tensor that contains image attributes to its components. See compose_image_meta() for more details. meta: [batch, meta length] where
mask_rcnn_counting_api/model.py:2506
↓ 2 callersMethodpredict_only
(self)
utils/object_tracking_module/tracking_layer.py:73
↓ 2 callersMethodprepare
Prepares the Dataset class for use. TODO: class map is not supported yet. When done, it should handle mapping classes from diff
mask_rcnn_counting_api/spaghetti_counter_training/mrcnn/utils.py:292
↓ 2 callersMethodprepare
Prepares the Dataset class for use. TODO: class map is not supported yet. When done, it should handle mapping classes from diff
mask_rcnn_counting_api/spaghetti_counter_training/training/mrcnn/utils.py:292
↓ 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/model.py:2132
↓ 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/mrcnn/model.py:2246
next →1–100 of 517, ranked by callers