MCPcopy Create free account

hub / github.com/AIChallenger/AI_Challenger_2018 / functions

Functions1,075 in github.com/AIChallenger/AI_Challenger_2018

Methodadd_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. Args: image_id: A unique string/integer identifier for the image. grou
Baselines/autonomous_driving_perception208_baseline/detection/utils/object_detection_evaluation.py:516
Methodadd_single_ground_truth_image_info
Adds groundtruth for a single image to be used for evaluation. Args: image_key: A unique string/integer identifier for the image. gro
Baselines/autonomous_driving_perception208_baseline/detection/utils/object_detection_evaluation.py:652
Functionadd_softmax_cross_entropy_loss_for_each_scale
Adds softmax cross entropy loss for logits of each scale. Args: scales_to_logits: A map from logits names for different scales to logits.
Baselines/autonomous_driving_perception208_baseline/segmentation/utils/train_utils.py:25
Functionarea
Computes area of masks. Args: box_mask_list: np_box_mask_list.BoxMaskList holding N boxes and masks Returns: a numpy array with shape [N
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_mask_list_ops.py:53
Functionassert_shape_equal
Asserts that shape_a and shape_b are equal. If the shapes are static, raises a ValueError when the shapes mismatch. If the shapes are dynamic,
Baselines/autonomous_driving_perception208_baseline/detection/utils/shape_utils.py:253
Functionassert_shape_equal_along_first_dimension
Asserts that shape_a and shape_b are the same along the 0th-dimension. If the shapes are static, raises a ValueError when the shapes mismatch.
Baselines/autonomous_driving_perception208_baseline/detection/utils/shape_utils.py:282
Functionavg_pool_3x3
(x)
Baselines/plant_disease_recognition2018_baseline/network.py:26
Functionbottleneck
Bottleneck residual unit variant with BN after convolutions. This is the original residual unit proposed in [1]. See Fig. 1(a) of [2] for its def
Baselines/autonomous_driving_perception208_baseline/segmentation/core/resnet_v1_beta.py:40
Functionbytes_feature
(value)
Baselines/autonomous_driving_perception208_baseline/detection/utils/dataset_util.py:29
Functionbytes_list_feature
(value)
Baselines/autonomous_driving_perception208_baseline/detection/utils/dataset_util.py:33
Functioncdf_plot
Numpy function to plot CDF.
Baselines/autonomous_driving_perception208_baseline/detection/utils/visualization_utils.py:686
Functionchange_coordinate_frame
Change coordinate frame of the boxlist to be relative to window's frame. Given a window of the form [ymin, xmin, ymax, xmax], changes bounding bo
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_list_ops.py:506
Functioncheck_min_image_dim
Checks that the image width/height are greater than some number. This function is used to check that the width and height of an image are above a
Baselines/autonomous_driving_perception208_baseline/detection/utils/shape_utils.py:214
Methodclear
Clears the state to prepare for a fresh evaluation.
Baselines/autonomous_driving_perception208_baseline/detection/utils/object_detection_evaluation.py:303
Methodclear
Clears stored data.
Baselines/autonomous_driving_perception208_baseline/detection/utils/object_detection_evaluation.py:589
Methodclear_detections
(self)
Baselines/autonomous_driving_perception208_baseline/detection/utils/object_detection_evaluation.py:649
Functionclip_to_window
Clip bounding boxes to a window. This op clips input bounding boxes (represented by bounding box corners) to a window, optionally filtering out b
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_list_ops.py:334
Methodcode_size
(self)
Baselines/autonomous_driving_perception208_baseline/detection/utils/test_utils.py:32
Functioncombined_static_and_dynamic_shape
Returns a list containing static and dynamic values for the dimensions. Returns a list of static and dynamic values for shape dimensions. This is
Baselines/autonomous_driving_perception208_baseline/detection/utils/shape_utils.py:118
Functioncompute_average_precision
Compute Average Precision according to the definition in VOCdevkit. Precision is modified to ensure that it does not decrease as recall decrease.
Baselines/autonomous_driving_perception208_baseline/detection/utils/metrics.py:69
Functioncompute_cor_loc
Compute CorLoc according to the definition in the following paper. https://www.robots.ox.ac.uk/~vgg/rg/papers/deselaers-eccv10.pdf Returns nans
Baselines/autonomous_driving_perception208_baseline/detection/utils/metrics.py:121
Functioncompute_median_rank_at_k
Computes MedianRank@k, where k is the top-scoring labels. Args: tp_fp_list: a list of numpy arrays; each numpy array corresponds to the all
Baselines/autonomous_driving_perception208_baseline/detection/utils/metrics.py:145
Functioncompute_precision_recall
Compute precision and recall. Args: scores: A float numpy array representing detection score labels: A float numpy array representing weigh
Baselines/autonomous_driving_perception208_baseline/detection/utils/metrics.py:21
Functioncompute_recall_at_k
Computes Recall@k, MedianRank@k, where k is the top-scoring labels. Args: tp_fp_list: a list of numpy arrays; each numpy array corresponds to t
Baselines/autonomous_driving_perception208_baseline/detection/utils/metrics.py:168
Functionconcatenate
Concatenate list of box_mask_lists. This op concatenates a list of input box_mask_lists into a larger box_mask_list. It also handles concatena
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_mask_list_ops.py:340
Functionconvert_drivable_rgb
(label_path)
Baselines/autonomous_driving_perception208_baseline/detection/bdd_data/show_labels.py:147
Functionconvert_drivable_rgb
(label_path)
Baselines/autonomous_driving_perception208_baseline/segmentation/bdd_data/show_labels.py:147
Functionconvert_instance_rgb
(label_path)
Baselines/autonomous_driving_perception208_baseline/detection/bdd_data/show_labels.py:118
Functionconvert_instance_rgb
(label_path)
Baselines/autonomous_driving_perception208_baseline/segmentation/bdd_data/show_labels.py:118
Functioncosine_decay_with_warmup
Cosine decay schedule with warm up period. Cosine annealing learning rate as described in: Loshchilov and Hutter, SGDR: Stochastic Gradient Des
Baselines/autonomous_driving_perception208_baseline/detection/utils/learning_schedules.py:66
Functioncreate_category_index_from_labelmap
Reads a label map and returns a category index. Args: label_map_path: Path to `StringIntLabelMap` proto text file. Returns: A category i
Baselines/autonomous_driving_perception208_baseline/detection/utils/label_map_util.py:162
Functioncreate_class_agnostic_category_index
Creates a category index with a single `object` class.
Baselines/autonomous_driving_perception208_baseline/detection/utils/label_map_util.py:179
Functioncreate_diagonal_gradient_image
Creates pyramid image. Useful for testing. For example, pyramid_image(5, 6, 1) looks like: # [[[ 5. 4. 3. 2. 1. 0.] # [ 6. 5. 4. 3.
Baselines/autonomous_driving_perception208_baseline/detection/utils/test_utils.py:86
Functioncreate_pipeline_proto_from_configs
Creates a pipeline_pb2.TrainEvalPipelineConfig from configs dictionary. This function performs the inverse operation of create_configs_from_pipel
Baselines/autonomous_driving_perception208_baseline/detection/utils/config_util.py:136
Functioncreate_random_boxes
Creates random bounding boxes of specific maximum height and width. Args: num_boxes: number of boxes. max_height: maximum height of boxes.
Baselines/autonomous_driving_perception208_baseline/detection/utils/test_utils.py:116
Functioncut
(sentence)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/finalseg/__init__.py:85
Methoddel_word
Convenient function for deleting a word.
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/__init__.py:415
Functiondense_to_sparse_boxes
Converts bounding boxes from dense to sparse form. Args: dense_locations: a [max_num_boxes, 4] tensor in which only the first k rows are
Baselines/autonomous_driving_perception208_baseline/detection/utils/ops.py:247
Functiondisable_parallel
()
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/__init__.py:589
Methoddownload_annotation_data
(fold_type=None, version=None, force_download=False)
Baselines/autonomous_driving_perception208_baseline/detection/convert_to_tfrecord/deepdrive_dataset/deepdrive_dataset_download.py:57
Methoddownload_image_data
(fold_type=None, version=None, force_download=False)
Baselines/autonomous_driving_perception208_baseline/detection/convert_to_tfrecord/deepdrive_dataset/deepdrive_dataset_download.py:53
Functiondraw_bounding_boxes_on_image_array
Draws bounding boxes on image (numpy array). Args: image: a numpy array object. boxes: a 2 dimensional numpy array of [N, 4]: (ymin, xmin,
Baselines/autonomous_driving_perception208_baseline/detection/utils/visualization_utils.py:205
Functiondraw_boxes
Draws boxes on image.
Baselines/autonomous_driving_perception208_baseline/detection/utils/visualization_utils.py:379
Functiondraw_side_by_side_evaluation_image
Creates a side-by-side image with detections and groundtruth. Bounding boxes (and instance masks, if available) are visualized on both subimages.
Baselines/autonomous_driving_perception208_baseline/detection/utils/visualization_utils.py:389
Functiondump_data
()
Baselines/weather_forecasting_baseline/super_calculated_model.py:13
Functionenable_parallel
Change the module's `cut` and `cut_for_search` functions to the parallel version. Note that this only works using dt, custom Tokenizer
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/__init__.py:566
Functionencode_image_array_as_png_str
Encodes a numpy array into a PNG string. Args: image: a numpy array with shape [height, width, 3]. Returns: PNG encoded image string.
Baselines/autonomous_driving_perception208_baseline/detection/utils/visualization_utils.py:79
Methodevaluate
Computes evaluation result. Returns: A named tuple with the following fields - average_precision: a float number corresponding to a
Baselines/autonomous_driving_perception208_baseline/detection/utils/vrd_evaluation.py:525
Methodevaluate
Compute evaluation result. Returns: A dictionary of metrics with the following fields - 1. summary_metrics: 'Precision/mAP@<
Baselines/autonomous_driving_perception208_baseline/detection/utils/object_detection_evaluation.py:261
Methodevaluate
Compute evaluation result. Returns: A named tuple with the following fields - average_precision: float numpy array of average preci
Baselines/autonomous_driving_perception208_baseline/detection/utils/object_detection_evaluation.py:807
Functionexponential_decay_with_burnin
Exponential decay schedule with burn-in period. In this schedule, learning rate is fixed at burnin_learning_rate for a fixed period, before trans
Baselines/autonomous_driving_perception208_baseline/detection/utils/learning_schedules.py:21
Functionextract_features
Extracts features by the particular model_variant. Args: images: A tensor of size [batch, height, width, channels]. output_stride: The rati
Baselines/autonomous_driving_perception208_baseline/segmentation/core/feature_extractor.py:200
Methodextract_tags
(self, *args, **kwargs)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/analyse/tfidf.py:31
Methodextract_tags
Extract keywords from sentence using TF-IDF algorithm. Parameter: - topK: return how many top keywords. `None` for all po
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/analyse/tfidf.py:75
Functionfilter_groundtruth_with_crowd_boxes
Filters out groundtruth with boxes corresponding to crowd. Args: tensor_dict: a dictionary of following groundtruth tensors - fields.Inpu
Baselines/autonomous_driving_perception208_baseline/detection/utils/ops.py:413
Functionfilter_groundtruth_with_nan_box_coordinates
Filters out groundtruth with no bounding boxes. Args: tensor_dict: a dictionary of following groundtruth tensors - fields.InputDataFields
Baselines/autonomous_driving_perception208_baseline/detection/utils/ops.py:438
Functionfirst_rows_close_as_set
Checks if first K entries of two lists are close, up to permutation. Inputs to this assert are lists of items which can be compared via numpy.all
Baselines/autonomous_driving_perception208_baseline/detection/utils/test_utils.py:143
Functionfixed_padding
Pads the input along the spatial dimensions independently of input size. Args: inputs: A tensor of size [batch, height_in, width_in, channels].
Baselines/autonomous_driving_perception208_baseline/detection/utils/ops.py:119
Functionflip
()
Baselines/autonomous_driving_perception208_baseline/segmentation/core/preprocess_utils.py:45
Functionflip_dim
Randomly flips a dimension of the given tensor. The decision to randomly flip the `Tensors` is made together. In other words, all or none of the
Baselines/autonomous_driving_perception208_baseline/segmentation/core/preprocess_utils.py:20
Functionfloat_list_feature
(value)
Baselines/autonomous_driving_perception208_baseline/detection/utils/dataset_util.py:37
Methodfn
(input_tensor)
Baselines/autonomous_driving_perception208_baseline/detection/utils/shape_utils_test.py:130
Methodforward
(self, inputs)
Baselines/opinion_questions_machine_reading_comprehension2018_baseline/model.py:54
Functionfreeze_gradients_matching_regex
Freeze gradients whose variable names match a regular expression. Args: grads_and_vars: A list of gradient to variable pairs (tuples). rege
Baselines/autonomous_driving_perception208_baseline/detection/utils/variables_helper.py:79
Functionget
Gets the dataset split for semantic segmentation. This functions gets the dataset split for semantic segmentation. In particular, it is a wrapper
Baselines/autonomous_driving_perception208_baseline/segmentation/utils/input_generator.py:62
Functionget_ade20k_name
()
Baselines/autonomous_driving_perception208_baseline/segmentation/utils/get_dataset_colormap.py:329
Functionget_batch_size
Returns batch size from the tensor shape. Args: tensor_shape: A rank 4 TensorShape. Returns: An integer representing the batch size of t
Baselines/autonomous_driving_perception208_baseline/detection/utils/static_shape.py:22
Functionget_cityscapes_dataset_name
()
Baselines/autonomous_driving_perception208_baseline/segmentation/datasets/segmentation_dataset.py:131
Functionget_cityscapes_name
()
Baselines/autonomous_driving_perception208_baseline/segmentation/utils/get_dataset_colormap.py:333
Functionget_configs_from_multiple_files
Reads training configuration from multiple config files. Args: model_config_path: Path to model_pb2.DetectionModel. train_config_path: Path
Baselines/autonomous_driving_perception208_baseline/detection/utils/config_util.py:177
Functionget_configs_from_pipeline_file
Reads config from a file containing pipeline_pb2.TrainEvalPipelineConfig. Args: pipeline_config_path: Path to pipeline_pb2.TrainEvalPipelineCon
Baselines/autonomous_driving_perception208_baseline/detection/utils/config_util.py:79
Functionget_dataset
Gets an instance of slim Dataset. Args: dataset_name: Dataset name. split_name: A train/val Split name. dataset_dir: The directory of t
Baselines/autonomous_driving_perception208_baseline/segmentation/datasets/segmentation_dataset.py:135
Functionget_depth
Returns depth from the tensor shape. Args: tensor_shape: A rank 4 TensorShape. Returns: An integer representing the depth of the tensor.
Baselines/autonomous_driving_perception208_baseline/detection/utils/static_shape.py:61
Functionget_extra_layer_scopes
Gets the scopes for extra layers. Args: last_layers_contain_logits_only: Boolean, True if only consider logits as the last layer (i.e., exc
Baselines/autonomous_driving_perception208_baseline/segmentation/model.py:67
Methodget_folders
(self)
Baselines/autonomous_driving_perception208_baseline/detection/convert_to_tfrecord/deepdrive_dataset/deepdrive_dataset_reader.py:24
Functionget_height
Returns height from the tensor shape. Args: tensor_shape: A rank 4 TensorShape. Returns: An integer representing the height of the tenso
Baselines/autonomous_driving_perception208_baseline/detection/utils/static_shape.py:35
Functionget_image_resizer_config
Returns the image resizer config from a model config. Args: model_config: A model_pb2.DetectionModel. Returns: An image_resizer_pb2.Imag
Baselines/autonomous_driving_perception208_baseline/detection/utils/config_util.py:32
Functionget_label_map_dict
Reads a label map and returns a dictionary of label names to id. Args: label_map_path: path to label_map. use_display_name: whether to use
Baselines/autonomous_driving_perception208_baseline/detection/utils/label_map_util.py:142
Functionget_mapillary_vistas_name
()
Baselines/autonomous_driving_perception208_baseline/segmentation/utils/get_dataset_colormap.py:337
Functionget_max_label_map_index
Get maximum index in label map. Args: label_map: a StringIntLabelMapProto Returns: an integer
Baselines/autonomous_driving_perception208_baseline/detection/utils/label_map_util.py:61
Functionget_model_gradient_multipliers
Gets the gradient multipliers. The gradient multipliers will adjust the learning rates for model variables. For the task of semantic segmentation
Baselines/autonomous_driving_perception208_baseline/segmentation/utils/train_utils.py:129
Functionget_model_init_fn
Gets the function initializing model variables from a checkpoint. Args: train_logdir: Log directory for training. tf_initial_checkpoint: Te
Baselines/autonomous_driving_perception208_baseline/segmentation/utils/train_utils.py:87
Functionget_model_learning_rate
Gets model's learning rate. Computes the model's learning rate for different learning policy. Right now, only "step" and "poly" are supported.
Baselines/autonomous_driving_perception208_baseline/segmentation/utils/train_utils.py:164
Functionget_next
(config)
Baselines/autonomous_driving_perception208_baseline/detection/train.py:119
Functionget_number_of_classes
Returns the number of classes for a detection model. Args: model_config: A model_pb2.DetectionModel. Returns: Number of classes. Rais
Baselines/autonomous_driving_perception208_baseline/detection/utils/config_util.py:236
Functionget_pascal_name
()
Baselines/autonomous_driving_perception208_baseline/segmentation/utils/get_dataset_colormap.py:341
Functionget_random_scale
Gets a random scale value. Args: min_scale_factor: Minimum scale value. max_scale_factor: Maximum scale value. step_size: The step size
Baselines/autonomous_driving_perception208_baseline/segmentation/core/preprocess_utils.py:252
Functionget_spatial_image_size
Returns expected spatial size of the output image from a given config. Args: image_resizer_config: An image_resizer_pb2.ImageResizer. Return
Baselines/autonomous_driving_perception208_baseline/detection/utils/config_util.py:53
Functionget_top_states
(t_state_v, K=4)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/posseg/viterbi.py:10
Functionget_variables_available_in_checkpoint
Returns the subset of variables available in the checkpoint. Inspects given checkpoint and returns the subset of variables that are available in
Baselines/autonomous_driving_perception208_baseline/detection/utils/variables_helper.py:99
Functionget_width
Returns width from the tensor shape. Args: tensor_shape: A rank 4 TensorShape. Returns: An integer representing the width of the tensor.
Baselines/autonomous_driving_perception208_baseline/detection/utils/static_shape.py:48
Methodgraph_fn
(global_step)
Baselines/autonomous_driving_perception208_baseline/detection/utils/learning_schedules_test.py:27
Methodgraph_fn
(inputs)
Baselines/autonomous_driving_perception208_baseline/detection/utils/ops_test.py:1189
Methodgraph_fn
(params, indices)
Baselines/autonomous_driving_perception208_baseline/detection/utils/ops_test.py:1206
Methodgraph_fn
(image, boxes)
Baselines/autonomous_driving_perception208_baseline/detection/utils/ops_test.py:1269
Functionhist_plot
Numpy function to plot hist.
Baselines/autonomous_driving_perception208_baseline/detection/utils/visualization_utils.py:718
Functionimage_seg_to_tfexample
Converts one image/segmentation pair to tf example. Args: image_data: string of image data. filename: image filename. height: image hei
Baselines/autonomous_driving_perception208_baseline/segmentation/datasets/build_data.py:136
Functionimg_resize
(imgpath, img_size)
Baselines/plant_disease_recognition2018_baseline/plant_input.py:61
Functionindices_to_dense_vector
Creates dense vector with indices set to specific value and rest to zeros. This function exists because it is unclear if it is safe to use tf.s
Baselines/autonomous_driving_perception208_baseline/detection/utils/ops.py:278
Functioninference
(features, one_hot_labels)
Baselines/plant_disease_recognition2018_baseline/network.py:30
← previousnext →501–600 of 1,075, ranked by callers