SR Flaw Scry: Artifact Detection for Super-Resolution
Collection
Find where super-resolution goes wrong and which artifacts appear โข 3 items โข Updated
๐ Find where super-resolution goes wrong and which artifacts appear
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"),
)