Skip to content

Commit

Permalink
add specific sfd path
Browse files Browse the repository at this point in the history
  • Loading branch information
Kedreamix committed Jun 11, 2024
1 parent 028fb80 commit 98bf0e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


class SFDDetector(FaceDetector):
def __init__(self, device, path_to_detector=os.path.join(os.path.dirname(os.path.abspath(__file__)), 's3fd.pth'), verbose=False):
def __init__(self, device, path_to_detector='checkpoints/hub/checkpoints/s3fd-619a316812.pth', verbose=False):
super(SFDDetector, self).__init__(device, verbose)

# Initialise the face detector
Expand Down
2 changes: 1 addition & 1 deletion face_detection/detection/sfd/sfd_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


class SFDDetector(FaceDetector):
def __init__(self, device, path_to_detector=os.path.join(os.path.dirname(os.path.abspath(__file__)), 's3fd.pth'), verbose=False):
def __init__(self, device, path_to_detector=r'checkpoints/hub/checkpoints/s3fd-619a316812.pth', verbose=False):
super(SFDDetector, self).__init__(device, verbose)

# Initialise the face detector
Expand Down

0 comments on commit 98bf0e4

Please sign in to comment.