From 0a9ba1da28c054e8f8e2f10775f3470e4bc86bf2 Mon Sep 17 00:00:00 2001 From: gamwe6 <30292454+gamwe6@users.noreply.github.com> Date: Mon, 18 May 2020 17:45:22 +0000 Subject: [PATCH] Simplify export PYTHONPATH --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a6247a1..7478760 100644 --- a/README.md +++ b/README.md @@ -116,9 +116,7 @@ Background Matting needs a segmentation mask for the subject. We use tensorflow ``` cd Background-Matting/ git clone https://github.com/tensorflow/models.git -cd models/research/ -export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim -cd ../.. +export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/models/research/slim python test_segmentation_deeplab.py -i sample_data/input ``` @@ -173,9 +171,8 @@ Repeat the same for `sample_video_fixed` 2. Segmentation ``` -cd Background-Matting/models/research/ -export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim -cd ../.. +cd Background-Matting/ +export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/models/research/slim python test_segmentation_deeplab.py -i sample_video/input ```