-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module 'tensorflow' has no attribute 'placeholder' #403
Comments
Edit: Seems like this code does not like TensorFlow 2. I will attempt the workaround I found and report back. Note: Reinstalling TensorFlow with a lower version does not seem to work because the Python version is too high. Update: Patching the script with the following works to some extent, but causes
Update: Make a new
then run:
|
Now it crashes because cuDNN handle could not be created. Is there a way to limit memory usage? (have 6GB VRAM, NVIDIA GTX 1660. Hits maximum memory use immediately) |
Forcing the CUDA instance to use less memory by patching the
|
Your sequence length seems fairly long (87040), that could cause the OOM. Try chunking the audio to around one second segments. Those type errors could be related to TF1 / TF2 discrepancies |
I tried only the shortest clips, and it seems to work. What could be the maximum length per voice sample? Currently using 5 seconds or less per clip at 24000Hz. (total: 592) |
I’d say the simplest way to find out is just to experiment. No need to use actual data, you could just generate random tensors of specific lengths. Calculating memory consumption is not straightforward, since it depends also on model size (need to store activations and gradients, which scales in both sequence length and network depth) |
Just to share my experience, I am using a dataset with one sentence per voice sample. So the audios have around 3 to 5 seconds each. |
I'm using Anaconda3 and the latest version of this repository. I have manually installed librosa and TensorFlow (following Anaconda tutorial).
Environment: Anaconda Prompt (Windows 10), TensorFlow set up as "tf" using
conda create -n tf tensorflow
See attached picture for the error. The same happens when using
tf-gpu
.I'm sure I did something wrong but I don't know what it is.
The text was updated successfully, but these errors were encountered: