IoU coordinates agree that boundary coordinates and pixel numbers cannot be mixed
IoU is a confluence divided by a confluence of area, which is often used to detect matching and suppression.
Learning objectives and first steps2 objectives 2 first fixes
Try to do it after reading
- Hand-counting box cross-checking
- Pixel formula to distinguish between continuous boundaries and closed areas
Suggested first
- Thrust and Matrix Operations
- Basic neural network
Area formula relies on coordinates for meaning
IoU is a confluence divided by a confluence of area, which is often used to detect matching and suppression. The calculation must be preceded by a description of the frame format and coordinates. Continuous border xyxy common width = x 2− x1; Some old pixel closed-space codes are used plus 1. The combination of the two formulas would make the small frame error particularly obvious.
A continuous box A = [0,0,2,2] Area 4, B = [1,1,3,3] Area 4, confluence of [1,1,2,2] Area 1, and collection 7, IoU for 1/7 about 0.142857. If coordinates are used as pixel numbers containing the endpoint, the area will be different from the intersection and cannot be added to only one item.
The box format may also be xywh, i. e. the top left coordinate with width. Place [1,1,3,3] as xywh at the lower right corner of [4,4], unlike [3,3] for xyxy. The format supported by API should be clearly chosen and data exports and assessments must be consistent.
Borders and degradation boxes to be checked
The two boxes overlap with zero at the point of exposure to the edge. Invalid boxes such as x2 less than x1 should not be amended quietly to absolute values because it may mask format errors; is verified at the input stage. The two zero-area boxes, which are combined to zero, are also subject to the actual assessment agreement rather than the default full score.
Images should be scaled using actual high-band scale variations of coordinates, with different horizontal and vertical scales when non-symmetrical stretches. The box also needs to be cut to the image range, but the crop may change the area and IoU, and the assessment should be clear as to which step to proceed. Normalizing coordinates with pixel coordinates cannot be side by side.
The same IoU threshold is more sensitive to small targets. A pixel shift may have a small frame intersecting and much lower than the other side, so coordinates half-pixel error and the extraction strategy cannot be ignored at will. The results should be aligned by checking the geometric protocols before discussing the merits of the models themselves.
Use of continuous boundaries in this section xyxy Agreement, reference Torchvision Current box_iou and VOC Assessment. 1/7 is synthetic. The format of the different baselines, the missing boxes and the matching rules need to be checked separately.
Value recovery
import matha=[0,0,2,2];b=[1,1,3,3]intersection=max(0,min(a[2],b[2])-max(a[0],b[0]))*max(0,min(a[3],b[3])-max(a[1],b[1]))assert math.isclose(intersection/(4+4-intersection),1/7)A = [0,0,2,2], B = [1,1,3,3], consecutive IoU?
Intersection 1 with 7, IoU = 1/7.
Should the width formula always add one?
No, depending on whether the coordinates are continuous boundaries or pixel numbers between closed areas, the same agreement must be used as a whole.
Manual validation should also cover three situations: full inclusion, complete separation and exposure only. The time confluence is equal to the size of a small frame, and the continuous area of separation and contact is equal to zero. Using these non-variables to quickly detect negative width, plus 1 or coordinated formatting, is more reliable than looking at the output range only on random frames.
Sources and reconciliations
Definitions, methods and interfaces are available.
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.