sajjjadayobi/FaceLib

Issue with EasyDict

padmalcom opened this issue · 2 comments

Hi, your requirements say EasyDict > 1.7.0 is required. I have 1.10.0 installed and get the following error:

File "C:\Users\admin\anaconda3\envs\myproj\lib\site-packages\facelib\InsightFace\models\utils.py", line 11, in faces_preprocessing
faces = faces.permute(0, 3, 1, 2).float()
AttributeError: 'EasyDict' object has no attribute 'permute'

Do you have any idea if the function has been renamed?

faces must be PyTorch tensor
I think you have passed the wrong object as faces into this function

Yes thank you, I figured it out. I passed an empty list of faces, so I just had to check the length before.