Skip to content

Commit 637f08e

Browse files
authored
Merge pull request tensorflow#5408 from lilipads/patch-1
Update installation.md
2 parents 7af1ceb + 63ecef1 commit 637f08e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

research/object_detection/g3doc/installation.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ protoc object_detection/protos/*.proto --python_out=.
8888
**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
8989

9090
## Manual protobuf-compiler installation and usage
91+
92+
**If you are on linux:**
93+
9194
Download and install the 3.0 release of protoc, then unzip the file.
9295

9396
```bash
@@ -103,6 +106,25 @@ Run the compilation process again, but use the downloaded version of protoc
103106
./bin/protoc object_detection/protos/*.proto --python_out=.
104107
```
105108

109+
**If you are on MacOS:**
110+
111+
If you have homebrew, download and install the protobuf with
112+
```brew install protobuf```
113+
114+
Alternately, run:
115+
```PROTOC_ZIP=protoc-3.3.0-osx-x86_64.zip
116+
curl -OL https://github.com/google/protobuf/releases/download/v3.3.0/$PROTOC_ZIP
117+
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
118+
rm -f $PROTOC_ZIP
119+
```
120+
121+
Run the compilation process again:
122+
123+
``` bash
124+
# From tensorflow/models/research/
125+
protoc object_detection/protos/*.proto --python_out=.
126+
```
127+
106128
## Add Libraries to PYTHONPATH
107129

108130
When running locally, the tensorflow/models/research/ and slim directories

0 commit comments

Comments
 (0)