Skip to content
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

Error in training #9

Closed
Varshithpolu opened this issue Jul 4, 2018 · 6 comments
Closed

Error in training #9

Varshithpolu opened this issue Jul 4, 2018 · 6 comments

Comments

@Varshithpolu
Copy link

Hi
I am having trouble training with my data
I sucessfully created tfrecord file
screenshot from 2018-07-04 22 46 30

but when i use this data to train the GAN it has this problem

screenshot from 2018-07-02 10-51-11

@chrisdonahue
Copy link
Owner

Generally this error arises when your training directory is wrong or the tfrecords are actually empty files. Check your command line argument for the directory of your tfrecords. If the directory is correct, try previewing one: python data/preview_tfrecord.py examples-00-of-64.tfrecord ./

@andimarafioti
Copy link
Contributor

I had the same issue and in my case, I was using the actual tf.record file as the input instead of the folder where the files are.
This is ok:
python3 data/preview_tfrecord.py ./data/piano/train-0-of-8.tfrecord ./
This gives the error described in this issue:
python3 train_wavegan.py train ./train --data_dir data/piano/train-0-of-8.tfrecord
This is ok:
python3 train_wavegan.py train ./train --data_dir data/piano

Hope this helps.

Btw, why are you creating several tf.records instead of a big one?

@spagliarini
Copy link

spagliarini commented Feb 6, 2019

I am facing the same problem with a dataset I created, how did you solve this?

I don't think it's empty my file because I had that issue and I solved it installing ffmpeg (as suggested in some issue here). And I'm using the folder not the actual file.

Thanks for the help.

@chrisdonahue
Copy link
Owner

If you are facing this issue still, I would strongly recommend pulling in the latest v2 update that we just released. This allows you to train a WaveGAN directly on a folder from MP3s/WAVs/OGGs/etc. Requires librosa (for MP3s/OGGs) or scipy (for WAVs).

@spagliarini
Copy link

spagliarini commented Feb 7, 2019

Hi!
Thanks for the advice and sorry for the inconvenience. I downladed the updated version and tried to start the training using python 3.6 without gpu. It starts so I assume I can read successfully the dataset directly from WAVs.

Then I tried with gpu using python 3.6

This is the error I obtain:
dataset = tf.data.Dataset.from_tensor_slices(fps)
AttributeError: module 'tensorflow' has no attribute 'data'

@chrisdonahue
Copy link
Owner

I'm not sure. It sounds like you might not have the latest version of TF installed. Try pip install --upgrade tensorflow-gpu. Otherwise I would Google around for that specific error because it doesn't seem related to the WaveGAN code itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants