idealo / image-super-resolution

🔎 Super-scale your images and run experiments with Residual Dense and Adversarial Networks.
https://idealo.github.io/image-super-resolution/
Apache License 2.0
4.6k stars 758 forks source link

Benchmarking #5

Open alxcnwy opened 5 years ago

alxcnwy commented 5 years ago

Can you please add some performance numbers to the main project docs indicating inference latency running some common hardware options e.g. AWS p2, GCP gpu instance, CPU inference, Raspbery pi, etc.

alxcnwy commented 5 years ago

I'm curious if it's fast enough to run on video. I understand there may be some cross-frame artefacts but first wondering if latency might be a deal-breaker

cfrancesco commented 5 years ago

Hi, currently we do not plan to provide benchmarks on any hardware. However:

Unfortunately most papers, including the ones implemented here, provide little to no benchmarking, so the literature is also not very helpful. My personal opinion is that as of now, applying image super-resolution to videos is a doable albeit extremely costly task (inference on a large 1000x1000 RGB image can take up to 300 seconds on modern CPU).

alxcnwy commented 5 years ago

Thanks for your reply @cfrancesco. I think benchmarks would be useful so please reconsider...

ejaszewski commented 5 years ago

@alexcnwy I've been doing some experimentation for video inference. I wrote a quick script that takes an input video, pipes the frames one at a time through ISR and saves the output using ffmpeg. On my RTX 2060, I get around 0.5-2 FPS depending on the input video resolution and model used. Cross-frame artefacts don't seem to be a major problem, although quality is worse than models specifically designed for video inference (such as TecoGAN).