mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 11:35:21 +00:00
Merge pull request #1463 from CatBraaain/fix/typo-in-pytorch-error-message
fix: typo in error message for missing pytorch
This commit is contained in:
commit
28f9332493
@ -29,7 +29,7 @@ class Fasnet:
|
|||||||
import torch
|
import torch
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"You must install torch with `pip install pytorch` command to use face anti spoofing module"
|
"You must install torch with `pip install torch` command to use face anti spoofing module"
|
||||||
) from err
|
) from err
|
||||||
|
|
||||||
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user