Spaces:
Sleeping
Sleeping
Commit
•
e55d6ba
1
Parent(s):
f452e56
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ if torch.cuda.is_available():
|
|
49 |
previewer.eval().requires_grad_(False).to(device).to(dtype)
|
50 |
def callback_prior(i, t, latents):
|
51 |
output = previewer(latents)
|
52 |
-
output = numpy_to_pil(output.clamp(0, 1).permute(0, 2, 3, 1).cpu().numpy())
|
53 |
return output
|
54 |
callback_steps = 1
|
55 |
else:
|
|
|
49 |
previewer.eval().requires_grad_(False).to(device).to(dtype)
|
50 |
def callback_prior(i, t, latents):
|
51 |
output = previewer(latents)
|
52 |
+
output = numpy_to_pil(output.clamp(0, 1).permute(0, 2, 3, 1).float().cpu().numpy())
|
53 |
return output
|
54 |
callback_steps = 1
|
55 |
else:
|