Giter Club home page Giter Club logo

Comments (12)

ramanishka avatar ramanishka commented on August 14, 2024

hi
5GBs? Why two? The code doesn't use multi GPU setup in any way.

Yes, it might be so. I don't remember exactly the requirements but try to decrease the batch size. Also, note that there is

gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.8)

I'm quite busy right now, sorry. Maybe in a few weeks. Btw it should be quite straightforward to figure out how to visualize it using msr-vtt visualization.

from caption-guided-saliency.

xingtengfei avatar xingtengfei commented on August 14, 2024

I'm so sorry to bother you.When I was training MSR-VTT, the code was working.I've decreased batch_size,it does not work.
default

from caption-guided-saliency.

ramanishka avatar ramanishka commented on August 14, 2024

No worries. I would expect that at least twice more memory is needed for Flickr30k model (simply because of explicitly unrolled LSTM). Try to decrease batch size and/or LSTM hidden state size (in config).

from caption-guided-saliency.

xingtengfei avatar xingtengfei commented on August 14, 2024

You are a genius.thank you very much for your help.

from caption-guided-saliency.

xingtengfei avatar xingtengfei commented on August 14, 2024

I've implemented standard visualization for Flickr30k based on your code, but I do not know if it's completely correct, can you check it out?
visualization.zip

from caption-guided-saliency.

ramanishka avatar ramanishka commented on August 14, 2024

@xingtengfei Sorry, the archive seems to be broken, I cannot open it. Could you check?

from caption-guided-saliency.

xingtengfei avatar xingtengfei commented on August 14, 2024

I created a new file visua_flickr30k

from caption-guided-saliency.

ramanishka avatar ramanishka commented on August 14, 2024

@xingtengfei Did you forget to attach it? :)

from caption-guided-saliency.

xingtengfei avatar xingtengfei commented on August 14, 2024

I am stupid. haha,I forgot to pull requests

from caption-guided-saliency.

xingtengfei avatar xingtengfei commented on August 14, 2024

my code is ok?

from caption-guided-saliency.

ramanishka avatar ramanishka commented on August 14, 2024

Sorry, I didn't have time to look into it. I'll do it tomorrow.

from caption-guided-saliency.

ramanishka avatar ramanishka commented on August 14, 2024

I looked through the code. It seems you've tried to keep the code for Flickr30k to be as close as possible to the one we published for MSR-VTT. Thanks for that but here's what we need to take into account:

First of all notice the discrepancy in frame preprocessing in training and visualization (current code):

  1. Training: the shorter side is scaled to 256px then 224px center crop is taken (it is done to mimic previously published papers)
  2. Visualization: frames are scaled to 400x300 (frame extraction) then scaled again to 299x299 (without preserving aspect ratio). The reason for this - to get 'saliency map' for the whole frame not only for the central part.
    For visualization purposes, we extract features again from all frames in specified input video. Thus, resulting dimensionality is Tx8x8x2048 (training dimensions are 26x1x2048, 8x8 feature maps are mean pooled as in InceptionV3 layer). In your case, you don't extract features again so the image should be properly cropped/scaled.

For Flickr30k training is performed using 8x8x2048 feature maps for every frame directly by unrolling them into 64x2048 'time sequence' as it is described in the paper.

Look into this gist based on your version of my code (see notes about 'normalization' in L170-180):
https://gist.github.com/ramanishka/ccf59b400d99e6aac452f50952525e2f

I'm closing this issue.

from caption-guided-saliency.

Related Issues (12)

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.