MCPcopy Create free account
hub / github.com/Evolving-AI-Lab/fooling / _Net_preprocess

Function _Net_preprocess

caffe/python/caffe/pycaffe.py:242–273  ·  view source on GitHub ↗

Format input for Caffe: - convert to single - resize to input dimensions (preserving number of channels) - scale feature - reorder channels (for instance color to BGR) - subtract mean - transpose dimensions to K x H x W Take input_name: name of input blob to pre

(self, input_name, input_)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected