Comments (12)
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
caption-guided-saliency/s2vt_model.py
Line 3 in 3f4cdc1
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.
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.
from caption-guided-saliency.
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.
You are a genius.thank you very much for your help.
from caption-guided-saliency.
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.
@xingtengfei Sorry, the archive seems to be broken, I cannot open it. Could you check?
from caption-guided-saliency.
I created a new file visua_flickr30k
from caption-guided-saliency.
@xingtengfei Did you forget to attach it? :)
from caption-guided-saliency.
I am stupid. haha,I forgot to pull requests
from caption-guided-saliency.
my code is ok?
from caption-guided-saliency.
Sorry, I didn't have time to look into it. I'll do it tomorrow.
from caption-guided-saliency.
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):
- Training: the shorter side is scaled to 256px then 224px center crop is taken (it is done to mimic previously published papers)
- 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)
- No code HOT 2
- CUDA_ERROR_OUT_OF_MEMORY HOT 2
- score HOT 1
- Some Problems of Preprocessing HOT 3
- Could the visualization code use on image?
- Error while running training script HOT 2
- The "test_videodatainfo.json" is not available from MSR anymore HOT 4
- Pre-trained model HOT 1
- dataset link HOT 4
- Can you give the link to download MSR-VTT dataset? I can only download json file from official website HOT 7
- run_s2vt.py:62: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caption-guided-saliency.