-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
A TypeError #71
Comments
Hello, Thank you for bringing this issue to my attention, and for providing details about the error you encountered while using facetorch_notebook_demo.ipynb. I attempted to reproduce the issue on my end using the notebook and the default image, but I was not able to encounter the same error. This leads me to believe that the issue might be specific to the image or the data you're using as input. It's possible that the input processing part of the notebook might behave differently with different images, potentially leading to this error. To better understand and resolve this issue, could you please share the image or the type of input you were using when you encountered this error? If there are privacy or size concerns with sharing the image directly, a similar example or more details about the characteristics of the input might also help diagnose the problem. This information will be crucial for me to replicate the error and find a suitable fix. Again, thank you for your report, and I look forward to your response so we can resolve this issue together. Best regards, |
Thank for your reply. The input I use is same as the demo one. Below are all the error message File c:\Users\09350.conda\envs\myenv\lib\contextlib.py:75, in ContextDecorator.call..inner(*args, **kwds) File c:\Users\09350.conda\envs\myenv\lib\site-packages\facetorch\analyzer\core.py:170, in FaceAnalyzer.run(self, image_source, path_image, batch_size, fix_img_size, return_img_data, include_tensors, path_output, tensor) TypeError: argmax(): argument 'input' (position 1) must be Tensor, not tuple` |
Thanks for the detailed information on the error you're experiencing. The error message indicates that there's a problem with the expected data format in your code, likely caused by an issue with model loading or data processing. Your manual download of the model and modification of To resolve this, you should:
After ensuring that you have the correct model and path, try running the code again to see if the error persists. If it does, let me know, and we can dig deeper to resolve the issue. Thank you for your patience, and let me know if this helps. Best regards, |
I have a TypeError while using the facetorch_notebook_demo.ipynb.
After this line
{"asctime": "2024-03-14 11:20:40,111", "levelname": "INFO", "message": "Running FacePredictor: fer"}
The following error occured
TypeError: argmax(): argument 'input' (position 1) must be Tensor, not tuple
The text was updated successfully, but these errors were encountered: