animal-sketch-classifier-coreml / preprocessing.json
morpknight's picture
Release Animal Sketch Classifier V4
5eaf7bc verified
Raw
History Blame Contribute Delete
495 Bytes
{
"input_name": "image",
"width": 64,
"height": 64,
"color_space": "grayscale",
"pixel_format": "one_component_8bit",
"background": "black",
"strokes": "white",
"drawing_bounds": "centered and aspect fit with 10% padding",
"stroke_style": "4px round stroke at 4x supersampling, then Lanczos downsampled",
"pixel_value_range": [0, 255],
"model_internal_scale": 0.00392156862745098,
"note": "The model applies 1/255 internally. Do not normalize the source pixels twice."
}