Comments (3)
First, what is the difference between vqa_placeholder_mask
and vqa_label
?
I think you can use vqa_label
as it is, but simply changing the answer part of the input text (e.g., (A) -> playing soccer).
Also, if I understand correctly, mean pooling is applied to embeddings across the sequence length of the answer.
However, generally, the loss is computed for each single token (embedding) of the answer sequence.
You may refer to qav_loss to understand how this works.
Then, you may not need to similarity calculation process.
Finally, if you convert the MCQ setting to the generation task which still includes multiple options, I conjecture that including the options in the input text is more appropriate.
However, in my own preliminary experiment, the MCQ setting shows slightly better performance than the generation task, which might get better through hyperparamter tuning, when handling multiple options.
from flipped-vqa.
Thank you for the reply,
First, what is the difference between
vqa_placeholder_mask
andvqa_label
? I think you can usevqa_label
as it is, but simply changing the answer part of the input text (e.g., (A) -> playing soccer).
Yes, you are right. The end result of this operation is still similar to what you mentioned.
Also, if I understand correctly, mean pooling is applied to embeddings across the sequence length of the answer. However, generally, the loss is computed for each single token (embedding) of the answer sequence. You may refer to qav_loss to understand how this works. Then, you may not need to similarity calculation process.
I haven't removed the original loss computation. However, I still want to add the similarity computation to provide more meaningful analysis to my work.
Finally, if you convert the MCQ setting to the generation task which still includes multiple options, I conjecture that including the options in the input text is more appropriate. However, in my own preliminary experiment, the MCQ setting shows slightly better performance than the generation task, which might get better through hyperparamter tuning, when handling multiple options.
I agree that providing the options would allow the model to perform better, but I would like to see how the model performs in a pure generation task without the options been given at all.
I am very concerned about the issue that I'm encountering that makes the model not giving meaningful answers.
I would appreciate it if you provide the inference script as well.
Thanks!
from flipped-vqa.
You may simply remove train_one_epoch()
in train.py and add --resume ./your/own/checkpoint.pth
to your running command for the inference.
from flipped-vqa.
Related Issues (13)
- How to extract features using CLIP VIT-L? HOT 2
- Not getting the reported number. HOT 4
- Cannot reproduce the result HOT 2
- finetuned using lamma-13B HOT 3
- Error when training with TVQA dataset: AttributeError in DataLoader worker process HOT 1
- How to use a trained checkpoint to make inference on validation set and resume from checkpoint. HOT 5
- From where to download LLaMA-v1 model? HOT 3
- Checkpoints HOT 1
- ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 3 (pid: 55662) of binary: /usr/bin/python3 HOT 3
- What is the function of the parameter `max_feats`? HOT 1
- A question about QAV task in the code HOT 2
- How many GPUs are needed to train the model? HOT 2
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 flipped-vqa.