aifeifei798 commited on
Commit
f6e72a3
·
verified ·
1 Parent(s): c0f6048

Update feifeilib/feifeitexttoimg.py

Browse files
Files changed (1) hide show
  1. feifeilib/feifeitexttoimg.py +1 -14
feifeilib/feifeitexttoimg.py CHANGED
@@ -39,20 +39,7 @@ def feifeitexttoimg(
39
  output_type="pil",
40
  ).images[0]
41
 
42
- w, h = image.size
43
- control_image = 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
 
39
  output_type="pil",
40
  ).images[0]
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  if sharpened_select:
43
  feifeisharpened(image,num_strength)
44
+
45
  return image