xiph / awcy

http://arewecompressedyet.com/
MIT License
70 stars 46 forks source link

bd_rate: Compute BD-Rate between Sequential and Parallel runs #355

Closed vibhoothi closed 1 year ago

vibhoothi commented 1 year ago

This was found to be missing in the CTC file-path handling, this enables bdr computation for non-parallel GOP and parallel GOP runs.

Eg, av2-ra and av2-ra-st is problematic in the current master,

Traceback (most recent call last):
  File "./bd_rate_report.py", line 420, in <module>
    args.fullrange,
  File "./bd_rate_report.py", line 275, in bdrate
    b = genfromtxt(file2)
  File "/home/awcybeta/.local/lib/python3.6/site-packages/numpy/lib/npyio.py", line 1749, in genfromtxt
    fid = np.lib._datasource.open(fname, 'rt', encoding=encoding)
  File "/home/awcybeta/.local/lib/python3.6/site-packages/numpy/lib/_datasource.py", line 195, in open
    return ds.open(path, mode, encoding=encoding, newline=newline)
  File "/home/awcybeta/.local/lib/python3.6/site-packages/numpy/lib/_datasource.py", line 535, in open
    raise IOError("%s not found." % path)
OSError: /home/awcybeta/awcy/runs/AVM-Research-v4.0.0-Regular-All-CTCv4/av2-ra/aomctc-a2-2k/Aerial3200_1920x1080_5994_10bit_420.y4m-daala.out not found.

Edit: This is only applicable to AOM-CTC runs