PreviewTrain
- class lib.gui.utils.image.PreviewTrain(cache_path: str)
Bases:
objectHandles the loading of the training preview image(s) and adding to the display buffer
- Parameters:
cache_path (str) – Full path to the cache folder that contains the preview images
Attributes Summary
PreviewBufferThe preview buffer for the training preview image.Methods Summary
load()Load the latest training preview image(s) from disk and add to
bufferreset()Reset the preview buffer when the display page has been disabled.
Attributes Documentation
- buffer
PreviewBufferThe preview buffer for the training preview image.
Methods Documentation
- load() bool
Load the latest training preview image(s) from disk and add to
buffer- Return type:
bool
- reset() None
Reset the preview buffer when the display page has been disabled.
Notes
The buffer requires resetting, otherwise the re-enabled preview window hangs waiting for a training image that has already been marked as processed
- Return type:
None
- property buffer: PreviewBuffer
PreviewBufferThe preview buffer for the training preview image.
- load() bool
Load the latest training preview image(s) from disk and add to
buffer- Return type:
bool
- reset() None
Reset the preview buffer when the display page has been disabled.
Notes
The buffer requires resetting, otherwise the re-enabled preview window hangs waiting for a training image that has already been marked as processed
- Return type:
None