Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some error such as Nonetype, numpy.ndarray,pil.image #11

Open
XaingHui opened this issue Jan 13, 2025 · 4 comments
Open

Some error such as Nonetype, numpy.ndarray,pil.image #11

XaingHui opened this issue Jan 13, 2025 · 4 comments

Comments

@XaingHui
Copy link

when l used other images or videos,l catched some error saving results.
the most problem is " 'NoneType' object is not iterable "
secondly is " 'numpy.ndarray' object has no attribute 'append' "
finally is "module 'PIL.Image' has no attribute 'ANTIALIAS' "
l just use python api and download fer_resnet.pt,combine_resnet.pt
my python version is 3.8.0.
my question is Why is this problem occurring and How to solve this problem

@jerzytrcka
Copy link

I also got TypeError: 'NoneType' object is not iterable, whenever there is no face in the given image

@XaingHui
Copy link
Author

I also got TypeError: 'NoneType' object is not iterable, whenever there is no face in the given image

thanks for your reply,but l try to make a simple video and redo,that error is missing

@ac-alpha
Copy link
Collaborator

Hi @XaingHui can you please provide example videos and the exact script/command that you are trying so that we can reproduce the error?

@XaingHui
Copy link
Author

Hi @XaingHui can you please provide example videos and the exact script/command that you are trying so that we can reproduce the error?

262.mp4
sample_00000262.mp4

The file called 262 is ok,but the file called simple_0000262 is error.
My exact script is following down.
detected_facial_attributes = libreface.get_facial_attributes(file_path = "./data/video-labeled/sample_0000262.mp4",
output_save_path ="./data/out_feature/sample_0000262.csv",
temp_dir = "./temp",
device = "cpu")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants