Comments (3)
About start and end tokens, I guess in the current implementation they are not really useful. They are useful if the implementation of sentence encoder can't handle variable lengths in a mini-batch or if it is not parallelized over a mini-batch. But it's not the case in this with the pytorch tools used.
It is true that the validation set can have effectively 1000 images in it. But the small validation set is only used for early stopping. So maybe as a result we don't choose the best model for test set.
from vsepp.
@fartashf Thanks a lot for your reply. I have one more question and I would really appreciate a reply. I have a deeper network for embedding the visual and text features, based on your code (just added more layers). Consider it to be 3 layers for each modality. I am using a ReLU activation function in between all these layers, except for the last one which will be the input to the similarity function. I found out that the results are extremely horrible (0.1, 0.5, 0.3) for R@1, R@5, R@10. But it works well when I remove the ReLU activation between the layers. Any idea why non-linearity harms image-text retrieval?
from vsepp.
Maybe consider these changes:
- Try the sum loss first. Max loss is not always good at the beginning of the optimization.
- Make sure initialization is done correctly. Weights are not too small or too large.
- Make sure fine-tuning is not set.
- Try adding layers to only one modality. See if the problem is with training both together.
- Try adding normalization before each linear layer.
from vsepp.
Related Issues (20)
- precomputed dataset HOT 1
- How to caculate the scores on MSCOCO 1k test images? HOT 3
- Metrics for 1k test images on MS COCO HOT 1
- Loss stuck, not decreasing HOT 2
- The question about loss function HOT 1
- How to build vocab? HOT 2
- Can't reproduce the result using pytorch 0.4.1 branch HOT 3
- encoding data
- about use dataset HOT 1
- Runs file too large HOT 1
- FileNotFoundError when try to reproduce results of pretrained model HOT 1
- train on synthetic dataset HOT 2
- Reproducing results HOT 5
- Same meanr being logged by tb_logger during validation HOT 1
- The number of COCO validation images HOT 1
- loss gap between train and test HOT 1
- Question about your model ? HOT 1
- Where are your model weights stored? HOT 1
- Doubt
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 vsepp.