-
Notifications
You must be signed in to change notification settings - Fork 10
Image Recovery

I think that most Fooocus users have encountered the loss of perfectly good images that were seen in preview but due to a software bug or a hardware problem those images were never saved. It is also possible to lose images due to human error. Fortunately those preview images actually are available in a temporary directory and they can be easily recovered.
In Windows, by default the FooocusPlus temporary images are found in the Users directory located in the root of the boot or system drive, typically the C: drive. In my case the user name is "buyer" and this is the full path to the temporary files:
C:\Users\buyer\AppData\Local\Temp\fooocusplus
This rather non-intuitive path can be changed using the --temp_path Command Line Argument or with the "temp_path" config.txt option. Wherever the temporary directory may be located, the image below shows a typical folder listing after FooocusPlus has generated a batch of images.

In the case of original Fooocus and earlier versions of FooocusPlus, the contents of this temporary directory was cleared automatically during program startup. This is necessary, otherwise your boot drive could be overrun by perhaps hundreds of large temporary files. But if a crash to desktop occurred and you restarted Fooocus then all those temporary images were gone.
Instead, FooocusPlus clears out the temporary files only at the start of each generative cycle - not when you are trying to restart after the excitement of a crash. This increases program efficiency and stability, especially when boot drive space is limited as it is for many people, including myself.
But it is important that the user recover those images as soon as possible, as shown below.

To start image recovery:
- Make sure the Advanced checkbox below the main canvas is checked
- Select the Advanced tab
- Open the Image Control accordion
- Click on the Recover Images button
- The images will be saved to the Outputs directory in the folder for today's date
In this case the info popups show that an image grid and 14 lost images were recovered. Four additional images that were already preset in the Outputs directory were skipped.