From 9ec4769b5af3154f173001e86f87435d8475eec2 Mon Sep 17 00:00:00 2001 From: Pooya Davoodi Date: Tue, 8 Jan 2019 11:20:41 -0800 Subject: [PATCH] Add install_dependencies.sh for image-classification Also don't use -e for pip install. --- .../install_dependencies.sh | 30 +++++++++++++++++++ .../object_detection/install_dependencies.sh | 6 ++-- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100755 tftrt/examples/image-classification/install_dependencies.sh diff --git a/tftrt/examples/image-classification/install_dependencies.sh b/tftrt/examples/image-classification/install_dependencies.sh new file mode 100755 index 000000000..27fd5767f --- /dev/null +++ b/tftrt/examples/image-classification/install_dependencies.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +# +# Copyright 2018 The TensorFlow Authors. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============================================================================= + +set +e + +TF_MODELS_DIR=$PWD/../third_party/models + +echo Install slim +pushd $TF_MODELS_DIR/research/slim +pip install . +popd + +echo Install requests +pip install requests + diff --git a/tftrt/examples/object_detection/install_dependencies.sh b/tftrt/examples/object_detection/install_dependencies.sh index a1041f450..81ed5c983 100755 --- a/tftrt/examples/object_detection/install_dependencies.sh +++ b/tftrt/examples/object_detection/install_dependencies.sh @@ -56,15 +56,15 @@ popd echo Install tensorflow/models/research... pushd $RESEARCH_DIR -pip install -e . +pip install . popd echo Install tensorflow/models/research/slim... pushd $SLIM_DIR -pip install -e . +pip install . popd echo Install cocodataset/cocoapi/PythonAPI... pushd $PYCOCO_DIR -pip install -e . +pip install . popd