fix: typo in error message for missing pytorch

This commit is contained in:
CatBraaain 2025-04-10 21:21:19 +09:00
parent e06325aefb
commit 6f97826a47

View File

@ -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")