Skip to content

Commit 7a10ac6

Browse files
authored
Merge pull request #85 from r9y9/pyplt-backend
Remove hard-coded switching backend of matplotlib and pyqt dependency
2 parents b22d0b1 + 2b90e08 commit 7a10ac6

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,19 @@ There are two important options used above:
296296

297297
If you are training multi-speaker model, speaker adaptation will only work **when `n_speakers` is identical**.
298298

299+
## Trouble shooting
300+
301+
### [#5](https://github.com/r9y9/deepvoice3_pytorch/issues/5) RuntimeError: main thread is not in main loop
302+
303+
304+
This may happen depending on backends you have for matplotlib. Try changing backend for matplotlib and see if it works as follows:
305+
306+
```
307+
MPLBACKEND=Qt5Agg python train.py ${args...}
308+
```
309+
310+
In [#78](https://github.com/r9y9/deepvoice3_pytorch/pull/78#issuecomment-385327057), engiecat reported that changing the backend of matplotlib from Tkinter(TkAgg) to PyQt5(Qt5Agg) fixed the problem.
311+
299312
## Acknowledgements
300313

301314
Part of code was adapted from the following projects:

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def create_readme_rst():
9494
"tensorboardX",
9595
"nnmnkwii >= 0.0.11",
9696
"requests",
97-
"PyQt5",
9897
],
9998
"test": [
10099
"nose",

train.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@
5757

5858
fs = hparams.sample_rate
5959

60-
# Prevent Issue #5
61-
plt.switch_backend('Qt5Agg')
62-
6360
global_step = 0
6461
global_epoch = 0
6562
use_cuda = torch.cuda.is_available()

0 commit comments

Comments
 (0)