MCPcopy Create free account
hub / github.com/CompVis/zigma / out2img

Function out2img

train_acc.py:44–47  ·  view source on GitHub ↗
(samples)

Source from the content-addressed store, hash-verified

42
43
44def out2img(samples):
45 return torch.clamp(127.5 * samples + 128.0, 0, 255).to(
46 dtype=torch.uint8, device="cuda"
47 )
48
49
50def update_note(args, accelerator, slurm_job_id):

Callers 2

get_real_img_generatorFunction · 0.85
mainFunction · 0.85

Calls 1

toMethod · 0.80

Tested by

no test coverage detected