You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import Rotated_IoU.oriented_iou_loss as ri
import torch
import numpy as np
import math
box1 = torch.tensor([[[0.,0.,2.,2.,torch.pi/4]]]).to("cuda")
iou,_,_,_ = ri.cal_iou(box1, box1)
print(iou)
above iou value is "0."
but when i change box angle torch.pi/4 to torch.pi/4 + 0.01, it return 1.0 and this is what i expected.
The text was updated successfully, but these errors were encountered:
Hi, thank you for your issue. I cannot reproduce this problem. I get "1" on my machine.
Are you using the latest version of my code? I updated the CUDA extension to fix some bugs a long time ago. Please consider pulling the repo again and re-compile the CUDA extension.
above iou value is "0."
but when i change box angle torch.pi/4 to torch.pi/4 + 0.01, it return 1.0 and this is what i expected.
The text was updated successfully, but these errors were encountered: