Closed sobassy closed 11 months ago
Hi, have you solved this problem? I met the same situation no matter whether True
or False
for return_img_data
I was able to reproduce this problem in the Colab notebook. It happens even if I disable all the other predictors, so only the AU model is problematic. However, the AU predictor did not get stuck when I ran it in the provided Docker container on the Nvidia RTX 3090. I thought that new versions of packages might be causing the problem, but when I updated them, it was still running just fine inside Docker.
The logging level can be adjusted in the logger section of the downloaded config file.
The bug was fixed by specifying the versions of the torch and torchvision packages for me. You should try to change the pip install command in the Install dependencies section as follows:
!python -m pip install "facetorch>=0.2.1" "torch==1.11.0+cu113" "torchvision==0.12.0+cu113" --extra-index-url https://download.pytorch.org/whl/cu113
@tomas-gajarsky
Thanks for useful information and report! It worked well on CUDA v11.3 !!
I use Windows 11, but cuda11.3 is for Windows 10. but worked on Win11 :)
So, google Colab environment use cuda v11.3 or under? Maybe we should deploy local env yml (or requirements.txt) for user running locally.
Thanks very much for advice!
So, google Colab environment use cuda v11.3 or under? Maybe we should deploy local env yml (or requirements.txt) for user running locally.
Google Colab uses CUDA 12.0 as can be seen after executing the first nvidia-smi
cell, so the problem was not only the CUDA version but perhaps the torch version as well.
The environment file and the lock file for conda are provided for reproducibility and show which packages were tested for the specific facetorch version. I recommend using the provided Docker images to ensure that facetorch runs, however, I know it is not possible for each use case.
Thank for exciting repository!
I tried to run example .ipynb on locally. First, warmup code run correctly.
But, change
return_img_data=False
toreturn_img_data=True
, hung up on AU inference.Is there a solution? or How to get verbose information on inference?
Verbose information
Thank, you.