Spaces:
Runtime error
Runtime error
enable augmentation
Browse files
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 |
-
|
|
|
|
| 37 |
|
| 38 |
output = pipe(
|
| 39 |
prompt,
|
| 40 |
-
|
| 41 |
generator=generator,
|
| 42 |
-
num_images_per_prompt=
|
| 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 |
|