Cadene / vqa.pytorch

Visual Question Answering in Pytorch
716 stars 178 forks source link

Hi Cadene, is the Tucker decomposition part in fusion.py? #31

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi Cadene,

I think the decomposition part is in fusion.py. But i have get them all clear yet. Would mind helping me out? Because I want to code a Tensorflow version based on your pytorch code. And I also find that the BayesianUniSkip(skipthoughts) part is a challenge part for me, because i also didn't find the Tensorflow version. Thanks for you kind help.

Cadene commented 6 years ago

Edit: Candene -> Cadene

Better now :D

I think the Tucker decomposition part is in fusion.py.

No, it is not. Unfortunately, we don't provide a pytorch implementation of the Tucker Decomposition, but only of Mutan (Tucker Decomposition with rank constraint). We plan to add it in few weeks (using nn.Bilinear).

And I also find that the BayesianUniSkip(skipthoughts) part is a challenge part for me, because i also didn't find the Tensorflow version.

It was very difficult for us because the original implementation is in Theano. Nevertheless, you should be able to port it in tensorflow using these classes which do not rely too much on a pytorch specific implementation: