Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -70,8 +70,8 @@ app.prepare(ctx_id=0, det_size=(640, 640), det_thresh=0.2)
|
|
70 |
def generate_images(prompt, img_filepath,
|
71 |
negative_prompt="monochrome, lowres, bad anatomy, worst quality, low quality, blurry",
|
72 |
img_prompt_scale=0.5,
|
73 |
-
num_inference_steps=
|
74 |
-
seed=None, n_images=
|
75 |
print(f'{datetime.now().strftime("%Y/%m/%d %H:%M:%S")}: {prompt}')
|
76 |
image = cv2.imread(img_filepath)
|
77 |
faces = app.get(image)
|
|
|
70 |
def generate_images(prompt, img_filepath,
|
71 |
negative_prompt="monochrome, lowres, bad anatomy, worst quality, low quality, blurry",
|
72 |
img_prompt_scale=0.5,
|
73 |
+
num_inference_steps=40,
|
74 |
+
seed=None, n_images=2):
|
75 |
print(f'{datetime.now().strftime("%Y/%m/%d %H:%M:%S")}: {prompt}')
|
76 |
image = cv2.imread(img_filepath)
|
77 |
faces = app.get(image)
|