Open ljc222 opened 1 year ago
hi, xinntal,Thank you for such an excellent project,i have a request,hope you can solve。
https://github.com/xinntao/facexlib/blob/master/facexlib/detection/retinaface.py in line 14 device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') Can it support mac m1 architecture,use this code: device = torch.device('cuda' if torch.cuda.is_available() else 'mps' if torch.has_mps else 'cpu')
hi, xinntal,Thank you for such an excellent project,i have a request,hope you can solve。
https://github.com/xinntao/facexlib/blob/master/facexlib/detection/retinaface.py in line 14 device = torch.device('cuda' if torch.cuda.is_available() else 'cpu') Can it support mac m1 architecture,use this code: device = torch.device('cuda' if torch.cuda.is_available() else 'mps' if torch.has_mps else 'cpu')