GriffinLiang / vrd-dsr

Code for Visual Relationship Detection with Deep Structural Ranking (AAAI2018)
121 stars 32 forks source link

training object class #27

Closed btjhjeon closed 5 years ago

btjhjeon commented 5 years ago

In your code, the linear layer of object classifier (net.fc_obj) is untrainable because you set net.fc_obj untrainable and net.fc_obj layer is not included to the optimizer. Beside, the pretrained model (VGG_imagenet.npy) does not contains the parameters of net.fc_obj. How can this model classify the object properly? thank you in advance.

GriffinLiang commented 5 years ago

For relationship detection, our proposed pipeline contains two stages. The first stage is object detection which provides the object prediction. Therefore, in the second stage, net.fc_obj is not included for training.

btjhjeon commented 5 years ago

you mean that the obj_score (the output of net.fc_obj) does not affect the recall performance, right?

GriffinLiang commented 5 years ago

Yes

btjhjeon commented 5 years ago

thanks a lot for prompt response!