Giter VIP home page Giter VIP logo

Hi, I have a question. If "x.shape[1] == L+self.num_mem_token", then it seems that the i in "mode: x[:, i, :]" does not correspond to the position of mode, because the first position is mem _token. about actionmae HOT 8 CLOSED

SmallXieGithub avatar SmallXieGithub commented on August 16, 2024
Hi, I have a question. If "x.shape[1] == L+self.num_mem_token", then it seems that the i in "mode: x[:, i, :]" does not correspond to the position of mode, because the first position is mem _token.

from actionmae.

Comments (8)

SmallXieGithub avatar SmallXieGithub commented on August 16, 2024

Hello?

from actionmae.

sangminwoo avatar sangminwoo commented on August 16, 2024

Can you elaborate on your question a bit more?

from actionmae.

SmallXieGithub avatar SmallXieGithub commented on August 16, 2024

Should the code (else: x = x[:, self.num_mem_token:, :])be added here(https://github.com/sangminwoo/ActionMAE/blob/4ae5a813ebf0ea9f4ba3655d6cefb215642309c4/lib/modeling/actionmae.py#LL363C1-L363C1)?

from actionmae.

sangminwoo avatar sangminwoo commented on August 16, 2024

In L359, if "x.shape[1] != L+self.num_mem_token" is False, in which line did you see the error?

from actionmae.

SmallXieGithub avatar SmallXieGithub commented on August 16, 2024

In L359, if "x.shape[1] ! = L+self.num_mem_token" is false, then L226 will not be executed and the cls token will be preserved, resulting in errors in L365-368 (the indexes seem to be out of correspondence).

from actionmae.

SmallXieGithub avatar SmallXieGithub commented on August 16, 2024

Hi?

from actionmae.

sangminwoo avatar sangminwoo commented on August 16, 2024

Sorry for the late reply.
I acknowledge your point. Please try the fix, and report back if you see any further errors.
Many thanks.

from actionmae.

SmallXieGithub avatar SmallXieGithub commented on August 16, 2024

Thank you very much for your answer.

from actionmae.

Related Issues (6)

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.