Spaces:
Running
on
Zero
Running
on
Zero
Update feifeilib/feifeiprompt.py
Browse files
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 |
-
|
49 |
-
prompt = prompt
|
50 |
-
|
51 |
-
|
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
|