mirror of https://github.com/AlexeyAB/darknet.git
download weights using a local script, do not rely on vcpkg
This commit is contained in:
parent
013d5e676d
commit
0ee4ff36b2
|
@ -0,0 +1,37 @@
|
||||||
|
#!/usr/bin/env pwsh
|
||||||
|
|
||||||
|
$url = "https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v4_pre/yolov4-tiny.weights"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "yolov4-tiny.weights"
|
||||||
|
|
||||||
|
$url = "https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v3_optimal/yolov4.weights"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "yolov4.weights"
|
||||||
|
|
||||||
|
$url = "https://drive.google.com/u/0/uc?id=18yYZWyKbo4XSDVyztmsEcF9B_6bxrhUY&export=download"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "yolov3-tiny-prn.weights"
|
||||||
|
|
||||||
|
$url = "https://pjreddie.com/media/files/yolov3.weights"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "yolov3.weights"
|
||||||
|
|
||||||
|
$url = "https://pjreddie.com/media/files/yolov3-openimages.weights"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "yolov3-openimages.weights"
|
||||||
|
|
||||||
|
$url = "https://pjreddie.com/media/files/yolov2.weights"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "yolov2.weights"
|
||||||
|
|
||||||
|
$url = "https://pjreddie.com/media/files/yolov3-tiny.weights"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "yolov3-tiny.weights"
|
||||||
|
|
||||||
|
$url = "https://pjreddie.com/media/files/yolov2-tiny.weights"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "yolov2-tiny.weights"
|
||||||
|
|
||||||
|
$url = "https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v4_pre/yolov4-tiny.conv.29"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "yolov4-tiny.conv.29"
|
||||||
|
|
||||||
|
$url = "https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v3_optimal/yolov4.conv.137"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "yolov4.conv.137"
|
||||||
|
|
||||||
|
$url = "https://pjreddie.com/media/files/darknet53.conv.74"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "darknet53.conv.74"
|
||||||
|
|
||||||
|
$url = "https://pjreddie.com/media/files/darknet19_448.conv.23"
|
||||||
|
Invoke-WebRequest -Uri $url -OutFile "darknet19_448.conv.23"
|
|
@ -22,7 +22,7 @@ else {
|
||||||
$features = "full"
|
$features = "full"
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$features = "opencv-base,weights,weights-train"
|
$features = "opencv-base"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,14 +55,14 @@ if [ "$install_cuda" = true ] ; then
|
||||||
features="full"
|
features="full"
|
||||||
else
|
else
|
||||||
echo "Unable to auto-install CUDA on this Linux OS"
|
echo "Unable to auto-install CUDA on this Linux OS"
|
||||||
features="opencv-base,weights,weights-train"
|
features="opencv-base"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [[ -v CUDA_PATH ]]; then
|
if [[ -v CUDA_PATH ]]; then
|
||||||
features="full"
|
features="full"
|
||||||
else
|
else
|
||||||
features="opencv-base,weights,weights-train"
|
features="opencv-base"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue