Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
WiNE-iNEFF committed Aug 29, 2022
1 parent 61ae1ef commit 110c030
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
22 changes: 16 additions & 6 deletions gen02.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import random
prompt = '''photorealistic,
prompt = '''
photorealistic,
dramatic,
dramatic color,
liquid,
Expand Down Expand Up @@ -497,6 +498,7 @@
creepy,
scary,
detailed face,
detailed body,
horror art,
scary art,
creepe art,
Expand All @@ -509,12 +511,20 @@
Flat Design Vector Illustrations,
Vector Illustrations,
Flat Design,
RPG Item Icons,
Item Icons,
3D Anime Avatar,
round cute face,
horizon zero dawn,
pubg,
minecraft,
player unknown battleground,
call of duty,
battle field,
world war,
world war 2,
world war 3,
counter strike,
Everlasting summer,
Fate/Stay night,
hdr,
Expand Down Expand Up @@ -581,12 +591,12 @@
Your Name anime art style,
Nature Sunsets,
Sunsets,
Synthwave,'''.splitlines()
Synthwave,
'''.splitlines()
vocab = len(prompt)
#num_word = input(f'Max word (Max {vocab - 1}): ')
generated = []
num_word = 13
for i in range(int(num_word)):
while len(sorted(set(generated), key=lambda d: generated.index(d))) < num_word:
rand = random.randint(0, vocab)
generated.append(prompt[rand-1])
print(' '.join(generated))
generated.append(prompt[rand])
print(' '.join(sorted(set(generated), key=lambda d: generated.index(d))))
6 changes: 3 additions & 3 deletions generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@
vocab = len(prompt)
#num_word = input(f'Max word (Max {vocab - 1}): ')
generated = []
num_word = 17
for i in range(int(num_word)):
num_word = 13
while len(sorted(set(generated), key=lambda d: generated.index(d))) < num_word:
rand = random.randint(0, vocab)
generated.append(prompt[rand-1])
print(' '.join(generated))
print(' '.join(sorted(set(generated), key=lambda d: generated.index(d))))

0 comments on commit 110c030

Please sign in to comment.