Spaces:
Running
Running
OmPrakashSingh1704
commited on
Commit
•
fbb1cf8
1
Parent(s):
bc8d897
options/Banner.py
CHANGED
@@ -8,10 +8,8 @@ def TextImage(prompt, width=1024, height=1024, guidance_scale=3.5,
|
|
8 |
img = T2I(prompt, width, height, guidance_scale, num_inference_steps)
|
9 |
return img
|
10 |
|
11 |
-
def Image2Image(prompt,image
|
12 |
-
|
13 |
-
):
|
14 |
-
return I2I(image, prompt, width, height, guidance_scale, num_inference_steps, strength)
|
15 |
|
16 |
def Image2Image_2(prompt,image,size,num_inference_steps=30):
|
17 |
return I2I_2(image, prompt,size,num_inference_steps)
|
|
|
8 |
img = T2I(prompt, width, height, guidance_scale, num_inference_steps)
|
9 |
return img
|
10 |
|
11 |
+
def Image2Image(prompt,image):
|
12 |
+
return I2I(image, prompt)
|
|
|
|
|
13 |
|
14 |
def Image2Image_2(prompt,image,size,num_inference_steps=30):
|
15 |
return I2I_2(image, prompt,size,num_inference_steps)
|
options/Banner_Model/Image2Image.py
CHANGED
@@ -99,7 +99,7 @@ def I2I(
|
|
99 |
num_inference_steps=num_inference_steps_slider
|
100 |
).images[0]
|
101 |
print('INFERENCE DONE')
|
102 |
-
imageio.imwrite("output_image.png",
|
103 |
return result
|
104 |
|
105 |
def remove_background(image: Image.Image, threshold: int = 50) -> Image.Image:
|
|
|
99 |
num_inference_steps=num_inference_steps_slider
|
100 |
).images[0]
|
101 |
print('INFERENCE DONE')
|
102 |
+
imageio.imwrite("output_image.png", result)
|
103 |
return result
|
104 |
|
105 |
def remove_background(image: Image.Image, threshold: int = 50) -> Image.Image:
|
options/__pycache__/Banner.cpython-310.pyc
CHANGED
Binary files a/options/__pycache__/Banner.cpython-310.pyc and b/options/__pycache__/Banner.cpython-310.pyc differ
|
|