未验证 提交 86cb0aa3 编写于 作者: T Taylor Robie 提交者: GitHub

Add requirements.txt to official. (#3760)

* add requirements.txt now that there are dependencies beyond tensorflow

* direct pip info to README
上级 31fc8965
...@@ -28,4 +28,6 @@ If you would like to make any fixes or improvements to the models, please [submi ...@@ -28,4 +28,6 @@ If you would like to make any fixes or improvements to the models, please [submi
The *Official Models* are made available as a Python module. To run the models and associated scripts, add the top-level ***/models*** folder to the Python path with the command: `export PYTHONPATH="$PYTHONPATH:/path/to/models"` The *Official Models* are made available as a Python module. To run the models and associated scripts, add the top-level ***/models*** folder to the Python path with the command: `export PYTHONPATH="$PYTHONPATH:/path/to/models"`
To install dependencies pass `-r official/requirements.txt` to pip. (i.e. `pip3 install --user -r official/requirements.txt`)
To make Official Models easier to use, we are planning to create a pip installable Official Models package. This is being tracked in [#917](https://github.com/tensorflow/models/issues/917). To make Official Models easier to use, we are planning to create a pip installable Official Models package. This is being tracked in [#917](https://github.com/tensorflow/models/issues/917).
psutil>=5.4.3
py-cpuinfo>=3.3.0
\ No newline at end of file
...@@ -16,9 +16,7 @@ ...@@ -16,9 +16,7 @@
"""Logging utilities for benchmark. """Logging utilities for benchmark.
For collecting local environment metrics like CPU and memory, certain python For collecting local environment metrics like CPU and memory, certain python
packages need be installed. Run the following commands for dependency packages: packages need be installed. See README for details.
> pip install --upgrade py-cpuinfo
> pip install --upgrade psutil
""" """
from __future__ import absolute_import from __future__ import absolute_import
from __future__ import division from __future__ import division
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册