-
Notifications
You must be signed in to change notification settings - Fork 112
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
get_crops question #103
Comments
These variables are computed in the Matlab version. However, since they are not used in the actual tracking process, they are removed for speed in this repository. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I was going through your code and I saw a couple of differences between
def get_crops(im, bbox, size_z, size_x, context_amount):
andfunction [im_crop_z, bbox_z, pad_z, im_crop_x, bbox_x, pad_x] = get_crops(im, object, size_z, size_x, context_amount)
from bertinetto/siamese-fc/save_crops.The ones that I am interested are these:
[im_crop_x, left_pad_x, top_pad_x, right_pad_x, bottom_pad_x] = get_subwindow_avg(im, [cy cx],
[size_x size_x], [round(s_x) round(s_x)]);
pad_x = ceil([scale_x*(left_pad_x+1) scale_x*(top_pad_x+1) size_x-scale_x*(right_pad_x+left_pad_x)
size_x-scale_x*(top_pad_x+bottom_pad_x+1)]);
ws_z = w * scale_z;
hs_z = h * scale_z;
ws_x = w * scale_x;
hs_x = h * scale_x;
bbox_z = [(size_z-ws_z)/2, (size_z-hs_z)/2, ws_z, hs_z];
bbox_x = [(size_x-ws_x)/2, (size_x-hs_x)/2, ws_x, hs_x];
Could you explain why?
The text was updated successfully, but these errors were encountered: