YuvalNirkin / fsgan

FSGAN - Official PyTorch Implementation
https://nirkin.com/fsgan
Creative Commons Zero v1.0 Universal
749 stars 147 forks source link

Low resolution output Colab #130

Open Steeech opened 3 years ago

Steeech commented 3 years ago

Thanks for the project and its implementation in Colab, it's very convenient. I faced the problem that at the output the first frames of the video give a satisfactory quality, and then the quality deteriorates. I did everything according to the instructions. How can I fix this? first frames 5xo3-k9StFo other frames VnAAdIJn_BY

YuvalNirkin commented 3 years ago

This looks like an issue with the video encoder CODEC. For best results the AVC1 CODEC should be used, unfortunately it is not available in the pip or conda versions of OpenCV on Linux. Installing OpenCV from source takes a long time so I decided to omit this step from the Colab demo.

I suggest that you either follow the installation guide to install FSGAN on your system or modify the Colab with a OpenCV that is installed from source (as explained in the guide).