Commit e2385734 authored by Kaushik Shivakumar's avatar Kaushik Shivakumar
Browse files

Merge branch 'master' of https://github.com/tensorflow/models into latest

parents 30c14aa9 1bfb577d
...@@ -42,9 +42,6 @@ PART_NAMES = [ ...@@ -42,9 +42,6 @@ PART_NAMES = [
b'left_face', b'left_face',
] ]
_SRC_PATH = ('google3/third_party/tensorflow_models/object_detection/'
'dataset_tools/densepose')
def scale(dp_surface_coords, y_scale, x_scale, scope=None): def scale(dp_surface_coords, y_scale, x_scale, scope=None):
"""Scales DensePose coordinates in y and x dimensions. """Scales DensePose coordinates in y and x dimensions.
...@@ -266,10 +263,14 @@ class DensePoseHorizontalFlip(object): ...@@ -266,10 +263,14 @@ class DensePoseHorizontalFlip(object):
def __init__(self): def __init__(self):
"""Constructor.""" """Constructor."""
uv_symmetry_transforms_path = os.path.join( path = os.path.dirname(os.path.abspath(__file__))
tf.resource_loader.get_data_files_path(), '..', 'dataset_tools', uv_symmetry_transforms_path = tf.resource_loader.get_path_to_datafile(
'densepose', 'UV_symmetry_transforms.mat') os.path.join(path, '..', 'dataset_tools', 'densepose',
data = scipy.io.loadmat(uv_symmetry_transforms_path) 'UV_symmetry_transforms.mat'))
tf.logging.info('Loading DensePose symmetry transforms file from {}'.format(
uv_symmetry_transforms_path))
with tf.io.gfile.GFile(uv_symmetry_transforms_path, 'rb') as f:
data = scipy.io.loadmat(f)
# Create lookup maps which indicate how a VU coordinate changes after a # Create lookup maps which indicate how a VU coordinate changes after a
# horizontal flip. # horizontal flip.
......
This diff is collapsed.
# Tensorflow Object Detection on Docker # TensorFlow Object Detection on Docker
These instructions are experimental. These instructions are experimental.
...@@ -6,6 +6,6 @@ These instructions are experimental. ...@@ -6,6 +6,6 @@ These instructions are experimental.
```bash ```bash
# From the root of the git repository # From the root of the git repository
docker build -f research/object_detection/dockerfiles/1.15/Dockerfile -t od . docker build -f research/object_detection/dockerfiles/tf1/Dockerfile -t od .
docker run -it od docker run -it od
``` ```
This diff is collapsed.
# Context R-CNN # Context R-CNN
[![TensorFlow 1.15](https://img.shields.io/badge/TensorFlow-1.15-FF6F00?logo=tensorflow)](https://github.com/tensorflow/tensorflow/releases/tag/v1.15.0)
Context R-CNN is an object detection model that uses contextual features to Context R-CNN is an object detection model that uses contextual features to
improve object detection. See https://arxiv.org/abs/1912.03538 for more details. improve object detection. See https://arxiv.org/abs/1912.03538 for more details.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment