MCPcopy Create free account
hub / github.com/MhLiao/TextBoxes_plusplus / preprocess

Method preprocess

python/caffe/io.py:122–162  ·  view source on GitHub ↗

Format input for Caffe: - convert to single - resize to input dimensions (preserving number of channels) - transpose dimensions to K x H x W - reorder channels (for instance color to BGR) - scale raw input (e.g. from [0, 1] to [0, 255] for ImageNet mo

(self, in_, data)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

prepare_networkFunction · 0.95
prepare_networkFunction · 0.95
predictMethod · 0.80
detect_windowsMethod · 0.80

Calls 3

__check_inputMethod · 0.95
resize_imageFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected