Linoy Tsaban commited on
Commit
dd848f1
1 Parent(s): a5fdee9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -55,8 +55,7 @@ def edit(input_image, input_image_prompt='', target_prompt='', edit_prompt='',
55
  edit_guidance_scale=8, guidance_scale=15, skip=36, num_diffusion_steps=100,
56
  ):
57
  offsets=(0,0,0,0)
58
- input_image = pil_to_tensor(input_image).type(torch.float16)
59
- x0 = load_512(input_image, *offsets, device)
60
 
61
 
62
  # invert
 
55
  edit_guidance_scale=8, guidance_scale=15, skip=36, num_diffusion_steps=100,
56
  ):
57
  offsets=(0,0,0,0)
58
+ x0 = pil_to_tensor(load_512(input_image, *offsets, device)).type(torch.float16)
 
59
 
60
 
61
  # invert