Skip to content

Commit cf82a72

Browse files
Vighnesh BirodkarTF Object Detection Team
authored andcommitted
Use 2020-resolver with pip.
PiperOrigin-RevId: 326665731
1 parent 2bef12e commit cf82a72

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

research/object_detection/g3doc/tf1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cd models/research
3535
protoc object_detection/protos/*.proto --python_out=.
3636
# Install TensorFlow Object Detection API.
3737
cp object_detection/packages/tf1/setup.py .
38-
python -m pip install .
38+
python -m pip install --use-feature=2020-resolver .
3939
```
4040

4141
```bash

research/object_detection/g3doc/tf2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cd models/research
3535
protoc object_detection/protos/*.proto --python_out=.
3636
# Install TensorFlow Object Detection API.
3737
cp object_detection/packages/tf2/setup.py .
38-
python -m pip install .
38+
python -m pip install --use-feature=2020-resolver .
3939
```
4040

4141
```bash
@@ -81,4 +81,4 @@ We provide a large collection of models that are trained on COCO 2017 in the
8181
* <a href='tpu_compatibility.md'>
8282
TPU compatible detection pipelines</a><br>
8383
* <a href='tf2_training_and_evaluation.md'>
84-
Training and evaluation guide (CPU, GPU, or TPU)</a><br>
84+
Training and evaluation guide (CPU, GPU, or TPU)</a><br>

research/object_detection/packages/tf2/setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
# tf-models-offical requirements. These packages request for incompatible
88
# oauth2client package.
99
REQUIRED_PACKAGES = [
10-
'tensorflow-metadata<0.23.0', # TODO(b/164107742)
1110
# Required for apache-beam with PY3
12-
'avro-python3==1.8.1',
11+
'avro-python3',
1312
'apache-beam',
1413
'pillow',
1514
'lxml',
@@ -21,8 +20,7 @@
2120
'pycocotools',
2221
'scipy',
2322
'pandas',
24-
# Required to avoid Numpy 1.19.1 conflict with TF 2.3
25-
'tf-models-official==2.2.2'
23+
'tf-models-official'
2624
]
2725

2826
setup(

0 commit comments

Comments
 (0)