We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the implementation :
def xyxyh2xywh(xyxy, image_size=416): xywh = torch.zeros(xyxy.shape[0],6) xywh[:,2] = (xyxy[:, 0] + xyxy[:, 2]) / 2./img_size xywh[:,3] = (xyxy[:, 1] + xyxy[:, 3]) / 2./img_size xywh[:,5] = (xyxy[:, 2] - xyxy[:, 0])/img_size xywh[:,4] = (xyxy[:, 3] - xyxy[:, 1])/img_size xywh[:,1]= xyxy[:,6] return xywh
i think that it should be
def xyxyh2xywh(xyxy, image_size=416): xywh = torch.zeros(xyxy.shape[0],6) xywh[:,2] = (xyxy[:, 0] + xyxy[:, 2]) / 2./img_size xywh[:,3] = (xyxy[:, 1] + xyxy[:, 3]) / 2./img_size xywh[:,4] = (xyxy[:, 2] - xyxy[:, 0])/img_size xywh[:,5] = (xyxy[:, 3] - xyxy[:, 1])/img_size xywh[:,1]= xyxy[:,6] return xywh
The text was updated successfully, but these errors were encountered:
Thanks @wvalcke for reporting this bug. You are correct.
Sorry, something went wrong.
@wvalcke what is exactly the difference between the two functions you are showing. For me they are exactly the same, aren't they?
The Difference is in replacing places of 4 and 5 So in other words, Turn These:
xywh[:,5] = (xyxy[:, 2] - xyxy[:, 0])/img_size xywh[:,4] = (xyxy[:, 3] - xyxy[:, 1])/img_size
To These: xywh[:,4] = (xyxy[:, 2] - xyxy[:, 0])/img_size xywh[:,5] = (xyxy[:, 3] - xyxy[:, 1])/img_size
No branches or pull requests
In the implementation :
i think that it should be
The text was updated successfully, but these errors were encountered: