Skip to content

Commit 7901415

Browse files
committed
update device in retina , update req file
1 parent 12f485f commit 7901415

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

face_detection/detections_models/retinaface/face_detection.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
class Retina_Face_Detection:
1515
def __init__(self):
16-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
17-
self.model = get_model("resnet50_2020-07-20", max_size=2048 , device=device)
16+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
17+
self.model = get_model("resnet50_2020-07-20", max_size=640 , device=device)
1818
self.model.eval()
1919
self.warmup()
2020

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ opencv_contrib_python==4.8.1.78
44
opencv_python==4.7.0.72
55
opencv_python_headless==4.8.0.74
66
Pillow==9.5.0
7-
torch==1.13.1
7+
torch
88
ultralytics==8.0.222
9-
retinaface-pytorch==0.0.8
9+
retinaface-pytorch

0 commit comments

Comments
 (0)