WASD: Weakly-supervised Artifact Scoring with Discriminative triplet loss

๐Ÿ’ป Code | ๐Ÿค— Demo

๐Ÿ” Find where super-resolution goes wrong and which artifacts appear

๐Ÿ› ๏ธ Usage

Install srflawscry via the package manager:

pip3 install git+https://github.com/msu-video-group/srflawscry

Then use the following snippet to run WASD metric on super-resolution method results:

from pathlib import Path

from srflawscry import WASD

model = WASD.from_pretrained("egorchistov/sr-artifact-detection-wasd").eval()
model.run(
    image_path=Path("result.png"),
    source_path=Path("source.png"),
    output_path=Path("artifact_mask.png"),
)
Downloads last month
79
Safetensors
Model size
5.49M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Space using egorchistov/sr-artifact-detection-wasd 1

Collection including egorchistov/sr-artifact-detection-wasd