GithubHelp home page GithubHelp logo

Train WaveRnn AttributeError about wavernn HOT 5 CLOSED

wierzs avatar wierzs commented on August 17, 2024
Train WaveRnn AttributeError

from wavernn.

Comments (5)

AhmadAlAmin21 avatar AhmadAlAmin21 commented on August 17, 2024

I'm not sure if we have the same issue, but try going to the "utils" folder, open the "dataset.py" file, and in line 54 change "num_workers=2," to "num_workers=0,".

tell me if that works

from wavernn.

wierzs avatar wierzs commented on August 17, 2024

Hello,
Thank you so much for giving input! I tried this and now I have another error. At least this is progress.
Now it's saying:
TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

I guess I just have to find out where to add .cpu() now. Thank you!

from wavernn.

AhmadAlAmin21 avatar AhmadAlAmin21 commented on August 17, 2024

np man glad i could help, i never had that other issue you are now having so cant help with that

from wavernn.

wierzs avatar wierzs commented on August 17, 2024

Ok, I got it! In train_wavernn.py, line 129:
Change if np.isnan(grad_norm):
to if np.isnan(grad_norm.cpu()):

It's training now. Thank you @Ahmad21A for the help!

from wavernn.

AhmadAlAmin21 avatar AhmadAlAmin21 commented on August 17, 2024

oh yeaaa the isnan thing, i just deleted that line lol, idk anything about python but i figured out how to run this repo by sheer luck

from wavernn.

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.