Cognomen commited on
Commit
55bfa61
Β·
1 Parent(s): ce08539

enable augmentation

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -33,13 +33,14 @@ generator = torch.manual_seed(0)
33
  def infer(prompt, negative_prompt, image):
34
  # implement your inference function here
35
 
36
- #cond_input = conditioning_image_transforms(np.array(image)))
 
37
 
38
  output = pipe(
39
  prompt,
40
- image,
41
  generator=generator,
42
- num_images_per_prompt=1,
43
  num_inference_steps=20
44
  )
45
 
 
33
  def infer(prompt, negative_prompt, image):
34
  # implement your inference function here
35
 
36
+ cond_input = conditioning_image_transforms(np.array(image)))
37
+ cond_input = T.ToPILImage(cond_input)
38
 
39
  output = pipe(
40
  prompt,
41
+ cond_input,
42
  generator=generator,
43
+ num_images_per_prompt=4,
44
  num_inference_steps=20
45
  )
46