hysts HF staff commited on
Commit
050ca2a
1 Parent(s): e4d01a7
Files changed (1) hide show
  1. model.py +0 -2
model.py CHANGED
@@ -116,8 +116,6 @@ class Model:
116
  guidance_scale: float,
117
  seed: int,
118
  ) -> list[PIL.Image.Image]:
119
- if seed == -1:
120
- seed = np.random.randint(0, np.iinfo(np.int64).max)
121
  generator = torch.Generator().manual_seed(seed)
122
  return self.pipe(prompt=prompt,
123
  negative_prompt=negative_prompt,
 
116
  guidance_scale: float,
117
  seed: int,
118
  ) -> list[PIL.Image.Image]:
 
 
119
  generator = torch.Generator().manual_seed(seed)
120
  return self.pipe(prompt=prompt,
121
  negative_prompt=negative_prompt,