Files
auto-boost-algorithm/compile_latest.py
MrPowley 5127723c13 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
2025-08-01 15:24:57 +03:00

18 lines
504 B
Python

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'
])