Linoy Tsaban
commited on
Commit
·
e6519b8
1
Parent(s):
8eddb9e
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,7 @@ def edit(input_image,
|
|
| 100 |
cfg_scale_tar=tar_cfg_scale, skip=skip)
|
| 101 |
|
| 102 |
if not edit_concept or not sega_edit_guidance:
|
| 103 |
-
return pure_ddpm_out,pure_ddpm_out
|
| 104 |
# SEGA
|
| 105 |
edit_concepts = edit_concept.split(",")
|
| 106 |
neg_guidance =[]
|
|
@@ -126,7 +126,7 @@ def edit(input_image,
|
|
| 126 |
num_images_per_prompt=1,
|
| 127 |
num_inference_steps=steps,
|
| 128 |
use_ddpm=True, wts=wts, zs=zs[skip:], **editing_args)
|
| 129 |
-
|
| 130 |
|
| 131 |
########
|
| 132 |
# demo #
|
|
|
|
| 100 |
cfg_scale_tar=tar_cfg_scale, skip=skip)
|
| 101 |
|
| 102 |
if not edit_concept or not sega_edit_guidance:
|
| 103 |
+
return pure_ddpm_out, pure_ddpm_out
|
| 104 |
# SEGA
|
| 105 |
edit_concepts = edit_concept.split(",")
|
| 106 |
neg_guidance =[]
|
|
|
|
| 126 |
num_images_per_prompt=1,
|
| 127 |
num_inference_steps=steps,
|
| 128 |
use_ddpm=True, wts=wts, zs=zs[skip:], **editing_args)
|
| 129 |
+
return pure_ddpm_out,sega_out.images[0]
|
| 130 |
|
| 131 |
########
|
| 132 |
# demo #
|