mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2025-12-30 04:52:29 +00:00
- name of revision - better scripts for model download (not only in Dropbox also OneDrive)
64 lines
2.1 KiB
PowerShell
64 lines
2.1 KiB
PowerShell
# Download the models from the cloud (stored in Dropbox, OneDrive, and Google Drive
|
|
|
|
# Start with 0.25 scale models
|
|
$destination = "lib/local/LandmarkDetector/model/patch_experts/cen_patches_0.25_of.dat"
|
|
|
|
if(!([System.IO.File]::Exists($destination)))
|
|
{
|
|
$source = "https://www.dropbox.com/s/7na5qsjzz8yfoer/cen_patches_0.25_of.dat?dl=1"
|
|
Invoke-WebRequest $source -OutFile $destination
|
|
}
|
|
|
|
if(!([System.IO.File]::Exists($destination)))
|
|
{
|
|
$source = "https://onedrive.live.com/download?cid=2E2ADA578BFF6E6E&resid=2E2ADA578BFF6E6E%2153072&authkey=AKqoZtcN0PSIZH4"
|
|
Invoke-WebRequest $source -OutFile $destination
|
|
}
|
|
|
|
# 0.35 scale models
|
|
$destination = "lib/local/LandmarkDetector/model/patch_experts/cen_patches_0.35_of.dat"
|
|
|
|
if(!([System.IO.File]::Exists($destination)))
|
|
{
|
|
$source = "https://www.dropbox.com/s/k7bj804cyiu474t/cen_patches_0.35_of.dat?dl=1"
|
|
Invoke-WebRequest $source -OutFile $destination
|
|
}
|
|
|
|
if(!([System.IO.File]::Exists($destination)))
|
|
{
|
|
$source = "https://onedrive.live.com/download?cid=2E2ADA578BFF6E6E&resid=2E2ADA578BFF6E6E%2153079&authkey=ANpDR1n3ckL_0gs"
|
|
Invoke-WebRequest $source -OutFile $destination
|
|
}
|
|
|
|
|
|
# 0.5 scale models
|
|
$destination = "lib/local/LandmarkDetector/model/patch_experts/cen_patches_0.50_of.dat"
|
|
|
|
if(!([System.IO.File]::Exists($destination)))
|
|
{
|
|
$source = "https://www.dropbox.com/s/ixt4vkbmxgab1iu/cen_patches_0.50_of.dat?dl=1"
|
|
Invoke-WebRequest $source -OutFile $destination
|
|
}
|
|
|
|
if(!([System.IO.File]::Exists($destination)))
|
|
{
|
|
$source = "https://onedrive.live.com/download?cid=2E2ADA578BFF6E6E&resid=2E2ADA578BFF6E6E%2153074&authkey=AGi-e30AfRc_zvs"
|
|
Invoke-WebRequest $source -OutFile $destination
|
|
}
|
|
|
|
# 1.0 scale models
|
|
$destination = "lib/local/LandmarkDetector/model/patch_experts/cen_patches_1.00_of.dat"
|
|
|
|
if(!([System.IO.File]::Exists($destination)))
|
|
{
|
|
$source = "https://www.dropbox.com/s/2t5t1sdpshzfhpj/cen_patches_1.00_of.dat?dl=1"
|
|
Invoke-WebRequest $source -OutFile $destination
|
|
}
|
|
|
|
if(!([System.IO.File]::Exists($destination)))
|
|
{
|
|
$source = "https://onedrive.live.com/download?cid=2E2ADA578BFF6E6E&resid=2E2ADA578BFF6E6E%2153070&authkey=AD6KjtYipphwBPc"
|
|
Invoke-WebRequest $source -OutFile $destination
|
|
}
|
|
|