Giter Club home page Giter Club logo

Comments (1)

david-gimeno avatar david-gimeno commented on August 14, 2024

As we have 21 landmarks of 5 coordinates for each N frame of each W window when dealing with hand landmarks:

  • Original Shape: (W, N, 2, 21, 5)
  • Input Transformer Shape: (N, embed_size)

So, we need a linear projection layer to transform the dimension of each modality to the embed_size of the Transformer. I am a bit confused how to preserve the distinction between both hands. Because the order in the forward pass would be:

  1. x = linear_proj(x)
  2. x += pos_emb
  3. x += modality_emb
  4. x[:, :, :embed_size//2] += left_hand_type_emb & x[:, :, embed_size//2:] += right_hand_type_emb
  5. x = transformer(x)

The other option is feeding the linear_proj with a reshaped tensor of (W, N, 2, 21*5), but then we have other problems when reshaping to the shape it should be.

This is for next week. See you tomorrow :)

from multimodal-depression-from-video.

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.