hysts HF staff commited on
Commit
37db8fc
1 Parent(s): 5691542
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def make_transform(translate: tuple[float, float], angle: float) -> np.ndarray:
77
 
78
  def generate_z(z_dim: int, seed: int, device: torch.device) -> torch.Tensor:
79
  return torch.from_numpy(np.random.RandomState(seed).randn(
80
- 1, z_dim)).to(device)
81
 
82
 
83
  @torch.inference_mode()
 
77
 
78
  def generate_z(z_dim: int, seed: int, device: torch.device) -> torch.Tensor:
79
  return torch.from_numpy(np.random.RandomState(seed).randn(
80
+ 1, z_dim)).to(device).float()
81
 
82
 
83
  @torch.inference_mode()