Git Product home page Git Product logo

contextnet's Introduction

Welcome, my friends ๐Ÿ˜„

AI Research Engineer in ReturnZero

Research interests

Neural speech recognition, Neural speech synthesis, MLOps, Deep-learning, Machine-learning

WMI Linkedin Facebook

contextnet's People

Contributors

upskyy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

contextnet's Issues

ContextNet's decode function hidden or hidden_states

ContextNet decode function in model.py

@torch.no_grad()
    def decode(self, encoder_output: Tensor, max_lengths: int) -> Tensor:
        r"""
        Decode `encoder_output`.

        Args:
            **encoder_output** (torch.FloatTensor): A output sequence of encoder. `FloatTensor` of size
                ``(seq_length, dimension)``
            **max_lengths** (int): Max decoding time step

        Returns:
            **decode_output** (torch.LongTensor): Result of model predictions
        """
        token_list = list()
        hidden_states = None

        token = torch.LongTensor([[self.decoder.sos_id]])
        if torch.cuda.is_available():
            token = token.cuda()

        for i in range(max_lengths):
            decoder_output, hidden = self.decoder(token, hidden_states=hidden_states)
            output = self.joint(encoder_output[i].view(-1), decoder_output.view(-1))
            prediction_token = output.topk(1)[1]
            token = prediction_token.unsqueeze(1)  # (1, 1)
            prediction_token = int(prediction_token.item())
            token_list.append(prediction_token)

        return torch.LongTensor(token_list)

is bug or not for this code:
decoder_output, hidden = self.decoder(token, hidden_states=hidden_states)

hidden is nerver used. hidden should be hidden_states?

what input size is

I would like to ask what input size can be understood as a voice signal

Convolution Layers

Great work @upskyy Very easy to follow implementation. A couple of questions and I appreciate the clarification:

  • Did you verify whether this implementation is trainable?
  • I see that most implementations out there use SeparableConv instead of Conv. Have you used SeparableConv to see whether it makes a difference?
  • It seems the squeeze excitation block is missing one conv layer right in the beginning of the block

what's the meaning of transpose in AudioEncouder file?

I check the dimension of the files. I find that we don't need to write this code 'output = inputs.transpose(1, 2)' in the file 'audio_encoder.py'. Instead,we write 'output = inputs'. Iโ€˜m not sure if my idea is right. I want to know what the author's idea is.

depthwise layer๋ฅผ ์‚ฌ์šฉํ•˜๋Š” ๊ฒŒ ๋งž๋‚˜์š”?

์ฝ”๋“œ๋ฅผ ๋Œ๋ ค๋ณด์ง€๋Š” ์•Š์•˜์ง€๋งŒ ๋‚ด๋ถ€์˜ 1d conv layer๊ฐ€ depthwise ๋ ˆ์ด์–ด์ธ ๊ฒƒ์œผ๋กœ ์•„๋Š”๋ฐ,
๊ทธ๋ ‡๋‹ค๋ฉด in_channels = out_channnels = groups๊ฐ€ ๋˜์•ผ ํ•˜๋Š” ๊ฒƒ ์•„๋‹Œ๊ฐ€์š”?

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.