MCPcopy Create free account
hub / github.com/00why00/JoDiffusion / preprocess_val

Function preprocess_val

train_ae.py:316–320  ·  view source on GitHub ↗
(examples)

Source from the content-addressed store, hash-verified

314 return examples
315
316 def preprocess_val(examples):
317 labels = examples[args.label_column]
318 examples["pixel_values"] = [val_transform(label) for label in labels]
319 examples["bit_pixel_values"] = [encode(label)[0] for label in examples["pixel_values"]]
320 return examples
321
322 with accelerator.main_process_first():
323 train_dataset = dataset["train"].with_transform(preprocess_train)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected