Spaces:
Runtime error
Runtime error
Update src/editor.py
Browse filesadd to(device) to ImageEditor
- 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)
|