Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
44
def
out2img(samples):
45
return
torch.clamp(127.5 * samples + 128.0, 0, 255).to(
46
dtype=torch.uint8, device=
"cuda"
47
)
48
49
50
def
update_note(args, accelerator, slurm_job_id):
Callers
2
get_real_img_generator
Function · 0.85
main
Function · 0.85
Calls
1
to
Method · 0.80
Tested by
no test coverage detected