Change documentation to use shallow clones of the MP Repo

PiperOrigin-RevId: 505234066
This commit is contained in:
Sebastian Schmidt 2023-01-27 16:19:17 -08:00 committed by Copybara-Service
parent dc3fdf6eb4
commit 702cc0c42c

View File

@ -35,7 +35,7 @@ install --user six`.
```bash ```bash
$ cd $HOME $ cd $HOME
$ git clone https://github.com/google/mediapipe.git $ git clone -depth 1 https://github.com/google/mediapipe.git
# Change directory into MediaPipe root directory # Change directory into MediaPipe root directory
$ cd mediapipe $ cd mediapipe
@ -287,7 +287,7 @@ build issues.
2. Checkout MediaPipe repository. 2. Checkout MediaPipe repository.
```bash ```bash
$ git clone https://github.com/google/mediapipe.git $ git clone -depth 1 https://github.com/google/mediapipe.git
# Change directory into MediaPipe root directory # Change directory into MediaPipe root directory
$ cd mediapipe $ cd mediapipe
@ -416,7 +416,7 @@ build issues.
3. Checkout MediaPipe repository. 3. Checkout MediaPipe repository.
```bash ```bash
$ git clone https://github.com/google/mediapipe.git $ git clone -depth 1 https://github.com/google/mediapipe.git
$ cd mediapipe $ cd mediapipe
``` ```
@ -590,7 +590,7 @@ next section.
7. Checkout MediaPipe repository. 7. Checkout MediaPipe repository.
``` ```
C:\Users\Username\mediapipe_repo> git clone https://github.com/google/mediapipe.git C:\Users\Username\mediapipe_repo> git clone -depth 1 https://github.com/google/mediapipe.git
# Change directory into MediaPipe root directory # Change directory into MediaPipe root directory
C:\Users\Username\mediapipe_repo> cd mediapipe C:\Users\Username\mediapipe_repo> cd mediapipe
@ -680,7 +680,7 @@ cameras. Alternatively, you use a video file as input.
6. Checkout MediaPipe repository. 6. Checkout MediaPipe repository.
```bash ```bash
username@DESKTOP-TMVLBJ1:~$ git clone https://github.com/google/mediapipe.git username@DESKTOP-TMVLBJ1:~$ git clone -depth 1 https://github.com/google/mediapipe.git
username@DESKTOP-TMVLBJ1:~$ cd mediapipe username@DESKTOP-TMVLBJ1:~$ cd mediapipe
``` ```
@ -771,7 +771,7 @@ This will use a Docker image that will isolate mediapipe's installation from the
2. Build a docker image with tag "mediapipe". 2. Build a docker image with tag "mediapipe".
```bash ```bash
$ git clone https://github.com/google/mediapipe.git $ git clone -depth 1 https://github.com/google/mediapipe.git
$ cd mediapipe $ cd mediapipe
$ docker build --tag=mediapipe . $ docker build --tag=mediapipe .