GithubHelp home page GithubHelp logo

ywchao / image-play Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 4.0 228 KB

Code for reproducing the results in "Forecasting Human Dynamics from Static Images"

MATLAB 47.85% Lua 48.24% Shell 1.52% Python 2.39%

image-play's People

Stargazers

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

Watchers

 avatar  avatar  avatar

image-play's Issues

I don't get how ConvLSTM is done by this code.

Hi Yuwei,

I find something confusing in the code for 2d forecasting.

local function clstm(inp, inputSize, res)
  -- Replicate encoder output
  local rep = nn.Replicate(seqLength,2)(inp)

  -- Merge into one mini-batch
  local x1_ = nn.Transpose({2,3},{3,4})(inp)
  local x1 = nn.View(-1,inputSize)(x1_)

  -- LSTM
  local x2 = nn.View(-1,1,inputSize)(x1)
  local x3 = nn.Padding(1,seqLength-1,1)(x2)
  local hid = cudnn.LSTM(inputSize,hiddenSize,numLayers,true,0)(x3)
  local h1 = nn.Contiguous()(hid)

  -- Split from one mini-batch
  local h2_ = nn.View(-1,res,res,seqLength,hiddenSize)(h1)
  local h2 = nn.Transpose({3,4},{2,3},{4,5},{3,4})(h2_)

  -- Add residual to encoder output
  local add = nn.CAddTable()({rep,h2})
  
  -- Merge output in batch dimension;
  return nn.View(-1,hiddenSize,res,res)(add)
end

This is part of the model your paper used to deal with the LSTM part. Your team mentioned that you use the ConvLSTM trick in the paper. But if you do it this way, when the resolution is 64*64, your input for the nn.LSTM is (4096, 16, 256), which is actually getting the spatial information from the LSTM, but not the temporal information.

Thanks for your time and patience.

Why do you replicate inp for sequence length times at dim 2?

Hi Yuwei,

I am re-implementing your 2D pose forecasting work for now. But I am confused by the part in lib/models/hg-256-res-clstm.lua. Why do you replicate inp for sequence length times at dim 2? If you want to get the residual of the encoder output, will using the input copy work as the same?

How to use my own images

I'm having a hard time understanding where I might be able to plug in my own images to be analyzed for 2D Forecasting

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.