API Reference
Classes
Section titled “Classes”HatUpscaleProvider
Section titled “HatUpscaleProvider”Talks to a hat_server.py reference server via UpscaleProvider.
RealEsrganUpscaleProvider
Section titled “RealEsrganUpscaleProvider”Talks to a real_esrgan_server.py reference server via UpscaleProvider.
UpscaleConfig
Section titled “UpscaleConfig”Configuration for the upscale generation subsystem.
UpscaleGenerationProvider
Section titled “UpscaleGenerationProvider”Provider that registers a configured UpscaleProvider backend.
UpscaleModule
Section titled “UpscaleModule”Image/video upscale integration.
UpscaleTask
Section titled “UpscaleTask”Callable task handler — wraps an UpscaleProvider backend for lexigram-tasks.
Returns a plain dict (never raw MediaAsset bytes) because lexigram-tasks’ result store JSON-serializes JobResult. The umbrella wraps this handler during MultimediaProvider.register() to persist any bytes to lexigram-storage BEFORE this dict is constructed.
VideoUpscaleService
Section titled “VideoUpscaleService”Extracts a video's frames, upscales each, then reassembles them.
Not itself an UpscaleProvider — a different method name
(upscale_video, not upscale) and a different signature (a
whole-video MediaAsset plus scale_factor, not an UpscaleRequest),
since video upscaling isn’t a drop-in single-frame operation
(design spec §6.3).