Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fee5f84

Browse files
committed
Fixed sphinx warnings
1 parent cb7e0e8 commit fee5f84

File tree

3 files changed

+81
-76
lines changed

3 files changed

+81
-76
lines changed

‎docs/source/install.rst‎

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ Install Anaconda Python 3.7
2121

2222
- Go to `<https://www.anaconda.com/products/individual>`_ and click the "Download" button
2323
- 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
2525
- (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.
2626

2727
.. tab:: Linux
2828

2929
- Go to `<https://www.anaconda.com/products/individual>`_ and click the "Download" button
3030
- 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.
3232
- 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.
3333

3434
Create a new Anaconda virtual environment
3535
*****************************************
3636
- Open a new `Terminal` window
3737
- Type the following command:
3838

39-
.. code-block:: posh
39+
.. code-block:: default
4040
4141
conda create -n tensorflow pip python=3.8
4242
@@ -48,7 +48,7 @@ Activate the Anaconda virtual environment
4848
*****************************************
4949
- Activating the newly created virtual environment is achieved by running the following in the `Terminal` window:
5050

51-
.. code-block:: posh
51+
.. code-block:: default
5252
5353
conda activate tensorflow
5454
@@ -73,21 +73,21 @@ Install the TensorFlow PIP package
7373
**********************************
7474
- Run the following command in a `Terminal` window:
7575

76-
.. code-block:: posh
76+
.. code-block:: default
7777
7878
pip install --ignore-installed --upgrade tensorflow==2.2.0
7979
8080
Verify your Installation
8181
************************
8282
- Run the following command in a `Terminal` window:
8383

84-
.. code-block:: posh
84+
.. code-block:: default
8585
8686
python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
8787
8888
- Once the above is run, you should see a print-out similar to the one bellow:
8989

90-
.. code-block:: posh
90+
.. code-block:: default
9191
9292
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
9393
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
147147

148148
.. tab:: Windows
149149

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>`__
152152

153153
.. tab:: Linux
154154

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>`__
157157

158158

159159
.. _cudnn_install:
@@ -201,7 +201,7 @@ Environment Setup
201201

202202
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``:
203203

204-
.. code-block:: bash
204+
.. code-block:: default
205205
206206
# CUDA related exports
207207
export PATH=/usr/local/cuda-10.1/bin${PATH:+:${PATH}}
@@ -220,7 +220,7 @@ Verify the installation
220220

221221
- Run the following command in a **NEW** `Terminal` window:
222222

223-
.. code-block:: bash
223+
.. code-block:: default
224224
225225
python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"
226226
@@ -230,7 +230,7 @@ Verify the installation
230230

231231
- Once the above is run, you should see a print-out similar to the one bellow:
232232

233-
.. code-block:: bash
233+
.. code-block:: default
234234
:emphasize-lines: 1,2,6,7,8,9,10,11,12,20,21,22,23,24,25,26,31
235235
236236
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
286286
- 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``.
287287
- You should now have a single folder named ``models`` under your ``TensorFlow`` folder, which contains another 4 folders as such:
288288

289-
.. code-block:: bash
289+
.. code-block:: default
290290
291291
TensorFlow/
292292
└─ models/
@@ -311,7 +311,7 @@ This should be done as follows:
311311
- Add ``<PATH_TO_PB>`` to your ``Path`` environment variable (see :ref:`set_env`)
312312
- In a new `Terminal` [#]_, ``cd`` into ``TensorFlow/models/research/`` directory and run the following command:
313313

314-
.. code-block:: bash
314+
.. code-block:: default
315315
316316
# From within TensorFlow/models/research/
317317
protoc object_detection/protos/*.proto --python_out=.
@@ -324,15 +324,15 @@ This should be done as follows:
324324

325325
.. tab:: Windows Powershell
326326

327-
.. code-block:: bash
327+
.. code-block:: default
328328
329329
# From within TensorFlow/models/research/
330330
Get-ChildItem object_detection/protos/*.proto | foreach {protoc "object_detection/protos/$($_.Name)" --python_out=.}
331331
332332
333333
.. tab:: Command Prompt
334334

335-
.. code-block:: bash
335+
.. code-block:: default
336336
337337
# From within TensorFlow/models/research/
338338
for /f %i in ('dir /b object_detection\protos\*.proto') do protoc object_detection\protos\%i --python_out=.
@@ -354,19 +354,19 @@ As of TensorFlow 2.x, the ``pycocotools`` package is listed as `a dependency of
354354

355355
Run the following command to install ``pycocotools`` with Windows support:
356356

357-
.. code-block:: bash
357+
.. code-block:: default
358358
359359
pip install cython
360360
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
361361
362362
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>`_.
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>`__.
364364

365365
.. tab:: Linux
366366

367367
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:
368368

369-
.. code-block:: bash
369+
.. code-block:: default
370370
371371
git clone https://github.com/cocodataset/cocoapi.git
372372
cd cocoapi/PythonAPI
@@ -386,7 +386,7 @@ Install the Object Detection API
386386
********************************
387387
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``:
388388

389-
.. code-block:: bash
389+
.. code-block:: default
390390
391391
# From within TensorFlow/models/research/
392392
cp object_detection/packages/tf2/setup.py .
@@ -396,7 +396,7 @@ Installation of the Object Detection API is achieved by installing the ``object_
396396

397397
During the above installation, you may observe the following error:
398398

399-
.. code-block:: bash
399+
.. code-block:: default
400400
401401
ERROR: Command errored out with exit status 1:
402402
command: 'C:\Users\sglvladi\Anaconda3\envs\tf2\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\sglvladi\\AppData\\Local\\Temp\\pip-install-yn46ecei\\pycocotools\\setup.py'"'"'; __file__='"'"'C:\\Users\\sglvladi\\AppData\\Local\\Temp\\pip-install-yn46ecei\\pycocotools\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\sglvladi\AppData\Local\Temp\pip-record-wpn7b6qo\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\sglvladi\Anaconda3\envs\tf2\Include\pycocotools'
@@ -429,15 +429,15 @@ Test your Installation
429429

430430
To test the installation, run the following command from within ``Tensorflow\models\research``:
431431

432-
.. code-block:: bash
432+
.. code-block:: default
433433
434434
# From within TensorFlow/models/research/
435435
python object_detection/builders/model_builder_tf2_test.py
436436
437437
Once the above is run, allow some time for the test to complete and once done you should observe a
438438
printout similar to the one below:
439439

440-
.. code-block:: bash
440+
.. code-block:: default
441441
442442
...
443443
[ OK ] ModelBuilderTF2Test.test_create_ssd_models_from_config

‎docs/source/issues.rst‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Python crashes - TensorFlow GPU
1010

1111
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:
1212

13-
.. code-block:: python
13+
.. code-block:: default
1414
1515
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.
1616
@@ -25,7 +25,7 @@ Some known issues caused by the above are presented below:
2525

2626
- Failure to restart training of a model. Look for the following errors in the debugging:
2727

28-
.. code-block:: python
28+
.. code-block:: default
2929
3030
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
3131
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
4343

4444
In some versions of Tensorflow, you may see errors that look similar to the ones below:
4545

46-
.. code-block:: python
46+
.. code-block:: default
4747
4848
...
4949
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
5252
5353
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.
5454

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
5656
be caused by a mismatched version of `gast <https://github.com/serge-sans-paille/gast/>`_. Simply
5757
downgrading gast to version ``0.2.2`` seems to remove the warnings. This can be done by running:
5858

59-
.. code-block:: bash
59+
.. code-block:: default
6060
6161
pip install gast==0.2.2
6262
@@ -66,7 +66,7 @@ It is possible that when executing ``from object_detection.utils import label_ma
6666
get the above error. As per the discussion is in `this Stack Overflow thread <https://stackoverflow.com/a/61961016/3474873>`_,
6767
upgrading the Python protobuf version seems to solve this issue:
6868

69-
.. code-block:: bash
69+
.. code-block:: default
7070
7171
pip install --upgrade protobuf
7272
@@ -77,7 +77,7 @@ upgrading the Python protobuf version seems to solve this issue:
7777
When trying to export oyu trained model using the ``exporter_main_v2.py`` script, you may come
7878
across an error that looks like this:
7979

80-
.. code-block:: bash
80+
.. code-block:: default
8181
:linenos:
8282
:emphasize-lines: 9
8383
@@ -104,13 +104,13 @@ summary of how this can be done:
104104

105105
- Change:
106106

107-
.. code-block:: python
107+
.. code-block:: default
108108
109109
raise TypeError('Expected Operation, Variable, or Tensor, got ' + str(x))
110110
111111
to:
112112

113-
.. code-block:: python
113+
.. code-block:: default
114114
115115
if not isinstance(x, str):
116116
raise TypeError('Expected Operation, Variable, or Tensor, got ' + str(x))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /