Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ollm/opencomic-ai-bin/llms.txt
Use this file to discover all available pages before exploring further.
Signature
Description
Preload models before processing images. This method serves two purposes:- Download models: Ensures all required model files are downloaded and available locally before processing begins
- Daemon mode: For
upscaylmodels, spawns daemon processes that keep models loaded in memory, significantly improving processing speed for multiple images
OpenComicAI.setConcurrentDaemons() is set to a value greater than 0.
Parameters
Array of processing steps to preload. Each step specifies a model and its parameters.See OpenComicAIOptions for available options.
Optional callbacks for monitoring model download progress. Pass
false to disable download callbacks.See Downloading for callback options.Returns
Returns a promise that resolves when all models are downloaded and daemons are started (if enabled).
Daemon mode
When daemon mode is enabled (upscayl models only):
- Models are loaded into memory once and kept running
- Subsequent image processing is 3-7x faster
- Multiple daemons can run concurrently for parallel processing
- Daemons automatically shut down after the configured idle timeout
Examples
Basic preload
Preload with daemon mode
Preload with download tracking
Preload multiple models
Related
- pipeline - Process images with loaded models
- setConcurrentDaemons - Configure daemon mode
- setDaemonIdleTimeout - Set daemon timeout
- closeAllDaemons - Stop all daemons
- OpenComicAIOptions - Available step options