Commit cf82a724 authored by Vighnesh Birodkar's avatar Vighnesh Birodkar Committed by TF Object Detection Team
Browse files

Use 2020-resolver with pip.

PiperOrigin-RevId: 326665731
parent 2bef12e6
...@@ -35,7 +35,7 @@ cd models/research ...@@ -35,7 +35,7 @@ cd models/research
protoc object_detection/protos/*.proto --python_out=. protoc object_detection/protos/*.proto --python_out=.
# Install TensorFlow Object Detection API. # Install TensorFlow Object Detection API.
cp object_detection/packages/tf1/setup.py . cp object_detection/packages/tf1/setup.py .
python -m pip install . python -m pip install --use-feature=2020-resolver .
``` ```
```bash ```bash
......
...@@ -35,7 +35,7 @@ cd models/research ...@@ -35,7 +35,7 @@ cd models/research
protoc object_detection/protos/*.proto --python_out=. protoc object_detection/protos/*.proto --python_out=.
# Install TensorFlow Object Detection API. # Install TensorFlow Object Detection API.
cp object_detection/packages/tf2/setup.py . cp object_detection/packages/tf2/setup.py .
python -m pip install . python -m pip install --use-feature=2020-resolver .
``` ```
```bash ```bash
...@@ -81,4 +81,4 @@ We provide a large collection of models that are trained on COCO 2017 in the ...@@ -81,4 +81,4 @@ We provide a large collection of models that are trained on COCO 2017 in the
* <a href='tpu_compatibility.md'> * <a href='tpu_compatibility.md'>
TPU compatible detection pipelines</a><br> TPU compatible detection pipelines</a><br>
* <a href='tf2_training_and_evaluation.md'> * <a href='tf2_training_and_evaluation.md'>
Training and evaluation guide (CPU, GPU, or TPU)</a><br> Training and evaluation guide (CPU, GPU, or TPU)</a><br>
\ No newline at end of file
...@@ -7,9 +7,8 @@ from setuptools import setup ...@@ -7,9 +7,8 @@ from setuptools import setup
# tf-models-offical requirements. These packages request for incompatible # tf-models-offical requirements. These packages request for incompatible
# oauth2client package. # oauth2client package.
REQUIRED_PACKAGES = [ REQUIRED_PACKAGES = [
'tensorflow-metadata<0.23.0', # TODO(b/164107742)
# Required for apache-beam with PY3 # Required for apache-beam with PY3
'avro-python3==1.8.1', 'avro-python3',
'apache-beam', 'apache-beam',
'pillow', 'pillow',
'lxml', 'lxml',
...@@ -21,8 +20,7 @@ REQUIRED_PACKAGES = [ ...@@ -21,8 +20,7 @@ REQUIRED_PACKAGES = [
'pycocotools', 'pycocotools',
'scipy', 'scipy',
'pandas', 'pandas',
# Required to avoid Numpy 1.19.1 conflict with TF 2.3 'tf-models-official'
'tf-models-official==2.2.2'
] ]
setup( setup(
......
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