Unverified Commit 637f08e8 authored by derekjchow's avatar derekjchow Committed by GitHub
Browse files

Merge pull request #5408 from lilipads/patch-1

Update installation.md
parents 7af1ceb5 63ecef1a
...@@ -88,6 +88,9 @@ protoc object_detection/protos/*.proto --python_out=. ...@@ -88,6 +88,9 @@ protoc object_detection/protos/*.proto --python_out=.
**Note**: If you're getting errors while compiling, you might be using an incompatible protobuf compiler. If that's the case, use the following manual installation **Note**: If you're getting errors while compiling, you might be using an incompatible protobuf compiler. If that's the case, use the following manual installation
## Manual protobuf-compiler installation and usage ## Manual protobuf-compiler installation and usage
**If you are on linux:**
Download and install the 3.0 release of protoc, then unzip the file. Download and install the 3.0 release of protoc, then unzip the file.
```bash ```bash
...@@ -103,6 +106,25 @@ Run the compilation process again, but use the downloaded version of protoc ...@@ -103,6 +106,25 @@ Run the compilation process again, but use the downloaded version of protoc
./bin/protoc object_detection/protos/*.proto --python_out=. ./bin/protoc object_detection/protos/*.proto --python_out=.
``` ```
**If you are on MacOS:**
If you have homebrew, download and install the protobuf with
```brew install protobuf```
Alternately, run:
```PROTOC_ZIP=protoc-3.3.0-osx-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
rm -f $PROTOC_ZIP
```
Run the compilation process again:
``` bash
# From tensorflow/models/research/
protoc object_detection/protos/*.proto --python_out=.
```
## Add Libraries to PYTHONPATH ## Add Libraries to PYTHONPATH
When running locally, the tensorflow/models/research/ and slim directories When running locally, the tensorflow/models/research/ and slim directories
......
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