MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / horizontally_flip

Function horizontally_flip

data_processing/create_latents.py:28–34  ·  view source on GitHub ↗
(batch)

Source from the content-addressed store, hash-verified

26
27
28def horizontally_flip(batch):
29
30 rgb_img=batch["rgb_img"]
31 rgb_img=torchvision.transforms.functional.hflip(rgb_img)
32 batch["rgb_img"]=rgb_img
33
34 return batch
35
36
37def generate_latents_dinov2(args, batch, preprocessor, model, output_latents_path):

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected