juxuan27 commited on
Commit
372ced5
1 Parent(s): 2ba0d25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -113,7 +113,7 @@ def process(input_image,
113
  init_image = Image.fromarray(masked_image.astype(np.uint8)).convert("RGB")
114
  mask_image = Image.fromarray(original_mask.astype(np.uint8)).convert("RGB")
115
 
116
- generator = torch.Generator().manual_seed(random.randint(0,2147483647) if randomize_seed else seed)
117
 
118
  image = pipe(
119
  [prompt]*2,
 
113
  init_image = Image.fromarray(masked_image.astype(np.uint8)).convert("RGB")
114
  mask_image = Image.fromarray(original_mask.astype(np.uint8)).convert("RGB")
115
 
116
+ generator = torch.Generator("cuda").manual_seed(random.randint(0,2147483647) if randomize_seed else seed)
117
 
118
  image = pipe(
119
  [prompt]*2,