Linoy Tsaban commited on
Commit
add968e
1 Parent(s): 5cb2cc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -126,7 +126,7 @@ def invert_and_reconstruct(
126
  # neg_guidance=False,
127
 
128
  ):
129
- torch.manual_seed(seed)
130
  x0 = load_512(input_image, device=device)
131
 
132
  if do_inversion:
@@ -202,6 +202,7 @@ def edit(input_image,
202
  def randomize_seed_fn(seed, randomize_seed):
203
  if randomize_seed:
204
  seed = random.randint(0, np.iinfo(np.int32).max)
 
205
  return seed
206
 
207
  ########
 
126
  # neg_guidance=False,
127
 
128
  ):
129
+
130
  x0 = load_512(input_image, device=device)
131
 
132
  if do_inversion:
 
202
  def randomize_seed_fn(seed, randomize_seed):
203
  if randomize_seed:
204
  seed = random.randint(0, np.iinfo(np.int32).max)
205
+ torch.manual_seed(seed)
206
  return seed
207
 
208
  ########