Giter VIP home page Giter VIP logo

Comments (3)

jackroos avatar jackroos commented on May 29, 2024
  1. Actually there are only two tasks in pre-training: Masked Language Modeling with Visual Clues, Masked RoI Classification with Linguistic Clues. Sure, the pre-trained models provided in this repo have been pre-trained on these tasks, you don't need to perform pre-training by yourself.
  2. We use Conceptual Captions for both tasks, and English Wikipedia & BookCorpus only for Masked Language Modeling task.
  3. Could you provide the detailed link to the line of code since I am not sure where do you exactly mean?

Thanks!

from vl-bert.

prajjwal1 avatar prajjwal1 commented on May 29, 2024

Thanks for the reply.

  1. For (3), I meant this line of code. Is it only partially loading the weights ?

I have some more questions.

  1. Could you also share the weights for fast rcnn module ? It seems that the pretrained model is meant for ResNetVLBert only.
  2. Do I need to train fast rcnn on Visual Genome for my task?
  3. I want to port fast rcnn to torchvision's faster rcnn. What does obj_reps actually represent here, are these the box predictions coming out of ROI Head ? And you seem to be using 'cnn_regularization' loss which is cross entropy loss for classes, what about MSE loss for regression of bounding boxes ? I think MSE loss would be necessary for improving region proposals.
  4. If I were to port to torchvision's faster_rcnn implementation, please see here, Will detections from self.transform.postprocess be 'obj_reps' and cross entropy loss be 'cnn_regularization' loss ?

from vl-bert.

jackroos avatar jackroos commented on May 29, 2024

@prajjwal1
3. The partial loading is because downstream task and pre-training task may have different prediction heads, and only common weights (including the Fast RCNN, VL-BERT, and maybe some common heads) are loaded.
4. Actually, the weights of Fast RCNN is included:

self.image_feature_extractor = FastRCNN(config,

5/6/7. Here I think you have some misunderstanding about Fast RCNN in our model, it's not Faster RCNN, so there is no RPN in it.
Actually, our workflow is:

  • (Offline) Use the pre-trained Faster RCNN to extract bounding boxes and store them (refer to
    9. python ./tools/generate_tsv_v2.py --gpu 0,1,2,3,4,5,6,7 --cfg experiments/cfgs/faster_rcnn_end2end_resnet.yml --def models/vg/ResNet-101/faster_rcnn_end2end_final/test.prototxt --net data/faster_rcnn_models/resnet101_faster_rcnn_final.caffemodel --split conceptual_captions_train --data_root {Conceptual_Captions_Root} --out {Conceptual_Captions_Root}/train_frcnn/
    );
  • Use only the backbone (ResNet) and RoI head of pre-trained Faster RCNN to initialize our Fast RCNN;
  • (Online) Treat precomputed boxes as region proposals, and using Fast RCNN to extract their features.

P.S.
The obj_reps refers to visual feature of each RoI used in VL-BERT, obj_reps_raw means RoI features coming out of RoI head, and the cnn_regularization is deprecated, we don't use it in both pre-training and fine-tuning.

from vl-bert.

Related Issues (20)

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.