GithubHelp home page GithubHelp logo

auau's Introduction

Hi, I'm Moreno La Quatra


I'm a fellow researcher at STMLab.

  • Iโ€™m interested in ๐Ÿ“ NLP, ๐Ÿ”‰ Audio processing and ๐Ÿ–ผ๏ธ Multimodal Learning.
  • If you are a master student ๐Ÿ‘จโ€๐ŸŽ“ ๐Ÿ‘ฉโ€๐ŸŽ“ interested in some of the fields above, you may want to take a look to this repo.
  • I'm looking to collaborate on the analysis of spoken content ๐Ÿ—ฃ๏ธ, get in touch if you are interested!
  • ๐Ÿ“ซ Reach me by mail or on Twitter.

auau's People

Contributors

fgiobergia avatar morenolaquatra avatar

Watchers

 avatar  avatar

Forkers

fgiobergia

auau's Issues

[Code refactoring] Move all Augmenter methods to their own classes

I have yet to take a closer look at all of the augmenting functions, but it seems to be that they would benefit from a refactoring where they are assigned to a separate class that extends a base class Augmenter. Something along the lines of:

class WhiteNoise(Augmenter):
    def __init__(self, noise_factor=0.25):
        ...
    def __call__(self, signal):
        """ Adding white noise, processing on self.device
        """
        signal = self._tensor_on_device(signal)
        signal = self._check_and_convert_mono(signal)
        noise_signal = torch.normal(0, signal.std(), signal.size()).to(self.device)
        augmented_signal = signal + noise_signal * self.noise_factor
        return augmented_signal

To be then used as:

wn = WhiteNoise(noise_factor=0.1)
wn(signal)

This, on top of being (imho) cleaner, also paves the way for a pipeline-oriented implementation:

pipeline = SomePipelineClass([WhiteNoise(...), Resample(...), LowpassFilter(...)])
pipeline(signal)

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.