MCPcopy Create free account
hub / github.com/diffusion-classifier/diffusion-classifier / center_crop_arr

Function center_crop_arr

eval_prob_dit.py:26–44  ·  view source on GitHub ↗

Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diffusion/image_datasets.py#L126

(pil_image, image_size)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

get_transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected