【发布时间】:2020-06-19 14:47:23
【问题描述】:
我正在尝试在 Google Colab 中使用此代码在 Github 中以 repo 形式使用 Tensorflow 实现 Tacotron 语音合成,下面是我的代码,并且在使用本地主机服务器的步骤之前工作良好,我如何运行本地主机服务器在 Google Colab 的笔记本中?
我的代码:
!pip install tensorflow==1.3.0
import tensorflow as tf
print("You are using Tensorflow",tf.__version__)
!git clone https://github.com/keithito/tacotron.git
cd tacotron
pip install -r requirements.txt
!curl https://data.keithito.com/data/speech/tacotron-20180906.tar.gz | tar xzC /tmp
!python demo_server.py --checkpoint /tmp/tacotron-20180906/model.ckpt #requires localhost
不幸的是,从 Google Colab 在本地模式下运行对我没有帮助,因为要做到这一点,我需要在我的机器中下载太大的数据。
下面是我的最后一个输出,这里我应该打开localhost:8888来完成工作,所以我之前提到有没有办法在Google Colaboratory中运行localhost?
【问题讨论】:
标签: python tensorflow jupyter-notebook google-colaboratory