Coder Social home page Coder Social logo

jokieleung / lpf-vqa Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 1.42 MB

the code for SIGIR 2021 "LPF: A Language-Prior Feedback Objective Function for De-biased Visual Question Answering"

License: BSD 3-Clause "New" or "Revised" License

HTML 98.69% Python 1.30% Shell 0.01%

lpf-vqa's Introduction

Hi πŸ‘‹, I'm Zujie Liang

Welcome! You are the visitor!

  • πŸ˜„ Hi there, this is Zujie Liang (or "Jokie Leung" in Cantonese). I am a master student at Sun Yat-Sen University (SYSU).
  • πŸ”­ My research interest includes Natural Language Processing, Machine Learning, and Computer Vision.
  • πŸ‘― I am open to collaboration on research, feel free to contact me via E-mail!
  • ⚑ Please check my homepage for my CV and latest update!

jokieleung's Github Stats

lpf-vqa's People

Contributors

jokieleung avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xiaoanshi

lpf-vqa's Issues

updw +LPF: mat1 and mat2 shapes cannot be multiplied (24588x1024 and 4800x1)

Dear scholar:

When I run python -m bootstrap.run -o rubi/options/vqacp2/lpf_updn.yaml
The code throw exceptions as follows:
LPF-VQA/rubi/models/networks/updn.py", line 90, in logits logits = self.linear(joint_repr)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (24588x1024 and 4800x1)

ζˆ‘η›΄ζŽ₯ε°†q_dim ζ”ΉδΈΊ1024 ε³ε―θ·‘ι€š
class NewAttention(nn.Module):
def init(self, v_dim, q_dim, num_hid, dropout=0.2):
super(NewAttention, self).init()

    self.v_proj = FCNet([v_dim, num_hid])
    self.q_proj = FCNet([q_dim, num_hid])
    self.dropout = nn.Dropout(dropout )
    #self.linear = weight_norm(nn.Linear(q_dim, 1), dim=None)
    self.linear = weight_norm(nn.Linear(1024, 1), dim=None)

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.