Spaces:
Running
on
Zero
Running
on
Zero
Update feifeilib/feifeitexttoimg.py
Browse files- feifeilib/feifeitexttoimg.py +14 -1
feifeilib/feifeitexttoimg.py
CHANGED
@@ -39,7 +39,20 @@ def feifeitexttoimg(
|
|
39 |
output_type="pil",
|
40 |
).images[0]
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
if sharpened_select:
|
43 |
feifeisharpened(image,num_strength)
|
44 |
-
print(prompt)
|
45 |
return image
|
|
|
39 |
output_type="pil",
|
40 |
).images[0]
|
41 |
|
42 |
+
w, h = image.size
|
43 |
+
control_image = control_image.resize((w * 4, h * 4))
|
44 |
+
|
45 |
+
image = pipe(
|
46 |
+
prompt="",
|
47 |
+
prompt_2=prompt,
|
48 |
+
control_image=control_image,
|
49 |
+
controlnet_conditioning_scale=0.6,
|
50 |
+
num_inference_steps=8,
|
51 |
+
guidance_scale=3.5,
|
52 |
+
height=control_image.size[1],
|
53 |
+
width=control_image.size[0]
|
54 |
+
).images[0]
|
55 |
+
|
56 |
if sharpened_select:
|
57 |
feifeisharpened(image,num_strength)
|
|
|
58 |
return image
|