MCPcopy Create free account
hub / github.com/Tencent/PocketFlow / preprocess_image

Function preprocess_image

utils/external/imagenet_preprocessing.py:226–260  ·  view source on GitHub ↗

Preprocesses the given image. Preprocessing includes decoding, cropping, and resizing for both training and eval images. Training preprocessing, however, introduces some random distortion of the image to improve accuracy. Args: image_buffer: scalar string Tensor representing the raw JP

(image_buffer, bbox, output_height, output_width,
                     num_channels, is_training=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

parse_fnFunction · 0.90

Calls 6

_decode_crop_and_flipFunction · 0.85
_resize_imageFunction · 0.85
_central_cropFunction · 0.85
decode_jpegMethod · 0.80
_mean_image_subtractionFunction · 0.70

Tested by

no test coverage detected