MCPcopy Create free account

hub / github.com/AIChallenger/AI_Challenger_2018 / functions

Functions1,075 in github.com/AIChallenger/AI_Challenger_2018

↓ 136 callersMethodrun
Runs inference on a single image. Args: image: A PIL.Image object, raw input image. Returns: seg_map: Segmenta
Baselines/autonomous_driving_perception208_baseline/segmentation/inference/inference.py:41
↓ 94 callersMethodget
Convenience function for accesssing box coordinates. Returns: a numpy array of shape [N, 4] representing box corners
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_list.py:82
↓ 39 callersMethodadd_field
Add data to a specified field. Args: field: a string parameter used to speficy a related field to be accessed. field_data: a numpy ar
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_list.py:65
↓ 38 callersMethodget_field
Accesses data associated with the specified field in the box collection. Args: field: a string parameter used to speficy a related field to
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_list.py:90
↓ 29 callersMethodadd_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/vrd_evaluation.py:116
↓ 28 callersFunction_write_config
Writes a config object to disk.
Baselines/autonomous_driving_perception208_baseline/detection/utils/config_util_test.py:32
↓ 24 callersMethodsave
(self, speed=0.0, accuracy=0.0, acc_time=0.0)
Evaluation/short_video_real_time_classification_eval/data/run.py:90
↓ 24 callersMethodwrite
(self)
Baselines/autonomous_driving_perception208_baseline/detection/bdd_data/show_labels.py:236
↓ 21 callersMethod_compute_tp_fp_for_single_class
Labels boxes detected with the same class from the same image as tp/fp. Args: detected_boxes: A numpy array of shape [N, 4] representing de
Baselines/autonomous_driving_perception208_baseline/detection/utils/per_image_evaluation.py:393
↓ 20 callersFunctionxception_block
Helper function for creating a Xception block. Args: scope: The scope of the block. depth_list: The depth of the bottleneck layer for each
Baselines/autonomous_driving_perception208_baseline/segmentation/core/xception.py:456
↓ 18 callersMethodexecute
Constructs the graph, creates a test session and returns the results. The graph is executed either on TPU or CPU based on the `tpu_test` flag.
Baselines/autonomous_driving_perception208_baseline/detection/utils/test_case.py:81
↓ 17 callersFunctioncreate_test_input
Create test input tensor.
Baselines/autonomous_driving_perception208_baseline/segmentation/core/xception_test.py:27
↓ 17 callersMethodhas_field
(self, field)
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_list.py:62
↓ 14 callersMethodnum_boxes
Return number of boxes held in collections.
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_list.py:54
↓ 12 callersFunctioncreate_test_input
Create test input tensor.
Baselines/autonomous_driving_perception208_baseline/segmentation/core/resnet_v1_beta_test.py:33
↓ 12 callersFunctionresnet_v1_beta_block
Helper function for creating a resnet_v1 beta variant bottleneck block. Args: scope: The scope of the block. base_depth: The depth of the b
Baselines/autonomous_driving_perception208_baseline/segmentation/core/resnet_v1_beta.py:208
↓ 12 callersMethodwrite
(self)
Baselines/autonomous_driving_perception208_baseline/segmentation/bdd_data/show_labels.py:236
↓ 11 callersMethodadd_single_detected_image_info
Adds detections for a single image to be used for evaluation. Args: image_id: A unique string/integer identifier for the image. detec
Baselines/autonomous_driving_perception208_baseline/detection/utils/vrd_evaluation.py:163
↓ 11 callersMethodget_extra_fields
Return all non-box fields.
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_list.py:58
↓ 11 callersMethodget_masks
Convenience function for accessing masks. Returns: a numpy array of shape [N, height, width] representing masks
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_mask_list.py:56
↓ 10 callersMethod_resnet_small
A shallow and thin ResNet v1 for faster tests.
Baselines/autonomous_driving_perception208_baseline/segmentation/core/resnet_v1_beta_test.py:50
↓ 10 callersMethod_xception_small
A shallow and thin Xception for faster tests.
Baselines/autonomous_driving_perception208_baseline/segmentation/core/xception_test.py:141
↓ 10 callersMethodcut
The main function that segments an entire sentence that contains Chinese characters into seperated words. Parameter:
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/__init__.py:272
↓ 10 callersMethodencode
(self, arg)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/posseg/__init__.py:74
↓ 10 callersMethodevaluate
Compute evaluation result. Args: relationships: A dictionary of numerical label-text label mapping; if specified, returns per-relat
Baselines/autonomous_driving_perception208_baseline/detection/utils/vrd_evaluation.py:214
↓ 10 callersFunctionscale_dimension
Scales the input dimension. Args: dim: Input dimension (a scalar or a scalar Tensor). scale: The amount of scaling applied to the input.
Baselines/autonomous_driving_perception208_baseline/segmentation/model.py:189
↓ 9 callersFunctionbytes_feature
(value)
Baselines/autonomous_driving_perception208_baseline/detection/convert_to_tfrecord/deepdrive_dataset/tf_features.py:10
↓ 8 callersMethodclear
Clears the state to prepare for a fresh evaluation.
Baselines/autonomous_driving_perception208_baseline/detection/utils/vrd_evaluation.py:266
↓ 8 callersMethodname_scope
(self)
Baselines/autonomous_driving_perception208_baseline/detection/utils/test_utils.py:68
↓ 8 callersMethodrank
(self)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/analyse/textrank.py:24
↓ 7 callersMethod__init__
Constructor. Args: categories: A list of dicts, each of which has the following keys - 'id': (required) an integer id uniquely iden
Baselines/autonomous_driving_perception208_baseline/detection/utils/object_detection_evaluation.py:61
↓ 7 callersFunctiongather
Gather boxes from BoxList according to indices and return new BoxList. By default, gather returns boxes corresponding to the input index list, as
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_list_ops.py:95
↓ 7 callersFunctionstrdecode
(sentence)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/_compat.py:34
↓ 6 callersMethodcreate_colorful_test_image
This function creates an image that can be used to test vis functions. It makes an image composed of four colored rectangles. Returns:
Baselines/autonomous_driving_perception208_baseline/detection/utils/visualization_utils_test.py:31
↓ 6 callersFunctionint64_feature
(value)
Baselines/autonomous_driving_perception208_baseline/detection/convert_to_tfrecord/deepdrive_dataset/tf_features.py:4
↓ 6 callersFunctionpadding
(sequence, pads=0, max_len=None, dtype='int32', return_matrix_for_size=False)
Baselines/opinion_questions_machine_reading_comprehension2018_baseline/utils.py:25
↓ 6 callersMethodread_image_dims
Reads the image dimensions. Args: image_data: string of image data. Returns: image_height and image_width.
Baselines/autonomous_driving_perception208_baseline/segmentation/datasets/build_data.py:73
↓ 6 callersFunctionrmse
(a, b)
Evaluation/weather_forecasting2018_eval/weather_forecasting2018_eval.py:45
↓ 5 callersFunction_bytes_list_feature
Returns a TF-Feature of bytes. Args: values: A string. Returns: A TF-Feature.
Baselines/autonomous_driving_perception208_baseline/segmentation/datasets/build_data.py:120
↓ 5 callersMethod_create_variables
(self)
Baselines/autonomous_driving_perception208_baseline/detection/utils/variables_helper_test.py:26
↓ 5 callersFunctionbias_variable
(shape, bais=0.1)
Baselines/plant_disease_recognition2018_baseline/network.py:9
↓ 5 callersMethodcheck_initialized
(self)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/__init__.py:166
↓ 5 callersMethodcut
(self, sentence, HMM=True)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/posseg/__init__.py:248
↓ 5 callersFunctionfloat_feature
(value)
Baselines/autonomous_driving_perception208_baseline/detection/convert_to_tfrecord/deepdrive_dataset/tf_features.py:16
↓ 5 callersMethodget_DAG
(self, sentence)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/__init__.py:178
↓ 5 callersFunctionweight_variable
(shape, stddev=0.1)
Baselines/plant_disease_recognition2018_baseline/network.py:4
↓ 4 callersFunctionaic_fundus_lesion_classification
Classification task auc metrics. :param ground_truth: numpy matrix, (num_samples, 3) :param prediction: numpy matrix, (num_samples, 3)
Evaluation/fundus_lesion2018_eval/fundus_lesion2018_eval.py:72
↓ 4 callersFunctionaic_fundus_lesion_segmentation
Detection task auc metrics. :param ground_truth: numpy matrix, (num_samples, 1024, 512) :param prediction: numpy matrix, (num_samples, 10
Evaluation/fundus_lesion2018_eval/fundus_lesion2018_eval.py:106
↓ 4 callersFunctionbox_list_to_box_mask_list
Converts a BoxList containing 'masks' into a BoxMaskList. Args: boxlist: An np_box_list.BoxList object. Returns: An np_box_mask_list.Box
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_mask_list_ops.py:29
↓ 4 callersMethodcalc
(self, sentence, DAG, route)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/__init__.py:170
↓ 4 callersMethodfit
(self, x, y)
Baselines/sentiment_analysis2018_baseline/model.py:24
↓ 4 callersFunctiongather
Gather boxes from np_box_mask_list.BoxMaskList according to indices. By default, gather returns boxes corresponding to the input index list, as w
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_mask_list_ops.py:110
↓ 4 callersMethodpoly2patch
(self, poly2d, closed=False, alpha=1., color=None)
Baselines/autonomous_driving_perception208_baseline/detection/bdd_data/show_labels.py:351
↓ 4 callersMethodpoly2patch
(self, poly2d, closed=False, alpha=1., color=None)
Baselines/autonomous_driving_perception208_baseline/segmentation/bdd_data/show_labels.py:351
↓ 4 callersMethodpredict
(self, x)
Baselines/sentiment_analysis2018_baseline/model.py:28
↓ 4 callersFunctionresnet_v1_beta
Generator for v1 ResNet models (beta variant). This function generates a family of modified ResNet v1 models. In particular, the first original 7
Baselines/autonomous_driving_perception208_baseline/segmentation/core/resnet_v1_beta.py:116
↓ 4 callersFunctionvisualize_boxes_and_labels_on_image_array
Overlay labeled boxes on an image with formatted scores and label names. This function groups boxes that correspond to the same location and crea
Baselines/autonomous_driving_perception208_baseline/detection/utils/visualization_utils.py:541
↓ 3 callersMethod__cut_internal
(self, sentence, HMM=True)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/posseg/__init__.py:215
↓ 3 callersMethod__unicode__
(self)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/posseg/__init__.py:50
↓ 3 callersMethod_assertOptimizerWithNewLearningRate
Asserts successful updating of all learning rate schemes.
Baselines/autonomous_driving_perception208_baseline/detection/utils/config_util_test.py:203
↓ 3 callersMethod_compute_cor_loc
Compute CorLoc score for object detection result. Args: detected_boxes: A float numpy array of shape [N, 4], representing N regio
Baselines/autonomous_driving_perception208_baseline/detection/utils/per_image_evaluation.py:127
↓ 3 callersMethod_create_and_load_test_configs
(self, pipeline_config)
Baselines/autonomous_driving_perception208_baseline/detection/utils/config_util_test.py:72
↓ 3 callersMethod_file_read
(self, path, type='video')
Evaluation/short_video_real_time_classification_eval/data/run.py:99
↓ 3 callersMethod_generate_label_map
(self, num_classes)
Baselines/autonomous_driving_perception208_baseline/detection/utils/label_map_util_test.py:28
↓ 3 callersFunction_int64_list_feature
Returns a TF-Feature of int64_list. Args: values: A scalar or list of values. Returns: A TF-Feature.
Baselines/autonomous_driving_perception208_baseline/segmentation/datasets/build_data.py:105
↓ 3 callersFunction_is_tensor
Returns a boolean indicating whether the input is a tensor. Args: t: the input to be tested. Returns: a boolean that indicates whether t
Baselines/autonomous_driving_perception208_baseline/detection/utils/shape_utils.py:23
↓ 3 callersFunction_set_dim_0
Sets the 0-th dimension of the input tensor. Args: t: the input tensor, assuming the rank is at least 1. d0: an integer indicating the 0-th
Baselines/autonomous_driving_perception208_baseline/detection/utils/shape_utils.py:35
↓ 3 callersMethodadd_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:72
↓ 3 callersMethodadd_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:423
↓ 3 callersFunctionarea
Computes area of boxes. Args: boxes: Numpy array with shape [N, 4] holding N boxes Returns: a numpy array with shape [N*1] representing
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_ops.py:25
↓ 3 callersFunctionarea
Computes area of masks. Args: masks: Numpy array with shape [N, height, width] holding N masks. Masks values are of type np.uint8 and val
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_mask_ops.py:27
↓ 3 callersMethodclear
Clears the state to prepare for a fresh evaluation.
Baselines/autonomous_driving_perception208_baseline/detection/utils/object_detection_evaluation.py:99
↓ 3 callersFunctionconv2d
(x, w)
Baselines/plant_disease_recognition2018_baseline/network.py:14
↓ 3 callersFunctiondelete_non_value
(data_obs, data_fore, data_anen, column)
Evaluation/weather_forecasting2018_eval/weather_forecasting2018_eval.py:63
↓ 3 callersMethodfeatures
(self, x)
Baselines/sentiment_analysis2018_baseline/model.py:21
↓ 3 callersFunctiongen_list
(data_root, data_dir, list_dir, phase, list_type, suffix='.jpg')
Baselines/autonomous_driving_perception208_baseline/detection/bdd_data/gen_lists.py:7
↓ 3 callersFunctiongen_list
(data_root, data_dir, list_dir, phase, list_type, suffix='.jpg')
Baselines/autonomous_driving_perception208_baseline/segmentation/bdd_data/gen_lists.py:7
↓ 3 callersMethodget_coordinates
Get corner coordinates of boxes. Returns: a list of 4 1-d numpy arrays [y_min, x_min, y_max, x_max]
Baselines/autonomous_driving_perception208_baseline/detection/utils/np_box_list.py:106
↓ 3 callersMethodget_dict_file
(self)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/__init__.py:350
↓ 3 callersFunctionget_network
Gets the network. Args: network_name: Network name. preprocess_images: Preprocesses the images or not. arg_scope: Optional, arg_scope t
Baselines/autonomous_driving_perception208_baseline/segmentation/core/feature_extractor.py:301
↓ 3 callersFunctiongroup_by_key
(detections, key)
Baselines/autonomous_driving_perception208_baseline/detection/bdd_data/evaluate.py:98
↓ 3 callersFunctiongroup_by_key
(detections, key)
Baselines/autonomous_driving_perception208_baseline/segmentation/bdd_data/evaluate.py:98
↓ 3 callersFunctiongroup_by_key
(detections, key)
Evaluation/autonomous_driving_perception2018_eval/evaluate.py:98
↓ 3 callersMethodinitialize
(self, dictionary=None)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/__init__.py:91
↓ 3 callersMethodlcut
(self, *args, **kwargs)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/__init__.py:332
↓ 3 callersMethodload_data_bbox
(self, fold_type=None, version=None, download=False, write_masks=False)
Baselines/autonomous_driving_perception208_baseline/detection/convert_to_tfrecord/deepdrive_dataset/deepdrive_dataset_reader.py:129
↓ 3 callersFunctionload_data_from_csv
(file_name, header=0, encoding="utf-8")
Baselines/sentiment_analysis2018_baseline/data_process.py:9
↓ 3 callersFunctionmax_pool_3x3
(x)
Baselines/plant_disease_recognition2018_baseline/network.py:22
↓ 3 callersFunctionmulti_scale_logits
Gets the logits for multi-scale inputs. The returned logits are all downsampled (due to max-pooling layers) for both training and evaluation.
Baselines/autonomous_driving_perception208_baseline/segmentation/model.py:205
↓ 3 callersFunctionpad_answer
(batch)
Baselines/opinion_questions_machine_reading_comprehension2018_baseline/utils.py:5
↓ 3 callersMethodparsing_boundingboxes
:param serialized_example: :param output: (anything, 'shape', 'labels') :return:
Baselines/autonomous_driving_perception208_baseline/detection/convert_to_tfrecord/deepdrive_dataset/deepdrive_dataset_reader.py:83
↓ 3 callersFunctionrandom_color
()
Baselines/autonomous_driving_perception208_baseline/detection/bdd_data/show_labels.py:93
↓ 3 callersFunctionrandom_color
()
Baselines/autonomous_driving_perception208_baseline/segmentation/bdd_data/show_labels.py:93
↓ 3 callersFunctionresolve_filename
(f)
Baselines/english_chinese_machine_translation_baseline/train/prepare_data/jieba/_compat.py:42
↓ 3 callersFunctionretain_groundtruth
Retains groundtruth by valid indices. Args: tensor_dict: a dictionary of following groundtruth tensors - fields.InputDataFields.groundtru
Baselines/autonomous_driving_perception208_baseline/detection/utils/ops.py:315
↓ 3 callersFunctionscore
(a, b)
Evaluation/weather_forecasting2018_eval/weather_forecasting2018_eval.py:49
↓ 3 callersFunctionseg_words
(contents)
Baselines/sentiment_analysis2018_baseline/data_process.py:17
↓ 3 callersMethodshow_image
(self)
Baselines/autonomous_driving_perception208_baseline/detection/bdd_data/show_labels.py:282
↓ 3 callersMethodshow_image
(self)
Baselines/autonomous_driving_perception208_baseline/segmentation/bdd_data/show_labels.py:282
↓ 3 callersFunctionsplit_separable_conv2d
Splits a separable conv2d into depthwise and pointwise conv2d. This operation differs from `tf.layers.separable_conv2d` as this operation applies
Baselines/autonomous_driving_perception208_baseline/segmentation/model.py:677
next →1–100 of 1,075, ranked by callers