Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo for 'running on new images' #5

Open
barisgecer opened this issue Apr 5, 2018 · 2 comments
Open

Demo for 'running on new images' #5

barisgecer opened this issue Apr 5, 2018 · 2 comments

Comments

@barisgecer
Copy link

Hi,
Thank you for sharing the code with a nice documentation. It seems demo.m file is to reproduce results in the paper. I was wondering if you can write another demo just to quickly run the pretrained model for a given image and pairs to achieve 'person on grass' kind of labelling (or relation probabilities). The current documentation confused me a bit.

Thank you.

@jpeyre
Copy link
Owner

jpeyre commented Apr 10, 2018

Hi barisgecer,
Sorry for my late reply. I agree it would be nice to have such demo file, but it’s not straightforward to write as our model is not end-to-end, in the sense that you need to first extract object detections/appearance with caffe, and then run our matlab code to obtain the relation probabilities. I might try to do it later if I have more time... Meanwhile, to run on a given image and pairs:

  1. extract the appearance features/object scores using our trained Fast-RCNN model (apply PCA+l2norm)
  2. encode the spatial feature between the pair of boxes with compute_spatial_features.m
  3. then apply our linear trained model on the concatenated visual feature to get the final predictions.
    You can look into the code eval/predict.m to see how to combine the scores.

@barisgecer
Copy link
Author

barisgecer commented Apr 13, 2018

Thanks for quick reply. That should be sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants