OmPrakashSingh1704 commited on
Commit
58060a7
·
1 Parent(s): 6b98bcb
options/Banner_Model/Image2Image.py CHANGED
@@ -39,7 +39,7 @@ def resize_image_dimensions(
39
  return new_width, new_height
40
 
41
 
42
- @spaces.GPU
43
  def I2I(
44
  input_image_editor: dict,
45
  input_text: str,
@@ -65,7 +65,7 @@ def I2I(
65
  return None, None
66
 
67
  pipe = FluxInpaintPipeline.from_pretrained(
68
- "black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16).to(DEVICE)
69
 
70
  width, height = resize_image_dimensions(original_resolution_wh=image.size)
71
  resized_image = image.resize((width, height), Image.LANCZOS)
 
39
  return new_width, new_height
40
 
41
 
42
+ @spaces.GPU(duration=100)
43
  def I2I(
44
  input_image_editor: dict,
45
  input_text: str,
 
65
  return None, None
66
 
67
  pipe = FluxInpaintPipeline.from_pretrained(
68
+ "black-forest-labs/FLUX.1-schnell", torch_dtype=torch.bfloat16).to(DEVICE)
69
 
70
  width, height = resize_image_dimensions(original_resolution_wh=image.size)
71
  resized_image = image.resize((width, height), Image.LANCZOS)