-
Notifications
You must be signed in to change notification settings - Fork 488
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
Access to intermediate layer TridentNet #285
Comments
Our wrapper library mxnext provides a You can add the following to your def save_roi_feat(gpu_id, num_iter, roi_feat):
if gpu_id == 0 and num_iter + 1 % 100 == 0:
np.save("trident_roi_feature_%d" % int(num_iter), roi_feat)
roi_feat = X.forward_debug(roi_feat, callback=save_roi_feat) |
Thanks for reply! Sorry about the dumb question but is Thanks in advance |
I think that inserting the hook at the input of You can put the following snippet in just before L564 def save_roi_feat(gpu_id, num_iter, roi_feat):
if gpu_id == 0 and num_iter + 1 % 100 == 0:
import numpy as np
np.save("trident_roi_feature_%d" % int(num_iter), roi_feat)
conv_feat = X.forward_debug(conv_feat, callback=save_roi_feat) And you can find |
I have an error:
Maybe the code you posted ir just for training? How can i get the roi feats in inference? Thanks! |
A known issue of the debug utility. I will look into it. In the meantime,
you may set your network for training and lr and wd to 0 as a workaround.
…On Thu, Jan 2, 2020 at 1:26 AM Simón Sepúlveda Osses < ***@***.***> wrote:
I have an error:
RuntimeError: num_iter_b5f728d4-dac5-4563-be3a-0a3f8a5c690a is not
presented
Maybe the code you posted ir just for training? How can i get the roi
feats in inference?
Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#285>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGODH7LLEGZ5KJZEIINKJLQ3TG4TANCNFSM4KASMTUQ>
.
|
Thanks @RogerChern , I'll give a try |
I want to access to an intermediate layer of TridentNet to get a feature vector, in particular feature vector after doing the roi pool operation, how can i perform this?
Thanks
The text was updated successfully, but these errors were encountered: