From 7795106dcd77cb4cd8682a47e9d993acde3aea25 Mon Sep 17 00:00:00 2001 From: sdll Date: Wed, 22 May 2019 12:27:39 +0300 Subject: [PATCH] [docs]: Add a recommendation to use venv --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index cc534180..cbfbb449 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,15 @@ A 2-step process to import your model: ## Step 1: Converting a [SavedModel](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/saved_model/README.md), [Keras h5](https://keras.io/getting-started/faq/#how-can-i-save-a-keras-model), [tf.keras SavedModel](https://www.tensorflow.org/api_docs/python/tf/contrib/saved_model/save_keras_model) or [TensorFlow Hub module](https://www.tensorflow.org/hub/) to a web-friendly format +0. Please make sure that you run in a Docker container or a virtual environment. The script pulls its own subset of TensorFlow, which might conflict with the existing TensorFlow/Keras installation. + +For example, [create and activate](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) a `venv` virtual environment in your current folder: + +```bash +$ virtualenv venv +$ . venv/bin/activate +``` + 1. Install the TensorFlow.js pip package: ```bash