Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

How to get the prediction results? #56

Open
YunhaoDu opened this issue Aug 15, 2020 · 4 comments
Open

How to get the prediction results? #56

YunhaoDu opened this issue Aug 15, 2020 · 4 comments

Comments

@YunhaoDu
Copy link

Hi, I can run the test_net.py successfully now. I wonder how can I get the prediction results, e.g. for charades datasets.
Thank you!

@chaoyuaw
Copy link

Hi, Glad to hear that you're able to run successfully! I'm not sure if I understand your question correctly, but if what you're trying to do is to store all predictions as a file, you can take a look at https://github.com/facebookresearch/video-long-term-feature-banks/blob/master/lib/utils/metrics.py#L444 This is where we use all predictions to compute mAP. You can add a few lines here to use e.g., pickle to store the "predicts" tensor out as a file.

@YunhaoDu
Copy link
Author

Hi, Glad to hear that you're able to run successfully! I'm not sure if I understand your question correctly, but if what you're trying to do is to store all predictions as a file, you can take a look at https://github.com/facebookresearch/video-long-term-feature-banks/blob/master/lib/utils/metrics.py#L444 This is where we use all predictions to compute mAP. You can add a few lines here to use e.g., pickle to store the "predicts" tensor out as a file.

Thanks very much. Your answer is just what I want. I'll try.

@TsingM
Copy link

TsingM commented Sep 17, 2020

Hi, Glad to hear that you're able to run successfully! I'm not sure if I understand your question correctly, but if what you're trying to do is to store all predictions as a file, you can take a look at https://github.com/facebookresearch/video-long-term-feature-banks/blob/master/lib/utils/metrics.py#L444 This is where we use all predictions to compute mAP. You can add a few lines here to use e.g., pickle to store the "predicts" tensor out as a file.

Thanks very much. Your answer is just what I want. I'll try.

Hi, @dyh-bupt , I’m also from BUPT. Could you please leave your email? I will contact you to ask some questions about this work. Thank You!

@YunhaoDu
Copy link
Author

Hi, Glad to hear that you're able to run successfully! I'm not sure if I understand your question correctly, but if what you're trying to do is to store all predictions as a file, you can take a look at https://github.com/facebookresearch/video-long-term-feature-banks/blob/master/lib/utils/metrics.py#L444 This is where we use all predictions to compute mAP. You can add a few lines here to use e.g., pickle to store the "predicts" tensor out as a file.

Thanks very much. Your answer is just what I want. I'll try.

Hi, @dyh-bupt , I’m also from BUPT. Could you please leave your email? I will contact you to ask some questions about this work. Thank You!

嘿,好巧碰到校友,但是我对LFB没有做进一步的实验,可能帮不到你。无论怎样,我的邮箱是[email protected],欢迎联系。

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

No branches or pull requests

3 participants