1. 16 May, 2019 2 commits
  2. 14 May, 2019 2 commits
    • derekjchow's avatar
      Move config to the right place. (#6782) · aecf5d02
      derekjchow authored
      aecf5d02
    • André Araujo's avatar
      DELF feature aggregation extraction: VLAD, ASMK, ASMK* (#6780) · a27bad9b
      André Araujo authored
      * Initial feature aggregation code for Detect-to-Retrieve paper.
      
      PiperOrigin-RevId: 246043144
      
      * Add support for ASMK/ASMK*/R-ASMK/R-ASMK*.
      
      PiperOrigin-RevId: 247337028
      
      * Add DatumProto uint32 field, and limit datum_io to uint32 and float32/float64 types.
      
      Also, introduce DatumPairProto, to be used for ASMK variants. Functions to read/write in this new format are added and tested.
      
      PiperOrigin-RevId: 247515205
      
      * Add batching option to feature aggregation extraction.
      
      PiperOrigin-RevId: 247614627
      
      * Script to perform local feature aggregation, with associated configs.
      
      Also small edits to the aggregation extractor, for better handling of input features / avoiding OOM.
      
      PiperOrigin-RevId: 248150750
      
      * Tests to check that aggregation using regions with no local features works.
      
      PiperOrigin-RevId: 248153275
      
      * Include new library/proto for aggregation
      
      * Merged commit includes the following changes:
      
      PiperOrigin-RevId: 248176511
      
      * Merged commit includes the following changes:
      248194572  by Andre Araujo:
      
          Change tf.tensor_scatter_nd_add --> tf.compat.v1.tensor_scatter_add to make it compatible with TF 1.X.
      
      --
      
      PiperOrigin-RevId: 248194572
      a27bad9b
  3. 08 May, 2019 1 commit
    • Menglong Zhu's avatar
      Merged commit includes the following changes: (#6726) · 58856e2b
      Menglong Zhu authored
      246873701  by menglong:
      
          Missing __init__.py under meta_architectures/
      
      --
      246857392  by menglong:
      
          Standardize proto namespace: lstm_object_detection.protos
      
      --
      246625127  by menglong:
      
          Internal changes.
      
      --
      246596481  by menglong:
      
          Add License
      
      --
      246580605  by menglong:
      
          Internal changes
      
      --
      246344626  by menglong:
      
          Open source interleaved mobilenet v2 model.
      
      --
      244893883  by menglong:
      
          Introduce multi_input_decoder for interleaved model.
      
      --
      244461016  by menglong:
      
          Add pre-bottleneck operation to lstm cells to support interleaved model.
      
      --
      244052176  by menglong:
      
          Update README
      
      --
      244020495  by menglong:
      
          Add test to rnn_decoder.
      
      --
      243704250  by menglong:
      
          Duplicate assignment.
      
      --
      243091836  by menglong:
      
          Move LSTMSSD meta arch into separate folder
      
      --
      242900337  by menglong:
      
          Modified mobilenet definition for LSTM-SSD
      
      --
      242773195  by menglong:
      
          Release GroupedConvLSTMCell implementation: https://arxiv.org/abs/1903.10172
      
      --
      242574736  by menglong:
      
          Introduce module for quantizated training.
      
      --
      242544306  by menglong:
      
          lstm_ssd_meta_arch updates, added test
          rename:
          - LSTMMetaArch to LSTMSSDMetaArch
          - LSTMFeatureExtractor to LSTMSSDFeatureExtractor
      
      --
      241986236  by menglong:
      
          Move lstm quantization utils to 3rd party.
      
      --
      225922488  by yinxiao:
      
          Training pipeline fixes.
      
      --
      224839137  by yinxiao:
      
          Issue fix for lstm object detecion sample config.
      
      --
      224246947  by menglong:
      
          Fix logging module import
      
      --
      
      PiperOrigin-RevId: 246873701
      58856e2b
  4. 06 May, 2019 1 commit
  5. 02 May, 2019 1 commit
    • Krishnan Srinivasan's avatar
      update mujoco and tensorflow 1.14/2.0 api calls in efficient-hrl (#6525) · 17ecf9db
      Krishnan Srinivasan authored
      * updated mujoco api calls to data, and tensorflow call to CriticalSection (moved from contrib.framework)
      
      * changed efficient-hrl envs so self.physics points to correct PyMj object based on mujoco_py version
      
      * corrected mujoco version number checkm in AntEnv.physics and PointEnv.physics properties
      
      * fix AntEnv.set_xy by reverting to using self.physics
      17ecf9db
  6. 01 May, 2019 1 commit
    • André Araujo's avatar
      Small edit to DELF README (#6704) · 62ed862e
      André Araujo authored
      * Internal change.
      
      PiperOrigin-RevId: 185564155
      
      * Fix small bug when reading DELF features when file is empty.
      A new test is added that catches this bug.
      
      PiperOrigin-RevId: 213839503
      
      * Refactors DELF example code to expose a function to create a DELF feature extractor.
      
      PiperOrigin-RevId: 241492615
      
      * Merged commit includes the following changes:
      244073180  by Andre Araujo:
      
          Internal change
      
      --
      243646498  by Andre Araujo:
      
          Detect and save bounding boxes for a list of images.
          A new proto is added, along with auxiliary read/write functions, and tests.
      
      --
      
      PiperOrigin-RevId: 244073180
      
      * Merged commit includes the following changes:
      244872693  by Andre Araujo:
      
          Small change.
      
      --
      244871213  by Andre Araujo:
      
          Small edit to DELF extractor function.
      
      --
      244790715  by Andre Araujo:
      
          internal automated change
      
      --
      244773146  by Andre Araujo:
      
          Add option to visualize extracted boxes, and change slightly model input.
      
      --
      244288992  by Andre Araujo:
      
          Script to cluster DELF features using K-means.
      
      --
      244275164  by Andre Araujo:
      
          Scripts to extract DELF features and boxes from Revisited Oxford/Paris datasets, used in Detect-to-Retrieve paper.
      
      --
      
      PiperOrigin-RevId: 244872693
      
      * Merged commit includes the following changes:
      
      PiperOrigin-RevId: 244876167
      
      * Updates instructions to include new released models, instructions for DELF and detector extraction, etc.
      
      * Small fix
      
      * Merged commit includes the following changes:
      244909336  by Andre Araujo:
      
          Update to DELF config example to use latest model.
      
      --
      
      PiperOrigin-RevId: 244909336
      
      * Revert "Merged commit includes the following changes:"
      
      This reverts commit f41be9f159330f62846d5d8b3d3d5d55cd1874f4.
      
      * Update delf_config_example model
      
      * Small edits to detection instructions
      
      * Specifying GLB location in README
      
      * Mention D2R code release in progress
      62ed862e
  7. 29 Apr, 2019 1 commit
  8. 26 Apr, 2019 1 commit
    • pkulzc's avatar
      Add VisualWakeWords Dataset to Slim dataset_factory (#6661) · 67c403fc
      pkulzc authored
      * Merged commit includes the following changes:
      244869387  by Sergio Guadarrama:
      
          This CL adds script/code to generate Visual WakeWords Dataset annotation files and TF records starting from COCO dataset.
      
      --
      244866660  by Sergio Guadarrama:
      
          Add VisualWakeWords Dataset to Slim dataset_factory to train MobileNets on it.
      
      --
      244836000  by Sergio Guadarrama:
      
          n/a
      
      --
      244104396  by Sergio Guadarrama:
      
          Add an option whether to enable / disable image cropping in inception_preprocessing.
      
      --
      242040128  by Sergio Guadarrama:
      
          Internal change
      
      241793677  by Sergio Guadarrama:
      
          Internal change
      
      241073081  by Sergio Guadarrama:
      
          Internal change
      
      240131189  by Sergio Guadarrama:
      
          Internal change
      
      PiperOrigin-RevId: 244869387
      
      * Merged commit includes the following changes:
      245431876  by Sergio Guadarrama:
      
          Internal cleanup
      
      --
      
      PiperOrigin-RevId: 245431876
      
      * Merged commit includes the following changes:
      245454983  by Sergio Guadarrama:
      
          Internal Cleanup
      
      --
      
      PiperOrigin-RevId: 245454983
      67c403fc
  9. 24 Apr, 2019 2 commits
    • André Araujo's avatar
      Latest updates from DELF code. (#6651) · 07678af8
      André Araujo authored
      * Internal change.
      
      PiperOrigin-RevId: 185564155
      
      * Fix small bug when reading DELF features when file is empty.
      A new test is added that catches this bug.
      
      PiperOrigin-RevId: 213839503
      
      * Refactors DELF example code to expose a function to create a DELF feature extractor.
      
      PiperOrigin-RevId: 241492615
      
      * Merged commit includes the following changes:
      244073180  by Andre Araujo:
      
          Internal change
      
      --
      243646498  by Andre Araujo:
      
          Detect and save bounding boxes for a list of images.
          A new proto is added, along with auxiliary read/write functions, and tests.
      
      --
      
      PiperOrigin-RevId: 244073180
      
      * Merged commit includes the following changes:
      244872693  by Andre Araujo:
      
          Small change.
      
      --
      244871213  by Andre Araujo:
      
          Small edit to DELF extractor function.
      
      --
      244790715  by Andre Araujo:
      
          internal automated change
      
      --
      244773146  by Andre Araujo:
      
          Add option to visualize extracted boxes, and change slightly model input.
      
      --
      244288992  by Andre Araujo:
      
          Script to cluster DELF features using K-means.
      
      --
      244275164  by Andre Araujo:
      
          Scripts to extract DELF features and boxes from Revisited Oxford/Paris datasets, used in Detect-to-Retrieve paper.
      
      --
      
      PiperOrigin-RevId: 244872693
      
      * Merged commit includes the following changes:
      
      PiperOrigin-RevId: 244876167
      
      * Updates instructions to include new released models, instructions for DELF and detector extraction, etc.
      
      * Small fix
      
      * Merged commit includes the following changes:
      244909336  by Andre Araujo:
      
          Update to DELF config example to use latest model.
      
      --
      
      PiperOrigin-RevId: 244909336
      
      * Revert "Merged commit includes the following changes:"
      
      This reverts commit f41be9f159330f62846d5d8b3d3d5d55cd1874f4.
      
      * Update delf_config_example model
      
      * Small edits to detection instructions
      
      * Specifying GLB location in README
      07678af8
    • Yukun Zhu's avatar
      Update colab demo (#6652) · 0d76b69f
      Yukun Zhu authored
      * Update colab demo
      
      * fix typo
      0d76b69f
  10. 23 Apr, 2019 1 commit
  11. 22 Apr, 2019 1 commit
  12. 20 Apr, 2019 1 commit
  13. 18 Apr, 2019 1 commit
    • André Araujo's avatar
      Recent DELF updates, including initial Detect-to-Retrieve code (#6599) · 61793e67
      André Araujo authored
      * Internal change.
      
      PiperOrigin-RevId: 185564155
      
      * Fix small bug when reading DELF features when file is empty.
      A new test is added that catches this bug.
      
      PiperOrigin-RevId: 213839503
      
      * Refactors DELF example code to expose a function to create a DELF feature extractor.
      
      PiperOrigin-RevId: 241492615
      
      * Merged commit includes the following changes:
      244073180  by Andre Araujo:
      
          Internal change
      
      --
      243646498  by Andre Araujo:
      
          Detect and save bounding boxes for a list of images.
          A new proto is added, along with auxiliary read/write functions, and tests.
      
      --
      
      PiperOrigin-RevId: 244073180
      61793e67
  14. 17 Apr, 2019 3 commits
  15. 08 Apr, 2019 1 commit
  16. 29 Mar, 2019 1 commit
  17. 26 Mar, 2019 1 commit
  18. 22 Mar, 2019 1 commit
  19. 21 Mar, 2019 2 commits
  20. 07 Mar, 2019 2 commits
    • pkulzc's avatar
      Merged commit includes the following changes: (#6315) · 05584085
      pkulzc authored
      236813471  by lzc:
      
          Internal change.
      
      --
      236507310  by lzc:
      
          Fix preprocess.random_resize_method config type issue. The target height and width will be passed as "size" to tf.image.resize_images which only accepts integer.
      
      --
      236409989  by Zhichao Lu:
      
          Config export_to_tpu from function parameter instead of HParams for TPU inference.
      
      --
      236403186  by Zhichao Lu:
      
          Make graph file names optional arguments.
      
      --
      236237072  by Zhichao Lu:
      
          Minor bugfix for keyword args.
      
      --
      236209602  by Zhichao Lu:
      
          Add support for PartitionedVariable to get_variables_available_in_checkpoint.
      
      --
      235828658  by Zhichao Lu:
      
          Automatically stop evaluation jobs when training is finished.
      
      --
      235817964  by Zhichao Lu:
      
          Add an optional process_metrics_fn callback to eval_util, it gets called
          with evaluation results once each evaluation is complete.
      
      --
      235788721  by lzc:
      
          Fix yml file tf runtime version.
      
      --
      235262897  by Zhichao Lu:
      
          Add keypoint support to the random_pad_image preprocessor method.
      
      --
      235257380  by Zhichao Lu:
      
          Support InputDataFields.groundtruth_confidences in retain_groundtruth(), retain_groundtruth_with_positive_classes(), filter_groundtruth_with_crowd_boxes(), filter_groundtruth_with_nan_box_coordinates(), filter_unrecognized_classes().
      
      --
      235109188  by Zhichao Lu:
      
          Fix bug in pad_input_data_to_static_shapes for num_additional_channels > 0; make color-specific data augmentation only touch RGB channels.
      
      --
      235045010  by Zhichao Lu:
      
          Don't slice class_predictions_with_background when add_background_class is false.
      
      --
      235026189  by lzc:
      
          Fix import in g3doc.
      
      --
      234863426  by Zhichao Lu:
      
          Added fixes in exporter to allow writing a checkpoint to a specified temporary directory.
      
      --
      234671886  by lzc:
      
          Internal Change.
      
      --
      234630803  by rathodv:
      
          Internal Change.
      
      --
      233985896  by Zhichao Lu:
      
          Add Neumann optimizer to object detection.
      
      --
      233560911  by Zhichao Lu:
      
          Add NAS-FPN object detection with Resnet and Mobilenet v2.
      
      --
      233513536  by Zhichao Lu:
      
          Export TPU compatible object detection model
      
      --
      233495772  by lzc:
      
          Internal change.
      
      --
      233453557  by Zhichao Lu:
      
          Create Keras-based SSD+MobilenetV1 for object detection.
      
      --
      233220074  by lzc:
      
          Update release notes date.
      
      --
      233165761  by Zhichao Lu:
      
          Support depth_multiplier and min_depth in _SSDResnetV1FpnFeatureExtractor.
      
      --
      233160046  by lzc:
      
          Internal change.
      
      --
      232926599  by Zhichao Lu:
      
          [tf.data] Switching tf.data functions to use `defun`, providing an escape hatch to continue using the legacy `Defun`.
      
          There are subtle differences between the implementation of `defun` and `Defun` (such as resources handling or control flow) and it is possible that input pipelines that use control flow or resources in their functions might be affected by this change. To migrate majority of existing pipelines to the recommended way of creating functions in TF 2.0 world, while allowing (a small number of) existing pipelines to continue relying on the deprecated behavior, this CL provides an escape hatch.
      
          If your input pipeline is affected by this CL, it should apply the escape hatch by replacing `foo.map(...)` with `foo.map_with_legacy_function(...)`.
      
      --
      232891621  by Zhichao Lu:
      
          Modify faster_rcnn meta architecture to normalize raw detections.
      
      --
      232875817  by Zhichao Lu:
      
          Make calibration a post-processing step.
      
          Specifically:
          - Move the calibration config from pipeline.proto --> post_processing.proto
          - Edit post_processing_builder.py to return a calibration function. If no calibration config is provided, it None.
          - Edit SSD and FasterRCNN meta architectures to optionally call the calibration function on detection scores after score conversion and before NMS.
      
      --
      232704481  by Zhichao Lu:
      
          Edit calibration builder to build a function that will be used within a detection model's `postprocess` method, after score conversion and before non-maxima suppression.
      
          Specific Edits:
          - The returned function now accepts class_predictions_with_background as its argument instead of detection_scores and detection_classes.
          - Class-specific calibration was temporarily removed, as it requires more significant refactoring. Will be added later.
      
      --
      232615379  by Zhichao Lu:
      
          Internal change
      
      --
      232483345  by ronnyvotel:
      
          Making the use of bfloat16 restricted to TPUs.
      
      --
      232399572  by Zhichao Lu:
      
          Edit calibration builder and proto to support class-agnostic calibration.
      
          Specifically:
          - Edit calibration protos to include path to relevant label map if required for class-specific calibration. Previously, label maps were inferred from other parts of the pipeline proto; this allows all information required by the builder stay within the calibration proto and remove extraneous information from being passed with class-agnostic calibration.
          - Add class-agnostic protos to the calibration config.
      
          Note that the proto supports sigmoid and linear interpolation parameters, but the builder currently only supports linear interpolation.
      
      --
      231613048  by Zhichao Lu:
      
          Add calibration builder for applying calibration transformations from output of object detection models.
      
          Specifically:
          - Add calibration proto to support sigmoid and isotonic regression (stepwise function) calibration.
          - Add a builder to support calibration from isotonic regression outputs.
      
      --
      231519786  by lzc:
      
          model_builder test refactor.
          - removed proto text boilerplate in each test case and let them call a create_default_proto function instead.
          - consolidated all separate ssd model creation tests into one.
          - consolidated all separate faster rcnn model creation tests into one.
          - used parameterized test for testing mask rcnn models and use_matmul_crop_and_resize
          - added all failures test.
      
      --
      231448169  by Zhichao Lu:
      
          Return static shape as a constant tensor.
      
      --
      231423126  by lzc:
      
          Add a release note for OID v4 models.
      
      --
      231401941  by Zhichao Lu:
      
          Adding correct labelmap for the models trained on Open Images V4 (*oid_v4
          config suffix).
      
      --
      231320357  by Zhichao Lu:
      
          Add scope to Nearest Neighbor Resize op so that it stays in the same name scope as the original resize ops.
      
      --
      231257699  by Zhichao Lu:
      
          Switch to using preserve_aspect_ratio in tf.image.resize_images rather than using a custom implementation.
      
      --
      231247368  by rathodv:
      
          Internal change.
      
      --
      231004874  by lzc:
      
          Update documentations to use tf 1.12 for object detection API.
      
      --
      230999911  by rathodv:
      
          Use tf.batch_gather instead of ops.batch_gather
      
      --
      230999720  by huizhongc:
      
          Fix weight equalization test in ops_test.
      
      --
      230984728  by rathodv:
      
          Internal update.
      
      --
      230929019  by lzc:
      
          Add an option to replace preprocess operation with placeholder for ssd feature extractor.
      
      --
      230845266  by lzc:
      
          Require tensorflow version 1.12 for object detection API and rename keras_applications to keras_models
      
      --
      230392064  by lzc:
      
          Add RetinaNet 101 checkpoint trained on OID v4 to detection model zoo.
      
      --
      230014128  by derekjchow:
      
          This file was re-located below the tensorflow/lite/g3doc/convert
      
      --
      229941449  by lzc:
      
          Update SSD mobilenet v2 quantized model download path.
      
      --
      229843662  by lzc:
      
          Add an option to use native resize tf op in fpn top-down feature map generation.
      
      --
      229636034  by rathodv:
      
          Add deprecation notice to a few old parameters in train.proto
      
      --
      228959078  by derekjchow:
      
          Remove duplicate elif case in _check_and_convert_legacy_input_config_key
      
      --
      228749719  by rathodv:
      
          Minor refactoring to make exporter's `build_detection_graph` method public.
      
      --
      228573828  by rathodv:
      
          Mofity model.postprocess to return raw detections and raw scores.
      
          Modify, post-process methods in core/model.py and the meta architectures to export raw detection (without any non-max suppression) and raw multiclass score logits for those detections.
      
      --
      228420670  by Zhichao Lu:
      
          Add shims for custom architectures for object detection models.
      
      --
      228241692  by Zhichao Lu:
      
          Fix the comment on "losses_mask" in "Loss" class.
      
      --
      228223810  by Zhichao Lu:
      
          Support other_heads' predictions in WeightSharedConvolutionalBoxPredictor. Also remove a few unused parameters and fix a couple of comments in convolutional_box_predictor.py.
      
      --
      228200588  by Zhichao Lu:
      
          Add Expected Calibration Error and an evaluator that calculates the metric for object detections.
      
      --
      228167740  by lzc:
      
          Add option to use bounded activations in FPN top-down feature map generation.
      
      --
      227767700  by rathodv:
      
          Internal.
      
      --
      226295236  by Zhichao Lu:
      
          Add Open Image V4 Resnet101-FPN training config to third_party
      
      --
      226254842  by Zhichao Lu:
      
          Fix typo in documentation.
      
      --
      225833971  by Zhichao Lu:
      
          Option to have no resizer in object detection model.
      
      --
      225824890  by lzc:
      
          Fixes p3 compatibility for model_lib.py
      
      --
      225760897  by menglong:
      
          normalizer should be at least 1.
      
      --
      225559842  by menglong:
      
          Add extra logic filtering unrecognized classes.
      
      --
      225379421  by lzc:
      
          Add faster_rcnn_inception_resnet_v2_atrous_oid_v4 config to third_party
      
      --
      225368337  by Zhichao Lu:
      
          Add extra logic filtering unrecognized classes.
      
      --
      225341095  by Zhichao Lu:
      
          Adding Open Images V4 models to OD API model zoo and corresponding configs to the
          configs.
      
      --
      225218450  by menglong:
      
          Add extra logic filtering unrecognized classes.
      
      --
      225057591  by Zhichao Lu:
      
          Internal change.
      
      --
      224895417  by rathodv:
      
          Internal change.
      
      --
      224209282  by Zhichao Lu:
      
          Add two data augmentations to object detection: (1) Self-concat (2) Absolute pads.
      
      --
      224073762  by Zhichao Lu:
      
          Do not create tf.constant until _generate() is actually called in the object detector.
      
      --
      
      PiperOrigin-RevId: 236813471
      05584085
    • Yukun Zhu's avatar
      Adding panoptic evaluation tools and update internal changes. (#6320) · 8cf8446b
      Yukun Zhu authored
      * Internal changes
      
      PiperOrigin-RevId: 237183552
      
      * update readme
      
      PiperOrigin-RevId: 237184584
      8cf8446b
  21. 06 Mar, 2019 1 commit
    • Rodrigo Laguna's avatar
      speedup caption generator on im2txt (#6255) · cce6c09b
      Rodrigo Laguna authored
      * replace the usage of python's built in sort with numpy's argsort, which is faster. Also use the given axes to get the most_likely_words instead of calling enumerate and list (it's slower and more memory conssuming)
      
      * correct indentation and redaction on comment for the changes purposes according to cshallue's comment
      cce6c09b
  22. 28 Feb, 2019 1 commit
  23. 27 Feb, 2019 2 commits
  24. 24 Feb, 2019 1 commit
  25. 21 Feb, 2019 2 commits
  26. 11 Feb, 2019 1 commit
  27. 10 Feb, 2019 1 commit
  28. 06 Feb, 2019 1 commit
  29. 19 Jan, 2019 1 commit
  30. 17 Jan, 2019 1 commit
    • pkulzc's avatar
      Merged commit includes the following changes: (#6062) · dcf52aab
      pkulzc authored
      228203246  by Sergio Guadarrama:
      
          Add a write text graphdef option.
      
      --
      226110161  by Sergio Guadarrama:
      
          Add license to i3d/s3dg and tests.
      
      --
      226074013  by Sergio Guadarrama:
      
          Network definitions for I3D and S3D-G.
      
      --
      224394404  by Sergio Guadarrama:
      
          Add video model option for exported inference graphs.
      
      --
      224220779  by Sergio Guadarrama:
      
          Internal change
      
      223589268  by Sergio Guadarrama:
      
          Internal change
      
      PiperOrigin-RevId: 228203246
      dcf52aab
  31. 16 Jan, 2019 1 commit