MCPcopy Create free account
hub / github.com/CSAILVision/IBD / normalize_image

Function normalize_image

loader/data_loader.py:681–698  ·  view source on GitHub ↗

Load input image and preprocess for Caffe: - cast to float - switch channels RGB -> BGR - subtract mean - transpose to channel x height x width order

(rgb_image, bgr_mean)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

form_caffe_tensorsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected