Skip to content

Commit 110c030

Browse files
committed
update script
1 parent 61ae1ef commit 110c030

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

gen02.py

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import random
2-
prompt = '''photorealistic,
2+
prompt = '''
3+
photorealistic,
34
dramatic,
45
dramatic color,
56
liquid,
@@ -497,6 +498,7 @@
497498
creepy,
498499
scary,
499500
detailed face,
501+
detailed body,
500502
horror art,
501503
scary art,
502504
creepe art,
@@ -509,12 +511,20 @@
509511
Flat Design Vector Illustrations,
510512
Vector Illustrations,
511513
Flat Design,
514+
RPG Item Icons,
515+
Item Icons,
516+
3D Anime Avatar,
512517
round cute face,
513518
horizon zero dawn,
519+
pubg,
520+
minecraft,
521+
player unknown battleground,
522+
call of duty,
514523
battle field,
515524
world war,
516525
world war 2,
517526
world war 3,
527+
counter strike,
518528
Everlasting summer,
519529
Fate/Stay night,
520530
hdr,
@@ -581,12 +591,12 @@
581591
Your Name anime art style,
582592
Nature Sunsets,
583593
Sunsets,
584-
Synthwave,'''.splitlines()
594+
Synthwave,
595+
'''.splitlines()
585596
vocab = len(prompt)
586-
#num_word = input(f'Max word (Max {vocab - 1}): ')
587597
generated = []
588598
num_word = 13
589-
for i in range(int(num_word)):
599+
while len(sorted(set(generated), key=lambda d: generated.index(d))) < num_word:
590600
rand = random.randint(0, vocab)
591-
generated.append(prompt[rand-1])
592-
print(' '.join(generated))
601+
generated.append(prompt[rand])
602+
print(' '.join(sorted(set(generated), key=lambda d: generated.index(d))))

generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@
207207
vocab = len(prompt)
208208
#num_word = input(f'Max word (Max {vocab - 1}): ')
209209
generated = []
210-
num_word = 17
211-
for i in range(int(num_word)):
210+
num_word = 13
211+
while len(sorted(set(generated), key=lambda d: generated.index(d))) < num_word:
212212
rand = random.randint(0, vocab)
213213
generated.append(prompt[rand-1])
214-
print(' '.join(generated))
214+
print(' '.join(sorted(set(generated), key=lambda d: generated.index(d))))

0 commit comments

Comments
 (0)