juxuan27 commited on
Commit
671a9c8
1 Parent(s): f79954b

Update app.py

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