Closed pmonck closed 3 years ago
Sure, just change these lines in the file: /usr/local/lib/python3.7/dist-packages/big_sleep/big_sleep.py
or wherever you find the big_sleep.py file on your computer if you don't use a colab notebook.
Line number 317: self.set_text(seed, text, text_min)
...
332: def set_text(self, seed, text, text_min=""):
...
343: self.filename = Path(f'./{textpath}_{seed}.png')
Then it will save the seed value in the filename of the images.
"--random" just creates a number from 0 to 1000000 and saves it in the seed variable: cli.py
if random:
seed = rnd.randint(0, 1e6)
@pmonck done with --append-seed
flag! https://github.com/lucidrains/big-sleep/commit/9ba158bbe45c42d259b489de52c05a131483dd82
Great, thanks!
I'm now getting filenames containing "\" which were previously removed automatically. Seems to be independent of --append_seed flag. Will raise as new issue.
Would it be possible to add the random seed value generated by --random to the output file name to make it easier to re-use?