multimodalart HF staff commited on
Commit
e55d6ba
1 Parent(s): f452e56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: