barakmeiri commited on
Commit
52c390b
·
verified ·
1 Parent(s): 8756fd9

Update src/editor.py

Browse files

add to(device) to ImageEditor

Files changed (1) hide show
  1. src/editor.py +5 -0
src/editor.py CHANGED
@@ -86,3 +86,8 @@ class ImageEditorDemo:
86
  guidance_scale=self.edit_cfg).images[0]
87
  return image
88
 
 
 
 
 
 
 
86
  guidance_scale=self.edit_cfg).images[0]
87
  return image
88
 
89
+ def to(device):
90
+ self.pipe_inference.to(device)
91
+ self.pipe_inversion.to(device)
92
+ self.last_latent.to(device)
93
+ self.original_latent.to(device)