File size: 595 Bytes
9dcb52c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{
  "id": "nearest-square-uint8-bilinear-center-imagenet-v1",
  "decode": "RGB; discard alpha; ignore EXIF orientation",
  "input": "uint8 CHW/BCHW or image paths; float images must be in [0,1]",
  "square_size": 384,
  "resize_size": 438,
  "crop_size": 384,
  "nearest_coordinates": "floor(float32(output_index) * float32(source_size/384))",
  "bilinear": "half-pixel coordinates; edge clamp; round to uint8 before normalization",
  "mean": [
    0.485,
    0.456,
    0.406
  ],
  "std": [
    0.229,
    0.224,
    0.225
  ],
  "output": "float32 NCHW; RGB/255 then channel normalization"
}