aifeifei798 commited on
Commit
8db78fc
·
verified ·
1 Parent(s): 16fd872

Update feifeilib/feifeiprompt.py

Browse files
Files changed (1) hide show
  1. feifeilib/feifeiprompt.py +4 -9
feifeilib/feifeiprompt.py CHANGED
@@ -1,11 +1,9 @@
1
  import numpy as np
2
  import random
3
- #from extras.expansion import FooocusExpansion
4
  import re
5
  import torch
6
  import config
7
 
8
- #expansion = FooocusExpansion()
9
  with open("artist.txt", "r") as file:
10
  artists = file.readlines()
11
 
@@ -45,12 +43,9 @@ def feifeiprompt(randomize_seed,seed,prompt,quality_select,styles_Radio,FooocusE
45
  prompt += style["prompt"].replace("{prompt}", "the ")
46
 
47
  if FooocusExpansion_select:
48
- # prompt = expansion(prompt, seed)
49
- prompt = prompt
50
- # prompt = f"feifei, flux, real model girl in real life, {prompt}, slight smile, Master of Light and Shadow."
51
- prompt = re.sub("girl", " feifei, A beautiful, 18 yo kpop idol, large-busted Japanese girl, with light makeup, gazing deeply into the camera, " ,prompt)
52
- prompt = re.sub("young woman", " feifei, A beautiful, 18 yo kpop idol, large-busted Japanese girl, with light makeup, gazing deeply into the camera, " ,prompt)
53
- prompt = re.sub("woman", " feifei, A beautiful, 18 yo kpop idol, large-busted Japanese girl, with light makeup, gazing deeply into the camera, " ,prompt)
54
- prompt = re.sub("model", " feifei, A beautiful, 18 yo kpop idol, large-busted Japanese girl, with light makeup, gazing deeply into the camera, " ,prompt)
55
 
56
  return prompt,generator
 
1
  import numpy as np
2
  import random
 
3
  import re
4
  import torch
5
  import config
6
 
 
7
  with open("artist.txt", "r") as file:
8
  artists = file.readlines()
9
 
 
43
  prompt += style["prompt"].replace("{prompt}", "the ")
44
 
45
  if FooocusExpansion_select:
46
+ prompt = re.sub("girl", " feifei, A beautiful, 18 yo kpop idol, large-busted Japanese girl, with light makeup, gazing deeply into the camera, " ,prompt)
47
+ prompt = re.sub("young woman", " feifei, A beautiful, 18 yo kpop idol, large-busted Japanese girl, with light makeup, gazing deeply into the camera, " ,prompt)
48
+ prompt = re.sub("woman", " feifei, A beautiful, 18 yo kpop idol, large-busted Japanese girl, with light makeup, gazing deeply into the camera, " ,prompt)
49
+ prompt = re.sub("model", " feifei, A beautiful, 18 yo kpop idol, large-busted Japanese girl, with light makeup, gazing deeply into the camera, " ,prompt)
 
 
 
50
 
51
  return prompt,generator