Code Monkey home page Code Monkey logo

Comments (6)

chrisdonahue avatar chrisdonahue commented on July 17, 2024

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 ./

from wavegan.

andimarafioti avatar andimarafioti commented on July 17, 2024

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?

from wavegan.

spagliarini avatar spagliarini commented on July 17, 2024

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.

from wavegan.

chrisdonahue avatar chrisdonahue commented on July 17, 2024

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).

from wavegan.

spagliarini avatar spagliarini commented on July 17, 2024

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'

from wavegan.

chrisdonahue avatar chrisdonahue commented on July 17, 2024

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.

from wavegan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.