Update !fetch command, add documentation and autocomplete list

-- !fetch takes second optional argument name of the file to save commands to
This commit is contained in:
ArDiouscuros
2022-10-03 10:38:22 +02:00
parent 93b1298d46
commit 935a9d3c75
3 changed files with 35 additions and 9 deletions

View File

@ -249,16 +249,31 @@ generated image and either loads them into the command line
(Linux|Mac), or prints them out in a comment for copy-and-paste
(Windows). You may provide either the name of a file in the current
output directory, or a full file path.
Given a wildcard path to a folder with image png files,
command will retrieve the dream command used to generate the images,
and save them to a file commands.txt for further processing
Name of the saved file could be set as the second argument to !fetch
~~~
dream> !fetch 0000015.8929913.png
# the script returns the next line, ready for editing and running:
dream> a fantastic alien landscape -W 576 -H 512 -s 60 -A plms -C 7.5
dream> !fetch outputs\selected-imgs\*.png selected.txt
>> File outputs\selected-imgs\selected.txt with commands created
~~~
Note that this command may behave unexpectedly if given a PNG file that
was not generated by InvokeAI.
## !replay
This command replays a text file generated by !fetch or created manually
~~~
dream> !replay outputs\selected-imgs\selected.txt
~~~
## !history
The dream script keeps track of all the commands you issue during a