Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fomm model download #160

Merged
merged 6 commits into from
Jun 14, 2024
Merged

Fix fomm model download #160

merged 6 commits into from
Jun 14, 2024

Conversation

Ghassen-Chaabouni
Copy link
Contributor

@Ghassen-Chaabouni Ghassen-Chaabouni commented May 29, 2024

Description

A fix for this error in fomm

Traceback (most recent call last):
  File "dot\__main__.py", line 69, in run
  File "dot\dot.py", line 131, in generate
  File "dot\commons\model_option.py", line 184, in generate_from_camera
  File "dot\fomm\option.py", line 93, in create_model
  File "dot\fomm\predictor_local.py", line 71, in __init__
  File "face_alignment\api.py", line 75, in __init__
    self.face_detector = face_detector_module.FaceDetector(device=device, verbose=verbose)
  File "I:\Downloads\dot\face_alignment\detection\sfd\sfd_detector.py", line 24, in __init__
    model_weights = load_url(models_urls['s3fd'])
  File "torch\hub.py", line 741, in load_state_dict_from_url
    sys.stderr.write('Downloading: "{}" to {}\n'.format(url, cached_file))
OSError: [WinError 6] The handle is invalid

Fixes #142

Changelog:

Fixed:

  • Model download for the fomm face alignment

Updated:

  • onnxruntime version to onnxruntime-gpu v1.18.0
  • Remove outdated vcam instruction from README
  • Update executable download url

@Ghassen-Chaabouni Ghassen-Chaabouni marked this pull request as ready for review June 3, 2024 09:47
@Ghassen-Chaabouni Ghassen-Chaabouni merged commit 64cb9db into main Jun 14, 2024
2 checks passed
@Ghassen-Chaabouni Ghassen-Chaabouni deleted the face-alignment-bug-fix branch June 14, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants