Skip to content

Minimal tool to extract the generation metadata of an image produced by Automatic1111 or Fooocus, such as prompt, negative prompt and model name.

License

Notifications You must be signed in to change notification settings

brayevalerien/Prompt-retreiver

Repository files navigation

Prompt Retreiver

Minimal tool to extract the generation metadata of an image produced by Automatic1111 or Fooocus, such as prompt, negative prompt and model name.

Screenshot of the Web UI

Installation

You will need have Python and Anaconda downloaded before installing Prompt Retreiver.

Open a terminal where you want to install Prompt Retreiver and clone this repository:

git clone https://github.com/brayevalerien/Prompt-retreiver

Then cd into the cloned repository and create a new Anaconda environment and activate it:

cd Prompt-retreiver
conda create -n promptretreiver -y
conda activate promptretreiver

Install the required libraries:

pip install -r requirements.txt

Everything is now setup to start using Prompt Retreiver.

Usage

Run start.bat to start the Gradio server of Prompt Retreiver. It uses local port 6006 so make sure no other application is using it.

Simple drop or upload an image you have generated and it will display the image generation informations in the textboxes bellow, if they were saved in the image. You can then copy the informations and reuse them elsewhere.

Note that vanilla Fooocus requires you to manually check the option for saving metadata to images. If your image does not contain metadata, nothing will be output in the textboxes.

Contributing

Prompt Retreiver should remain a minimal tool that is fast to start and to use, but feel free to contribute to the project if you feel like it could improve. There are two main ways to do so:

Both types of contributions are very helpfull!

Road map

Mandatory features:

  • build fonctional gradio UI with callbacks
  • implement the function to extract metadata

Optional features:

  • rearange the UI to make it easier to work with
  • support for both Fooocus and Automatic1111 metadata schemes
  • cleaner parsing code
  • integrate into Fooocus Lite?
  • add one-click launching script

About

Minimal tool to extract the generation metadata of an image produced by Automatic1111 or Fooocus, such as prompt, negative prompt and model name.

Topics

Resources

License

Stars

Watchers

Forks