Code Monkey home page Code Monkey logo

Comments (5)

jwb95 avatar jwb95 commented on July 17, 2024 1

data_sample_rate describes the amount of samples used to represent 1 second of audio. cd-standard is 44100 for example. data_slice_len refers to the reception size of the model. e.g. with a data_slice_len of 44100 and s data_sample_rate of 44100 you could let the model learn to generate one second of 44100hz audio.

from wavegan.

chrisdonahue avatar chrisdonahue commented on July 17, 2024

Sure, you should be able to modify the WaveGAN generator to support 8 second samples by increasing the starting dim_mul variable:

https://github.com/chrisdonahue/wavegan/blob/master/wavegan.py#L43

Alternatively you can just halve whatever sample rate you're working with using --data_sample_rate to go from 4 to 8 second clips.

from wavegan.

jwb95 avatar jwb95 commented on July 17, 2024

Hi,
I have a modell which I trained with a SLICE_LEN of only 16384 for test purposes.
So this modell is capable of generating ~1 second at a sample rate of 16000.

I increased the dim_mul from 16 to 32, 64, 128, 256... without noticing a difference in the length.
Halving the sample rate obviously worked to go from ~1 sec up to ~2 sec clips.

Could you give me clearer insight on how to set the dim_mul to achieve longer audio? Since I'm not quite sure what this parameter actually manipulates I'm also wondering how this will affect the quality of the generated audio.

Thanks

from wavegan.

chrisdonahue avatar chrisdonahue commented on July 17, 2024

Sorry for the late reply. dim_mul will not change the length of the audio. However, for longer slices (as specified by the data_slice_len parameter), you will likely need to reduce the value of dim_mul or train_batch_size to ensure that the model still fits into memory.

from wavegan.

jvel07 avatar jvel07 commented on July 17, 2024

Hi, so under this context, what's the difference between data_sample_rate and data_slice_len?

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.