yerfor / GeneFacePlusPlus

GeneFace++: Generalized and Stable Real-Time 3D Talking Face Generation; Official Code
MIT License
1.57k stars 225 forks source link

<class 'ValueError'> Found array with 0 sample(s) (shape=(0, 2)) while a minimum of 1 is required by NearestNeighbors. #207

Open raymondren1982 opened 5 months ago

raymondren1982 commented 5 months ago

Hi, I run follow command in powershell, there's error as title, anyone can help?

python data_gen/utils/process_video/extract_segment_imgs.py --ds_name=nerf --vid_dir=data/raw/videos/May.mp4

raymondren1982 commented 5 months ago

没有人看一下吗,我用的是windows powershell,有没有大佬帮忙看看

raymondren1982 commented 5 months ago

knn 中这里出错, bg_xys = np.stack(np.nonzero(~bc_pixs)).transpose() fg_xys = np.stack(np.nonzero(bc_pixs)).transpose() nbrs = NearestNeighbors(n_neighbors=1, algorithm='kd_tree').fit(fg_xys)

raymondren1982 commented 5 months ago

knn 中这里出错, bg_xys = np.stack(np.nonzero(~bc_pixs)).transpose() fg_xys = np.stack(np.nonzero(bc_pixs)).transpose() nbrs = NearestNeighbors(n_neighbors=1, algorithm='kd_tree').fit(fg_xys)

raymondren1982 commented 5 months ago

这个问题已经解决了

zhoubowen-sky commented 4 months ago

这个问题已经解决了

请教下,怎么解决的呀?