Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bd_rate_report.py cannot compare runs with different number of quality levels #305

Open
KyleSiefring opened this issue Jan 8, 2022 · 1 comment

Comments

@KyleSiefring
Copy link
Contributor

From json returned by awcy

  mk = (y[1:] - y[:-1]) / hk
./bd_rate_report.py:105: RuntimeWarning: invalid value encountered in true_divide
  whmean = (w1/mk[:-1] + w2/mk[1:]) / (w1 + w2)
./bd_rate_report.py:64: RuntimeWarning: invalid value encountered in multiply
  d = ((2*h0 + h1)*m0 - h0*m1) / (h0 + h1)
./bd_rate_report.py:316: RuntimeWarning: invalid value encountered in true_divide
  decode_times = (decode_times_b - decode_times_a) / decode_times_a
Traceback (most recent call last):
  File "./bd_rate_report.py", line 356, in <module>
    metric_data[video] = bdrate(args.run[0]+'/'+task+'/'+video+args.suffix,args.run[1]+'/'+task+'/'+video+args.suffix,None,args.fullrange)
  File "./bd_rate_report.py", line 308, in bdrate
    encode_times = (encode_times_b - encode_times_a) / encode_times_a
ValueError: operands could not be broadcast together with shapes (4,) (5,) ```
@KyleSiefring
Copy link
Contributor Author

KyleSiefring commented Feb 1, 2022

https://beta.arewecompressedyet.com/?job=master-s3-9417a4df1069cc06%402021-10-28T21%3A18%3A58.839Z&job=lru_skip3-s1%402022-01-08T15%3A02%3A11.691Z

lru_skip3-s1 is missing Netflix_Boat_1920x1080_60fps_8bit_420_60f.y4m for whatever reason and this seems to be the secondary cause of the error.

https://beta.arewecompressedyet.com/?job=kff1-arnr-str1-fix%402022-01-31T23%3A06%3A02.691Z&job=svt-av1_0.8.8_rc1_6qp-p8%402021-12-02T12%3A21%3A09.619Z

Also doesn't work, the primary reason seems to be that awcy can't compare runs with differing numbers of quality levels.

(The division seems to be just a warning and probably doesn't matter)

@KyleSiefring KyleSiefring changed the title bd_rate_report.py divide by zero bd_rate_report.py cannot compare runs with different number of quality levels Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant