I've written a script that performs video upscaling using S3Diff in batch mode. The file inference_s3diff_video.py should be located in the src subdirectory of the S3Diff folder. The default location for input video files is the "video" folder. Place the video upscaling script, video_upscale.py, in the root directory of S3Diff. The models are assumed to be at these paths: 'assets/mm-realsr/de_net.pth', 'models/s3diff.pkl', and 'models/sd-turbo'. You can modify the paths to the models within the upscaling script itself, as well as the codec if you prefer a different one. :)
Simply run the script within your conda environment with the command: python video_upscale.py
The upscaled videos will be placed in the "video" folder alongside the originals, with a suffix appended. :)
You'll need to download and install FFmpeg. On Windows, you'll need to add it to your PATH environment variable. I haven't tested the script on Ubuntu, but it should work. :)
v2
S3Diff_video_upscaling_batch script.zip
I've written a script that performs video upscaling using S3Diff in batch mode. The file inference_s3diff_video.py should be located in the src subdirectory of the S3Diff folder. The default location for input video files is the "video" folder. Place the video upscaling script, video_upscale.py, in the root directory of S3Diff. The models are assumed to be at these paths: 'assets/mm-realsr/de_net.pth', 'models/s3diff.pkl', and 'models/sd-turbo'. You can modify the paths to the models within the upscaling script itself, as well as the codec if you prefer a different one. :)
Simply run the script within your conda environment with the command: python video_upscale.py
The upscaled videos will be placed in the "video" folder alongside the originals, with a suffix appended. :)
You'll need to download and install FFmpeg. On Windows, you'll need to add it to your PATH environment variable. I haven't tested the script on Ubuntu, but it should work. :) v2 S3Diff_video_upscaling_batch script.zip