Sxjdwang / TalkLip

373 stars 34 forks source link

IndexError: index 0 is out of bounds for dimension 0 with size 0 #6

Open johnny7861532 opened 1 year ago

johnny7861532 commented 1 year ago
/TalkLip/utils/data_avhubert.py", line 172, in emb_roi2im
    width = imgs[0][0].shape[1]
IndexError: index 0 is out of bounds for dimension 0 with size 0

it shows up when I trying to test my own data. Can anyone help with that? Thanks!

Sxjdwang commented 1 year ago

Which python file do you run when you meet this problem?

johnny7861532 commented 1 year ago

Thank you for replying, this showed up when I try to run inf_demo.py on colab.

Sxjdwang commented 1 year ago

It's confusing. The emb_roi2im function is called in the 237th line of inf_demo, but in the 236th line of infdemo, I try to get width and height by " , height, width, _ = imgs[0].shape". If "index 0 is out of bounds for dimension 0 with size 0" occurs in the embroi2im function, " , height, width, _ = imgs[0].shape" should be wrong as well. You may print what I get in the 236th line and debug it.

johnny7861532 commented 1 year ago

Just solve it, I think it's the env problem of colab. Thank you, as I using the demo for Chinese audio seem the result is not meet the expectations.

jinyixin621 commented 11 months ago

Just solve it, I think it's the env problem of colab. Thank you, as I using the demo for Chinese audio seem the result is not meet the expectations.

how did you solve it? Encounter the same problem