1adrianb / face-alignment

:fire: 2D and 3D Face alignment library build using pytorch
https://www.adrianbulat.com
BSD 3-Clause "New" or "Revised" License
6.88k stars 1.33k forks source link

If I downloaded pre-trained model manually, how can I use it with `face_alignment.FaceAlignment` ? #320

Closed anewusername77 closed 1 year ago

anewusername77 commented 1 year ago

Hey there, The code I use is:

landmarksDetector = face_alignment.FaceAlignment(face_alignment.LandmarksType._3D, flip_input=False, device=self.device)

and the output in terminal is:

Downloading: "https://www.adrianbulat.com/downloads/python-fan/3DFAN4-7835d9f11d.pth.tar" to ...

Because of the downloading problem, I manually downloaded the pre-trained model , now I just want to use it with api. Big thanks if you can help me!

sairampillai commented 1 year ago

@anewusername77 Did you find a workaround?

sxs4337 commented 1 month ago

Same question. Want to remove the dependency of the API to download model.