GithubHelp home page GithubHelp logo

Comments (9)

JiaYK avatar JiaYK commented on May 26, 2024 1

@lucidrains Thank you very much for your reply!
Your efficiency is really high, you released a new version so quickly.
Regarding the implementation of the third point, I see that you use ResnetBlock, each ResnetBlock contains 2 convolutions and SiLU (it seems to be generally better than Relu), does this mean that each ResnetBlock is equal to 2 convolutions? I'm not very sure~ Maybe it really needs running experiments to determine the effect

from naturalspeech2-pytorch.

JiaYK avatar JiaYK commented on May 26, 2024 1

There is another small issue. When reproducing the NS2 paper, I used Torchinfo to count the parameter count. Each module follows the settings written in the paper (default configuration for those not written) and will never match.

For example, in the Phoneme Encoder, I changed the FeedForward in the code to the Convolutional FeedForward mentioned in the paper. When I set the Conv1D Filter Size of two 1D convolutions to 2048 and Kernel Size to 9, the parameter quantity is 119M. Only when one Kernel Size is 9 and the other Kernel Size is 1 can the difference be not much, which is 69M. It's not equivalent to 72M in the paper

Or Audio Codec, I initialized it as described in the paper

from audiolm_pytorch import SoundStream, EncodecWrapper
SoundStream(rq_num_quantizers=16, 
codebook_size=1024, 
codebook_dim=256,
strides=(2, 4, 5, 5))

the parameter quantity is 35M, only by modifying channels and use_local_attn can only be changed to the 27M mentioned in the paper. How did you solve the problem of mismatched parameter quantities? Or ignore it? Is it acceptable if the order of magnitude is correct?

Looking forward to your recovery very much!

from naturalspeech2-pytorch.

lucidrains avatar lucidrains commented on May 26, 2024 1

@JiaYK yup, just the general ballpark is ok

from my point of view, the field is an approximate science rather than delicate engineering. hit on a few main ideas and it should be fine

from naturalspeech2-pytorch.

lucidrains avatar lucidrains commented on May 26, 2024

@JiaYK hey yes, i am aware of 1 and will get that done today!

for 2, RMSNorm has been used successfully in a number of large language models by now (alphacode, llama). I think we can safely start using it

for 3, i was actually not sure about that, but will be adding residuals (it will be redone as resnet blocks)

from naturalspeech2-pytorch.

lucidrains avatar lucidrains commented on May 26, 2024

@JiaYK ok, 1 should be done, will probably get 3 done today too

from naturalspeech2-pytorch.

lucidrains avatar lucidrains commented on May 26, 2024

@JiaYK ok, 3 should be done too! let me know what you think

from naturalspeech2-pytorch.

lucidrains avatar lucidrains commented on May 26, 2024

@JiaYK oh true, yea, let's make that a hyperparameter

from naturalspeech2-pytorch.

lucidrains avatar lucidrains commented on May 26, 2024

@JiaYK although i guess it is still sensitive to certain decision in the neural network. not very apt description

let's just say... very different than traditional engineering

from naturalspeech2-pytorch.

JiaYK avatar JiaYK commented on May 26, 2024

Thank you very much for your reply~ Then I will not worry about the specific parameters, and give priority to realizing all the functions!

from naturalspeech2-pytorch.

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.