Comments (5)
Yes, you can fine-tune VL-BERT for you task by simply adding a classification head on top of the output feature of first token [CLS] and fine-tuning it together with VL-BERT.
For how to load data and conduct fine-tuning, you can follow our code for downstream tasks (e.g., VQA, RefCOCO+, etc.).
from vl-bert.
@jackroos Thanks Jack, I do have a pre-trained Faster RCNN setup. This is based on the same caffe
model you have in the instructions. I generate 100 boxes with nms=0.5 and confidence_threshold = 0.2,
Q1. Would it be possible for you to post 1 image and it's generated boxes, features here so I can verify if my setup is runnable.
Q2. Also I believe I need to use the same FRCNN as you did in case I want to use pretrained models. changing the FRCNN to SSD or any other detector will not work without retrained.
from vl-bert.
@jackroos Would this work even if I have no precomputed features/boxes for the images. It peeked inside vqa/data//datasets/vqa.py
and it seems we need to have precomputed stuff.
@webYFDT Did you make it work?
from vl-bert.
@faizanahemad We need precomputed boxes in our VL-BERT. You can use pre-trained Faster RCNN to compute the boxes, following our instructions on preparing Conceptual Captions dataset.
from vl-bert.
@faizanahemad Sorry for the late reply, for examples of the image and generated boxes, maybe you can refer to the caffe bottom-up-attention repo, there are pre-computed boxes and features for coco images. And for your second question, the answer is yes, you need to use the same detector to extract visual features while using the FRCNN in VL-BERT.
from vl-bert.
Related Issues (20)
- The problem of multitasking parallel processing HOT 4
- ./scripts/init.sh HOT 4
- fine-tune HOT 1
- visualize attention for custom images
- CUDA Illegal Memory Access In FastRCNN with ROIAlign
- what is text_visual_embeddings
- How to pretrain on my own data? HOT 2
- An example for image feature HOT 3
- Does the pre-trained BERT come from vl-bert ? HOT 1
- Why the preprocessing method differs from the official method of pytorch
- Is there an option to upload the the val_frcnn features?
- Caffe feature extraction for conceptual-captions - where do I make pycaffe?
- Pretrained VL-BERT model on bert_based_multilingual_uncased needed to apply zero shot learning for German language
- CUDA error: no kernel image is available for execution on the device
- Can I get the object label ?
- Improper RefCOCO evaluation
- How to freeze the Fast RCNN?
- Is the nvcc necessary?
- google drive
- script for downloading GCC images
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 vl-bert.