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
1. I have searched related issues but cannot get the expected help.
2. The bug has not been fixed in the latest version.
3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.
Describe the bug
我得出了目标信息的bbox,我要怎么画出他的框呢?如何获取原始图像的高和宽
Reproduction
我得出了目标信息的bbox,我要怎么画出他的框呢?如何获取原始图像的高和宽
Environment
no
Error traceback
The text was updated successfully, but these errors were encountered:
def collate_fn(batches):
pixel_values = torch.cat([['pixel_values'] for _ in batches], dim=0)
texts = [['text'] for _ in batches]
bboxes = [['bbox'] for _ in batches]
hws = [['hw'] for _ in batches]
return pixel_values, texts, bboxes, hws
这里面的hws是image.size得到的吗?
Checklist
Describe the bug
我得出了目标信息的bbox,我要怎么画出他的框呢?如何获取原始图像的高和宽
Reproduction
我得出了目标信息的bbox,我要怎么画出他的框呢?如何获取原始图像的高和宽
Environment
Error traceback
The text was updated successfully, but these errors were encountered: