You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/install.rst
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,22 +21,22 @@ Install Anaconda Python 3.7
21
21
22
22
- Go to `<https://www.anaconda.com/products/individual>`_ and click the "Download" button
23
23
- Download the `Python 3.7 64-Bit Graphical Installer <https://repo.anaconda.com/archive/Anaconda3-2020.02-Windows-x86_64.exe>`_ or the `32-Bit Graphical Installer <https://repo.anaconda.com/archive/Anaconda3-2020.02-Windows-x86.exe>`_ installer, per your system requirements
24
-
- Run the downloaded executable (``.exe``) file to begin the installation. See `here <https://docs.anaconda.com/anaconda/install/windows/>`_ for more details
24
+
- Run the downloaded executable (``.exe``) file to begin the installation. See `here <https://docs.anaconda.com/anaconda/install/windows/>`__ for more details
25
25
- (Optional) In the next step, check the box "Add Anaconda3 to my PATH environment variable". This will make Anaconda your default Python distribution, which should ensure that you have the same default Python distribution across all editors.
26
26
27
27
.. tab:: Linux
28
28
29
29
- Go to `<https://www.anaconda.com/products/individual>`_ and click the "Download" button
30
30
- Download the `Python 3.7 64-Bit (x86) Installer <https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh>`_
31
-
- Run the downloaded bash script (``.sh``) file to begin the installation. See `here <https://docs.anaconda.com/anaconda/install/linux/>`_ for more details.
31
+
- Run the downloaded bash script (``.sh``) file to begin the installation. See `here <https://docs.anaconda.com/anaconda/install/linux/>`__ for more details.
32
32
- When prompted with the question "Do you wish the installer to prepend the Anaconda<2 or 3> install location to PATH in your /home/<user>/.bashrc ?", answer "Yes". If you enter "No", you must manually add the path to Anaconda or conda will not work.
33
33
34
34
Create a new Anaconda virtual environment
35
35
*****************************************
36
36
- Open a new `Terminal` window
37
37
- Type the following command:
38
38
39
-
.. code-block:: posh
39
+
.. code-block:: default
40
40
41
41
conda create -n tensorflow pip python=3.8
42
42
@@ -48,7 +48,7 @@ Activate the Anaconda virtual environment
48
48
*****************************************
49
49
- Activating the newly created virtual environment is achieved by running the following in the `Terminal` window:
50
50
51
-
.. code-block:: posh
51
+
.. code-block:: default
52
52
53
53
conda activate tensorflow
54
54
@@ -73,21 +73,21 @@ Install the TensorFlow PIP package
73
73
**********************************
74
74
- Run the following command in a `Terminal` window:
- Run the following command in a `Terminal` window:
83
83
84
-
.. code-block:: posh
84
+
.. code-block:: default
85
85
86
86
python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
87
87
88
88
- Once the above is run, you should see a print-out similar to the one bellow:
89
89
90
-
.. code-block:: posh
90
+
.. code-block:: default
91
91
92
92
2020年06月22日 19:20:32.614181: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
93
93
2020年06月22日 19:20:32.620571: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
@@ -147,13 +147,13 @@ Install CUDA Toolkit
147
147
148
148
.. tab:: Windows
149
149
150
-
- Follow this `link <https://developer.nvidia.com/cuda-10.1-download-archive-update2?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exenetwork>`_ to download and install CUDA Toolkit 10.1
151
-
- Installation instructions can be found `here <https://docs.nvidia.com/cuda/archive/10.1/cuda-installation-guide-microsoft-windows/index.html>`_
150
+
- Follow this `link <https://developer.nvidia.com/cuda-10.1-download-archive-update2?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exenetwork>`__ to download and install CUDA Toolkit 10.1
151
+
- Installation instructions can be found `here <https://docs.nvidia.com/cuda/archive/10.1/cuda-installation-guide-microsoft-windows/index.html>`__
152
152
153
153
.. tab:: Linux
154
154
155
-
- Follow this `link <https://developer.nvidia.com/cuda-10.1-download-archive-update2?target_os=Linux&target_arch=x86_64>`_ to download and install CUDA Toolkit 10.1 for your Linux distribution.
156
-
- Installation instructions can be found `here <https://docs.nvidia.com/cuda/archive/10.1/cuda-installation-guide-linux/index.html>`_
155
+
- Follow this `link <https://developer.nvidia.com/cuda-10.1-download-archive-update2?target_os=Linux&target_arch=x86_64>`__ to download and install CUDA Toolkit 10.1 for your Linux distribution.
156
+
- Installation instructions can be found `here <https://docs.nvidia.com/cuda/archive/10.1/cuda-installation-guide-linux/index.html>`__
157
157
158
158
159
159
.. _cudnn_install:
@@ -201,7 +201,7 @@ Environment Setup
201
201
202
202
As per Section 7.1.1 of the `CUDA Installation Guide for Linux <https://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#install-linux>`_, append the following lines to ``~/.bashrc``:
2020年06月22日 20:24:31.355541: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
@@ -286,7 +286,7 @@ Downloading the TensorFlow Model Garden
286
286
- To download the models you can either use `Git <https://git-scm.com/downloads>`_ to clone the `TensorFlow Models repository <https://github.com/tensorflow/models>`_ inside the ``TensorFlow`` folder, or you can simply download it as a `ZIP <https://github.com/tensorflow/models/archive/master.zip>`_ and extract its contents inside the ``TensorFlow`` folder. To keep things consistent, in the latter case you will have to rename the extracted folder ``models-master`` to ``models``.
287
287
- You should now have a single folder named ``models`` under your ``TensorFlow`` folder, which contains another 4 folders as such:
288
288
289
-
.. code-block:: bash
289
+
.. code-block:: default
290
290
291
291
TensorFlow/
292
292
└─ models/
@@ -311,7 +311,7 @@ This should be done as follows:
311
311
- Add ``<PATH_TO_PB>`` to your ``Path`` environment variable (see :ref:`set_env`)
312
312
- In a new `Terminal` [#]_, ``cd`` into ``TensorFlow/models/research/`` directory and run the following command:
Note that, according to the `package's instructions <https://github.com/philferriere/cocoapi#this-clones-readme>`_, Visual C++ 2015 build tools must be installed and on your path. If they are not, make sure to install them from `here <https://go.microsoft.com/fwlink/?LinkId=691126>`_.
363
+
Note that, according to the `package's instructions <https://github.com/philferriere/cocoapi#this-clones-readme>`_, Visual C++ 2015 build tools must be installed and on your path. If they are not, make sure to install them from `here <https://go.microsoft.com/fwlink/?LinkId=691126>`__.
364
364
365
365
.. tab:: Linux
366
366
367
367
Download `cocoapi <https://github.com/cocodataset/cocoapi>`_ to a directory of your choice, then ``make`` and copy the pycocotools subfolder to the ``Tensorflow/models/research`` directory, as such:
@@ -386,7 +386,7 @@ Install the Object Detection API
386
386
********************************
387
387
Installation of the Object Detection API is achieved by installing the ``object_detection`` package. This is done by running the following commands from within ``Tensorflow\models\research``:
388
388
389
-
.. code-block:: bash
389
+
.. code-block:: default
390
390
391
391
# From within TensorFlow/models/research/
392
392
cp object_detection/packages/tf2/setup.py .
@@ -396,7 +396,7 @@ Installation of the Object Detection API is achieved by installing the ``object_
396
396
397
397
During the above installation, you may observe the following error:
Copy file name to clipboardExpand all lines: docs/source/issues.rst
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Python crashes - TensorFlow GPU
10
10
11
11
If you are using :ref:`tensorflow_gpu` and when you try to run some Python object detection script (e.g. :ref:`test_tf_models`), after a few seconds, Windows reports that Python has crashed then have a look at the `Anaconda/Command Prompt` window you used to run the script and check for a line similar (maybe identical) to the one below:
12
12
13
-
.. code-block:: python
13
+
.. code-block:: default
14
14
15
15
2018年03月22日 03:07:54.623130: E C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY36円\tensorflow\stream_executor\cuda\cuda_dnn.cc:378] Loaded runtime CuDNN library: 7101 (compatibility version 7100) but source was compiled with 7003 (compatibility version 7000). If using a binary install, upgrade your CuDNN library to match. If building from sources, make sure the library loaded at runtime matches a compatible version specified during compile configuration.
16
16
@@ -25,7 +25,7 @@ Some known issues caused by the above are presented below:
25
25
26
26
- Failure to restart training of a model. Look for the following errors in the debugging:
27
27
28
-
.. code-block:: python
28
+
.. code-block:: default
29
29
30
30
2018年03月23日 03:03:10.326902: E C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY36円\tensorflow\stream_executor\cuda\cuda_dnn.cc:385] could not create cudnn handle: CUDNN_STATUS_ALLOC_FAILED
31
31
2018年03月23日 03:03:10.330475: E C:\tf_jenkins\workspace\rel-win\M\windows-gpu\PY36円\tensorflow\stream_executor\cuda\cuda_dnn.cc:352] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM
@@ -43,7 +43,7 @@ If the issue persists, then you're probably running out of memory. Try closing d
43
43
44
44
In some versions of Tensorflow, you may see errors that look similar to the ones below:
45
45
46
-
.. code-block:: python
46
+
.. code-block:: default
47
47
48
48
...
49
49
WARNING:tensorflow:Entity <bound method Conv.call of <tensorflow.python.layers.convolutional.Conv2D object at 0x000001E92103EDD8>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output. Cause: converting <bound method Conv.call of <tensorflow.python.layers.convolutional.Conv2D object at 0x000001E92103EDD8>>: AssertionError: Bad argument number for Name: 3, expecting 4
@@ -52,11 +52,11 @@ In some versions of Tensorflow, you may see errors that look similar to the ones
52
52
53
53
These warnings appear to be harmless form my experience, however they can saturate the console with unnecessary messages, which makes it hard to scroll through the output of the training/evaluation process.
54
54
55
-
As reported `here <https://github.com/tensorflow/tensorflow/issues/34551>`_, this issue seems to
55
+
As reported `here <https://github.com/tensorflow/tensorflow/issues/34551>`__, this issue seems to
56
56
be caused by a mismatched version of `gast <https://github.com/serge-sans-paille/gast/>`_. Simply
57
57
downgrading gast to version ``0.2.2`` seems to remove the warnings. This can be done by running:
58
58
59
-
.. code-block:: bash
59
+
.. code-block:: default
60
60
61
61
pip install gast==0.2.2
62
62
@@ -66,7 +66,7 @@ It is possible that when executing ``from object_detection.utils import label_ma
66
66
get the above error. As per the discussion is in `this Stack Overflow thread <https://stackoverflow.com/a/61961016/3474873>`_,
67
67
upgrading the Python protobuf version seems to solve this issue:
68
68
69
-
.. code-block:: bash
69
+
.. code-block:: default
70
70
71
71
pip install --upgrade protobuf
72
72
@@ -77,7 +77,7 @@ upgrading the Python protobuf version seems to solve this issue:
77
77
When trying to export oyu trained model using the ``exporter_main_v2.py`` script, you may come
78
78
across an error that looks like this:
79
79
80
-
.. code-block:: bash
80
+
.. code-block:: default
81
81
:linenos:
82
82
:emphasize-lines: 9
83
83
@@ -104,13 +104,13 @@ summary of how this can be done:
104
104
105
105
- Change:
106
106
107
-
.. code-block:: python
107
+
.. code-block:: default
108
108
109
109
raise TypeError('Expected Operation, Variable, or Tensor, got ' + str(x))
110
110
111
111
to:
112
112
113
-
.. code-block:: python
113
+
.. code-block:: default
114
114
115
115
if not isinstance(x, str):
116
116
raise TypeError('Expected Operation, Variable, or Tensor, got ' + str(x))
0 commit comments