PyTorch Faster R-CNN Object Detection on Custom Dataset
MIT License
223
stars
77
forks
source link
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(1.0102), tensor(0.5781), tensor(1.), tensor(0.7539), tensor(4)) to be in the range [0.0, 1.0], got 1.010156273841858. #113
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(1.0102), tensor(0.5781), tensor(1.), tensor(0.7539), tensor(4)) to be in the range [0.0, 1.0], got 1.010156273841858.
If someone encounters this error, analyze all bounding box coordinates programmatically. The error may be the bounding box coordinates are not within the bounds of the provided image.
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(1.0102), tensor(0.5781), tensor(1.), tensor(0.7539), tensor(4)) to be in the range [0.0, 1.0], got 1.010156273841858.