r9y9 / deepvoice3_pytorch

PyTorch implementation of convolutional neural networks-based text-to-speech synthesis models
https://r9y9.github.io/deepvoice3_pytorch/
Other
1.97k stars 485 forks source link

Google Colab (TF 2.0) #196

Open biligunb opened 4 years ago

biligunb commented 4 years ago

Hi it seems the code for Google Colab is not working currently.

import hparams
import json

# Load parameters from preset
with open(preset) as f:
  hparams.hparams.parse_json(f.read())

image


I am no expert. So I could not make it to use TF2.0.

tugstugi commented 4 years ago

Add %tensorflow_version 1.x at the top of the notebook and execute it. Colab now uses per default TF2, if you use this magic command, it will use TF1.

Kreijstal commented 4 years ago

@tugstugi that works but it should work on google colab out of the box, maybe they should be changed?

turian commented 2 years ago

ValueError: Tensorflow 1 is unsupported in Colab.

Your notebook should be updated to use Tensorflow 2.
See the guide at https://www.tensorflow.org/guide/migrate#migrate-from-tensorflow-1x-to-tensorflow-2.