Artifact removal models clean up the visual noise introduced when a comic image has been saved with lossy compression. Lossy codecs — particularly at lower quality settings — produce blocking (hard edges between 8×8 pixel regions), ringing (faint halos around sharp lines), and color banding (abrupt transitions in smooth gradients). The artifact removal models are trained to detect and suppress all of these degradations while leaving the underlying linework and color fills unchanged.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ollm/opencomic-ai-training/llms.txt
Use this file to discover all available pages before exploring further.
Dataset
Each model in this group was trained on 400,000 image pairs. Each clean source image was encoded with 100 distinct degradation variants, giving the model a broad exposure to the range of compression artefacts it will encounter in the wild. Degradations included in training:- JPEG at quality levels 30–100 (primary pass, probability 0.8)
- WebP lossy compression (probability 0.1)
- AVIF compression (probability 0.2; added in v2.0)
- JXL (JPEG XL) compression (probability 0.2; added in v2.0)
- Multiple stacked JPEG passes — up to four additional JPEG re-encodes applied in sequence (each at probability 0.1), simulating images that have been saved and re-saved multiple times
- Small resize followed by re-upscale (probability 0.5, to simulate resampling artefacts)
- Rotate (probability 0.2)
- Mild blur (to simulate scan softening after compression)
Model Variants
All three variants operate at 1× scale (restoration only, no upsampling) and produce NCNN weight files as a.bin + .param pair.
| Model | Architecture | NCNN Path | Iterations |
|---|---|---|---|
opencomic-ai-artifact-removal | ESRGAN | models/artifact-removal/ncnn/ | 1,000,000 |
opencomic-ai-artifact-removal-lite | ESRGAN Lite | models/artifact-removal/ncnn/ | 1,000,000 |
opencomic-ai-artifact-removal-compact | Compact | models/artifact-removal/ncnn/ | 450,000 |
models/artifact-removal/ncnn/ contains two files per model: