Important auto-boost 2.5 refactor (#16)

* Fixed scd/ranges detection

added : --scenes the fast_av1an_command to generate scenes.json
moved get_ranges() to after fast_pass() occurrences

* Refactor calculate_zones()

- Replaced "--metrics" and "--zones" arguments with "--method"
- Reorganized argument parsing
- Renamed "zones" variable to less ambiguous "method"
- Changed tqdm unit from "iterations" to "frames"
- Updated get_xpsnr() to return "skip" like get_ssimu2()
  (Note: not used by XPSNR, so skip is set to 1)

* Changed output paths
ssimu2.log, xpsnr.log & fast_pass output in tmp_dir
added compile_latest.py. Uses pyinstaller

* Changed temporary files output paths

* Added a tqdm progressbar for XPSNR calculation
Added smoothing for SSIMU2 tqdm progressbar

* Fixed a wrong output path for ssimu2.log and xpsnr.log

* Fixed xpsnr.log file path error

* Fixed the xpsnr.log file path fix
This commit is contained in:
MrPowley
2025-08-01 14:24:57 +02:00
committed by GitHub
parent 5a26cdd75a
commit 5127723c13
2 changed files with 162 additions and 160 deletions

18
compile_latest.py Normal file
View File

@@ -0,0 +1,18 @@
import PyInstaller.__main__
from os import listdir
from os.path import dirname, realpath
pwd: str = dirname(realpath(__file__))
files: list[str] = listdir(pwd)
latest: tuple[str, float] = ("", 0.0)
for file in files:
if file.endswith(".py") and file[-4].isdigit():
if float(file[-6:-3]) > latest[1]:
latest = (file, float(file[-6:-3]))
PyInstaller.__main__.run([
latest[0],
'--onefile',
'--hidden-import', 'concurrent',
'--hidden-import', 'concurrent.futures'
])