Skip to content

cannot convert float infinity to integer #1

Description

@alucryd

Hi there, I'm trying the max character progression boost preset with the bare minimum changes (character backend to NCNN_VK) to make it work, and am running into an error. Scene detection and metric passes are fine, but it fails early while calculating boost with the following error:

[0 Intel(R) Arc(tm) Pro B50 Graphics (BMG G21)]  queueC=1[1]  queueG=0[1]  queueT=2[1]
[0 Intel(R) Arc(tm) Pro B50 Graphics (BMG G21)]  bugsbn1=0  bugbilz=0  bugcopc=0  bugihfa=0
[0 Intel(R) Arc(tm) Pro B50 Graphics (BMG G21)]  fp16-p/s/u/a=1/1/1/1  int8-p/s/u/a=1/1/1/1
[0 Intel(R) Arc(tm) Pro B50 Graphics (BMG G21)]  subgroup=32(16~32)  ops=1/1/1/1/1/1/1/1/1/1
[0 Intel(R) Arc(tm) Pro B50 Graphics (BMG G21)]  fp16-8x8x16/16x8x8/16x8x16/16x16x16=0/0/0/0
Scene 016 Frame [ 1497: 1690] / Calculating boost / 342 scenes per second/home/public/Videos/Encodes/Progression-Boost.py:4227: RuntimeWarning: invalid value encountered in divide
  character_roi_diff = np.divide(character_map_filled_diff, character_map_filled_sum, out=np.zeros_like(character_map_filled_diff), where=character_map_filled_sum != 0)
Traceback (most recent call last):
  File "/home/public/Videos/Encodes/Progression-Boost.py", line 4288, in <module>
    np.savetxt(roi_map_f, line[1].reshape((1, -1)), fmt="%d")
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/numpy/lib/_npyio_impl.py", line 1631, in savetxt
    v = format % tuple(row) + newline
        ~~~~~~~^~~~~~~~~~~~
OverflowError: cannot convert float infinity to integer

Any idea? Happens on 2 machines, one with this Intel Arc Pro B50, and another one with an AMD 9070XT (which I have to use for at least part of the process because vship does not support Intel Arc yet).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions