question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there any way to download the FAN and FAN-D before using them in a script?

See original GitHub issue

When I run

fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._3D, enable_cuda=False, flip_input=False)

, it downloads the models for the first time and takes quite a while. Is there any way I can skip this? Like manually downloading the required files and putting them in a specified folder?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
eneraicommented, Apr 25, 2019

Let me make a conclusion that how we can download the model files in advance and load them. After you use pip install face-alignment install the face-alignment package 1.0.0, the default face-alignment data directory is /root/.face_alignment/data if you are using the root in a docker. In general, you can use cd ~ && pwd to check the detailed user data directory, and the directory where you should put per-trained model files will be [user_data_dir]/.face_alignment/data, i.e., using

cd $(cd ~ && pwd)/.face_alignment/data

to directly access the directory. If the directory does not exist, you can make it by yourself.

The necessary model files are as follows:

https://www.adrianbulat.com/downloads/python-fan/2DFAN-4.pth.tar
https://www.adrianbulat.com/downloads/python-fan/3DFAN-4.pth.tar
https://www.adrianbulat.com/downloads/python-fan/depth.pth.tar
https://www.adrianbulat.com/downloads/python-fan/s3fd_convert.pth
5reactions
1adrianbcommented, Aug 28, 2018

Hi @IAmSuyogJadhav,

Yes, you can. Download links: https://www.adrianbulat.com/downloads/python-fan/2DFAN-4.pth.tar https://www.adrianbulat.com/downloads/python-fan/3DFAN-4.pth.tar https://www.adrianbulat.com/downloads/python-fan/depth.pth.tar

You can copy them in your home folder in .face_alignment folder (You can also check your existing installation just to be sure, its hidden by default).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hypeddit | Smart Links, Pre-Saves, Download Gates & Music ...
Automatically grow fans and followers with each pre-saves. Collect fan email addresses and let fans add your music to their favorite playlist with...
Read more >
Script for Argon one pi4 fan ??? - Raspberry Pi Forums
Hello i have a argon one case with fan built inside for pi4. I am using Manjaro KDE Os There is a downloable...
Read more >
Fan Scripts for Supermicro Boards Using PID Logic - TrueNAS
For detailed description and discussion of PID logic used to regulate hard drive temperature, some basics on fan control, and early script ......
Read more >
Fan speed control - ArchWiki
Note: Laptop users should be aware about how cooling system works in their hardware. Some laptops have single fan for both CPU and...
Read more >
All you need to know if you want to export Facebook Fans
Unless you've gathered qualified data about these fans, downloading them doesn't help. The data you'd get from exporting your fans is basically ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found