Fictionarry / ER-NeRF

[ICCV'23] Efficient Region-Aware Neural Radiance Fields for High-Fidelity Talking Portrait Synthesis
https://fictionarry.github.io/ER-NeRF/
MIT License
894 stars 124 forks source link

KeyError: ' AU45_r' #115

Open liuwing opened 6 months ago

liuwing commented 6 months ago

我使用OpenFace FeatureExtraction得到xxx.xcv文件后,rename为au.xcv,训练时会报错KeyError: ' AU45_r' ![Uploading 截屏2023-12-23 17.56.04.png…]()

liuwing commented 6 months ago
截屏2023-12-23 17 56 04
ChiaLinz commented 6 months ago

It seems like the issue might be related to the file format or naming. Considering the code from provider.py, where it reads:

import pandas as pd
au_blink_info = pd.read_csv(os.path.join(self.root_path, 'au.csv'))
au_blink = au_blink_info[' AU45_r'].values

This part of the code is expecting a CSV file named 'au.csv'. Therefore, try renaming your file to 'au.csv' instead of 'au.xcv' and see if that resolves the error.

hnsywangxin commented 5 months ago

au_blink = au_blink_info[' AU45_r'].values to au_blink = au_blink_info['AU45_r'].values space cause this problem