Skip to content

MAXIM models and "blocky" output #1300

@tmtisfree

Description

@tmtisfree

I implemented all MAXIM models according to the documentation (which is great btw, thank you). I reused the code from the upscaler side of the app which works fine in browsers.

To test the models I used the pictures from the documentation. All models output images with blocks whatever the size of the input or patch size (64, 128) or padding (from 2 to 5).

Patch size of 128 exhibits less blocks, but still visible in small size input. Padding has not much effect (at least on small size input, say width/height < 200 px).

The issue seems similar to this one, but with all models exhibiting blocks.

Tests with medium size input

Deblur output with patch size 64 and padding 2 (blocks visible by zooming in):
Image

Derain output with patch size 64 and padding 4 (blocks visible by zooming in):
Derain model loaded from https://cdn.jsdelivr.net/npm/@upscalerjs/maxim-deraining@0.1.0/models/model.json
Image

Tests of patch size and padding in Low light enhancement model with small size input

Output with patch size 64 and padding 2:
Image

Output with patch size 64 and padding 4:
Image

Output with patch size 128 and padding 2:
Image

Output with patch size 128 and padding 4:
Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions