Closed henryruhs closed 1 day ago
Based on my testing in both Windows and Linux, insightface has no issues. Do you use a Python virtual environment?
As for FaceAnalysis, CUDA has been supported in the code for both training and inference.
I couldn't find a related commit, so I opened this issue because it's missing in some areas.
It has always been supported. By default, FaceAnalysis will use CUDA.
Correct, the providers args can be removed FaceAnalysis - there is a lack of proper argument typing.
Still, there is one InferenceSession missing providers in INSwapper.py:
self.session = onnxruntime.InferenceSession(self.model_file, providers=['CUDAExecutionProvider'])
I close that issue as we aligned via Discord.
The insightface dependency has to go in my opinion as this causes lot of issues like:
For the moment, I suggest to use cuda to speed up training:
and for inswapper just: