sovit-123 / fasterrcnn-pytorch-training-pipeline

PyTorch Faster R-CNN Object Detection on Custom Dataset
MIT License
223 stars 75 forks source link

dataset.py error? #145

Closed uzregxurshid closed 5 months ago

uzregxurshid commented 5 months ago

File "/opt/conda/lib/python3.10/site-packages/albumentations/core/bbox_utils.py", line 405, in convert_bboxes_to_albumentations return [convert_bbox_to_albumentations(bbox, source_format, rows, cols, check_validity) for bbox in bboxes] File "/opt/conda/lib/python3.10/site-packages/albumentations/core/bbox_utils.py", line 405, in return [convert_bbox_to_albumentations(bbox, source_format, rows, cols, check_validity) for bbox in bboxes] File "/opt/conda/lib/python3.10/site-packages/albumentations/core/bbox_utils.py", line 349, in convert_bbox_to_albumentations check_bbox(bbox) File "/opt/conda/lib/python3.10/site-packages/albumentations/core/bbox_utils.py", line 432, in check_bbox raise ValueError(f"Expected {name} for bbox {bbox} to be in the range [0.0, 1.0], got {value}.") ValueError: Expected x_min for bbox (tensor(-0.0016), tensor(0.), tensor(0.0016), tensor(0.0042), tensor(0)) to be in the range [0.0, 1.0], got -0.0015625000232830644.

uzregxurshid commented 5 months ago

I was using COCO 2017 and I found a similar topic with an answer.