OmPrakashSingh1704 commited on
Commit
30206c8
·
1 Parent(s): 6b1b6cf
options/Banner.py CHANGED
@@ -8,7 +8,7 @@ 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, width=1024, height=1024, guidance_scale=.35,num_inference_steps=30,strength=0.99):
12
  return I2I(image, prompt, width, height, guidance_scale, num_inference_steps, strength)
13
 
14
  def Image2Image_2(prompt,image,size,num_inference_steps=30):
 
8
  img = T2I(prompt, width, height, guidance_scale, num_inference_steps)
9
  return img
10
 
11
+ def Image2Image(prompt,image, width, height, guidance_scale,num_inference_steps,strength):
12
  return I2I(image, prompt, width, height, guidance_scale, num_inference_steps, strength)
13
 
14
  def Image2Image_2(prompt,image,size,num_inference_steps=30):
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", result)
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", resul)
103
  return result
104
 
105
  def remove_background(image: Image.Image, threshold: int = 50) -> Image.Image:
options/Banner_Model/__pycache__/Image2Image.cpython-310.pyc CHANGED
Binary files a/options/Banner_Model/__pycache__/Image2Image.cpython-310.pyc and b/options/Banner_Model/__pycache__/Image2Image.cpython-310.pyc differ