Skip to content

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

Open
@KyleSiefring

Description

@KyleSiefring

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,) ```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions