Skip to content

Commit 45c078f

Browse files
authored
Update faq.rst
1 parent 95c4ca2 commit 45c078f

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

docs/user/faq.rst

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,6 @@ Researcher
3333
For people from academia, TensorLayer was originally developed by PhD students who facing issues with other libraries on implement novel algorithm. Installing TensorLayer in editable mode is recommended, so you can extend your methods in TensorLayer.
3434
For research related to image processing such as image captioning, visual QA and etc., you may find it is very helpful to use the existing `Tf-Slim pre-trained models <https://github.com/tensorflow/models/tree/master/slim#Pretrained>`__ with TensorLayer (a specially layer for connecting Tf-Slim is provided).
3535

36-
Visualization
37-
===============
38-
39-
Cannot Save Image
40-
-----------------------
41-
42-
If you run the script via SSH control, sometimes you may find the following error.
43-
44-
.. code-block:: bash
45-
46-
_tkinter.TclError: no display name and no $DISPLAY environment variable
47-
48-
If this happens, run ``sudo apt-get install python3-tk`` or ``import matplotlib`` and ``matplotlib.use('Agg')`` before ``import tensorlayer as tl``.
49-
Alternatively, add the following code into the top of ``visualize.py`` or in your own code.
50-
51-
.. code-block:: python
52-
53-
import matplotlib
54-
matplotlib.use('Agg')
55-
import matplotlib.pyplot as plt
56-
5736

5837
Install Master Version
5938
========================

0 commit comments

Comments
 (0)