Update script.ps1
This commit is contained in:
Родитель
88acd74a0b
Коммит
c53a4a81e0
|
@ -1,7 +1,9 @@
|
|||
$ProgressPreference = 'SilentlyContinue'
|
||||
|
||||
$emotionferplusfile = "./Assets/model_emotion.onnx"
|
||||
Write-Host "Outside if"
|
||||
if (-not(Test-Path -Path $emotionferplusfile -PathType Leaf)) {
|
||||
Write-Host "Inside if"
|
||||
try {
|
||||
Invoke-WebRequest -URI "https://github.com/onnx/models/raw/master/vision/body_analysis/emotion_ferplus/model/emotion-ferplus-8.onnx" -OutFile $emotionferplusfile
|
||||
Write-Host "The file [$emotionferplusfile] has been created."
|
||||
|
@ -12,4 +14,4 @@ if (-not(Test-Path -Path $emotionferplusfile -PathType Leaf)) {
|
|||
}
|
||||
else {
|
||||
Write-Host "The file [$emotionferplusfile] exists."
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче