1. Development Background and Purpose
While working with local AI image generation software, unexpected events such as Windows errors, sudden system shutdowns, application crashes, or even a cat pressing the PC's reset button can interrupt the image production process.
In AUTOMATIC1111, accidentally clicking the Generate button can also replace the existing txt2img gallery with newly generated images.
Although the previously saved PNG files remain on the drive, recovering the image selection and processing workflow can be time-consuming, particularly when working with hundreds or thousands of images.
I developed Restore, a free, open-source extension for AUTOMATIC1111, to simplify this process. It restores previously saved images directly to the existing txt2img gallery, allowing users to resume their work within the original interface.
The current version is designed for AUTOMATIC1111. I am considering developing a dedicated version for ComfyUI and would appreciate feedback from ComfyUI users regarding its potential usefulness and preferred functionality.
2. Main Features of Restore v1.0.0
- Restore up to 2,000 saved PNG images in one click. (If anyone requires a higher limit, I can modify the extension to support 10,000, 100,000, or more images.)
- Read the generation metadata embedded in PNG files.
- Automatically detect the default image output directory.
- Allow users to specify a different image directory.
- Restore images directly to the existing txt2img gallery.
- Resume image selection and subsequent image processing within the original interface.
- Preserve all original image files.
- Operate without additional software or dependencies.
The demonstration video shows the restoration of 100 saved images in AUTOMATIC1111, followed by further processing using Hires. fix and ADetailer.
3. Installation and Usage in AUTOMATIC1111
The current version can be installed through Extensions → Install from URL using the following repository URL:
https://github.com/flynbird-cyber/Restore.git
After installation and restarting the WebUI:
- Open the txt2img tab.
- Expand the Restore menu.
- Confirm or specify the image directory.
- Set the number of recent images to restore, from 1 to 2,000. The default value is 1,000.
- Click Restore PNGs to txt2img gallery.
The selected number of recent PNG images will appear directly in the existing gallery, where users can browse, select, and process them using the available WebUI functions.
4. Compatibility and Testing
- AUTOMATIC1111 Stable Diffusion WebUI v1.10.x
- Gradio 3.41.x
- Successfully tested with 10, 100, and 1,000 saved PNG images.
- Hires. fix and ADetailer functionality tested successfully using restored images.
- Current maximum restoration limit: 2,000 images.
The original PNG files must remain in the specified directory. Restore reads their embedded generation metadata and restores them to the gallery while preserving the original files.
Subsequent processing uses the applicable functions and current settings of the WebUI and installed extensions.
5. Proposed Development for ComfyUI
For a dedicated ComfyUI version, I am considering the following functions:
- Restoration of previously generated images directly within the ComfyUI interface.
- Automatic detection of the default output directory and support for custom directories.
- Adjustable restoration limits for large-scale image production.
- Retrieval of generation metadata and embedded workflow information, where available.
- Selection and reuse of restored images in subsequent workflows.
- Integration with the existing ComfyUI interface and node-based workflow.
- Preservation of all original image files.
The objective is to develop a practical workflow recovery tool adapted to ComfyUI's architecture rather than simply reproduce the AUTOMATIC1111 interface.
I would particularly appreciate feedback on the following points:
- Would this functionality be useful in your existing ComfyUI workflow?
- Which restoration and image management functions would you consider most important?
- Would you prefer an integrated gallery panel, dedicated custom nodes, or a combination of both?
Development of the ComfyUI version will depend on community interest and technical requirements.
6. GitHub Repository and Documentation
The existing AUTOMATIC1111 version of Restore is completely free and open source under the AGPL-3.0 license.
GitHub Repository
https://github.com/flynbird-cyber/Restore
Demonstration Video, Screenshots, and Detailed User Guide
https://github.com/flynbird-cyber/Restore/issues/1
Official Release — v1.0.0
https://github.com/flynbird-cyber/Restore/releases/tag/v1.0.0
Please feel free to review the existing project. If you also use AUTOMATIC1111, you are welcome to try the extension.
If you find the project useful or would like to support the development of a ComfyUI version, I would appreciate a star.
Feedback, technical suggestions, and requests for additional features are welcome.
I hope a future ComfyUI version of Restore will help you resume your work more efficiently, even if your cat presses the reset button again.
And between us, the best feature of Restore is that you can generously forgive your cat instead of getting into a fight with it.
Note: I'm Korean and live in Seoul. As I'm not fluent in English, I use a translator for this post and my replies. Please excuse any awkward wording.