fix(video2x): allow Real-ESRGAN noise to be -1

Signed-off-by: k4yt3x <i@k4yt3x.com>
This commit is contained in:
k4yt3x 2025-02-08 00:00:00 +00:00
parent 3e987b9693
commit 8803cf10a4
No known key found for this signature in database

View File

@ -394,7 +394,7 @@ int parse_args(
); );
return -1; return -1;
} }
if (proc_cfg.noise_level < 0 || proc_cfg.noise_level > 1) { if (proc_cfg.noise_level < -1 || proc_cfg.noise_level > 1) {
video2x::logger()->critical("Noise level must be 0 or 1 for Real-ESRGAN."); video2x::logger()->critical("Noise level must be 0 or 1 for Real-ESRGAN.");
return -1; return -1;
} }