TMElyralab / MuseTalk

MuseTalk: Real-Time High Quality Lip Synchorization with Latent Space Inpainting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cv2.resize报错

liuzysy opened this issue · comments

最近在为train处理数据集的时候使用了inference的部分代码如下:

coord_list, frame_list = get_landmark_and_bbox(input_img_list, bbox_shift)
for ind, (bbox, frame) in enumerate(zip(coord_list, frame_list)):
if bbox == coord_placeholder:
continue
x1, y1, x2, y2 = bbox
crop_frame = frame[y1:y2, x1:x2]
img = cv2.resize(crop_frame,(256,256),interpolation = cv2.INTER_LANCZOS4)

在最后一行resize的时候大部分hdtf数据集的视频都能正常运行,但是仍然有一些会报错
screenshot-20240527-152954
想请问一下作者是否也有过这方便的问题和如何解决的,感谢!!!

可能是没读到图片?有检验过吗?

crop_frame (0, 400, 3) 导致的,可是我没有很懂为什么会导致他的size为空。比如说我用的BarackObama_1的视频,用的您inference里面的ffmpeg做的帧提取,理论上说不会造成这样的问题呀