4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 18:44:21 +08:00

Increase jpg quality for downscaled images (#556)

This commit is contained in:
Matthew Tancik 2022-09-27 09:49:46 -07:00 committed by GitHub
parent 6404e15057
commit d6139f25d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -205,7 +205,7 @@ def downscale_images(image_dir: Path, num_downscales: int, verbose: bool = False
filename = f"frame_%05d{file_type}"
ffmpeg_cmd = [
f"ffmpeg -i {image_dir / filename} ",
f"-vf scale=iw/{downscale_factor}:ih/{downscale_factor} ",
f"-q:v 2 -vf scale=iw/{downscale_factor}:ih/{downscale_factor} ",
f"{downscale_dir / filename}",
]
ffmpeg_cmd = " ".join(ffmpeg_cmd)