OmPrakashSingh1704 commited on
Commit
5d37dd0
·
1 Parent(s): 57d1b38
options/Banner_Model/Image2Image_2.py CHANGED
@@ -18,7 +18,7 @@ pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
18
  # pipe.enable_model_cpu_offload()
19
 
20
  def I2I_2(image, prompt,size,num_inference_steps):
21
- image.resize((size))
22
  image=processor(image)
23
  generator = torch.Generator(device=device).manual_seed(0)
24
  image = pipe(prompt, num_inference_steps=num_inference_steps, generator=generator, image=image).images[0]
 
18
  # pipe.enable_model_cpu_offload()
19
 
20
  def I2I_2(image, prompt,size,num_inference_steps):
21
+ image.resize((size,size))
22
  image=processor(image)
23
  generator = torch.Generator(device=device).manual_seed(0)
24
  image = pipe(prompt, num_inference_steps=num_inference_steps, generator=generator, image=image).images[0]