File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
ObjectDetectionYOLOv5-6.2 Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 29
29
#
30
30
# - Using signing key
31
31
# wget https://developer.download.nvidia.com/compute/cuda/repos/${OS_name}/${arch}/cuda-${OS_name}.pin
32
- # sudo mv cuda-${OS_name}.pin /etc/apt/preferences.d/cuda-repository-pin-600
32
+ # sudo mv -f cuda-${OS_name}.pin /etc/apt/preferences.d/cuda-repository-pin-600
33
33
# sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/${OS_name}/${arch}/${key}.pub
34
34
# sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/${OS_name}/${arch}/ /"
35
35
#
@@ -208,12 +208,12 @@ spin $!
208
208
writeLine " Done" $color_success
209
209
210
210
# wget https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/cuda-archive-keyring.gpg
211
- # sudo mv cuda-archive-keyring.gpg /usr/share/keyrings/cuda-archive-keyring.gpg
211
+ # sudo mv -f cuda-archive-keyring.gpg /usr/share/keyrings/cuda-archive-keyring.gpg
212
212
#
213
213
# echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/ /" | sudo tee /etc/apt/sources.list.d/cuda-<distro>-<arch>.list
214
214
#
215
215
# wget https://developer.download.nvidia.com/compute/cuda/repos/<distro>/<arch>/cuda-<distro>.pin
216
- # sudo mv cuda-<distro>.pin /etc/apt/preferences.d/cuda-repository-pin-600
216
+ # sudo mv -f cuda-<distro>.pin /etc/apt/preferences.d/cuda-repository-pin-600
217
217
218
218
# install the cuDNN library
219
219
write " - Installing cuDNN libraries..." $color_mute
Original file line number Diff line number Diff line change @@ -1848,7 +1848,7 @@ function getFromServer () {
1848
1848
1849
1849
move_recursive () {
1850
1850
if [ ! -d " $1 " ] || [ ! -e " $2 " ]; then
1851
- mv " $1 " " $2 " || exit
1851
+ mv -f " $1 " " $2 " || exit
1852
1852
return
1853
1853
fi
1854
1854
for entry in " $1 /" * " $1 /." [! .]* " $1 /.." ?* ; do
Original file line number Diff line number Diff line change 136
136
if [ " ${useJq} " = false ]; then
137
137
dotnet build " ${sdkPath} /Utilities/ParseJSON" /property:GenerateFullPaths=true /consoleloggerparameters:NoSummary -c Release > /dev/null 2>&1
138
138
pushd " ${sdkPath} /Utilities/ParseJSON/bin/Release/net7.0/" > /dev/null
139
- mv ./* ../../../
139
+ mv -f ./* ../../../
140
140
popd > /dev/null
141
141
fi
142
142
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ if [ "$module_install_errors" = "" ]; then
47
47
fi
48
48
49
49
if [ -f " ${destination} " ] && [ ! -f " ${moduleDirPath} /models/${fileToGet} " ]; then
50
- mv " ${destination} " " ${moduleDirPath} /models/"
50
+ mv -f " ${destination} " " ${moduleDirPath} /models/"
51
51
fi
52
52
53
53
else
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ if [ "$module_install_errors" = "" ] && [ "$systemName" = "Jetson" ]; then
42
42
if [ ! -f " ${downloadDirPath} /ObjectDetectionYOLOv5-6.2/torch-1.10.0a0+git36449ea-cp36-cp36m-linux_aarch64.whl" ]; then
43
43
installPythonPackagesByName " gdown"
44
44
gdown https://drive.google.com/uc? id=1TqC6_2cwqiYacjoLhLgrZoap6-sVL2sd
45
- mv torch-1.10.0a0+git36449ea-cp36-cp36m-linux_aarch64.whl " ${downloadDirPath} /ObjectDetectionYOLOv5-6.2/"
45
+ mv -f torch-1.10.0a0+git36449ea-cp36-cp36m-linux_aarch64.whl " ${downloadDirPath} /ObjectDetectionYOLOv5-6.2/"
46
46
fi
47
47
48
48
# install PyTorch 1.10.0
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ if [ "$module_install_errors" = "" ] && [ "$systemName" = "Jetson" ]; then
115
115
wget $torch_location -O " ${downloadDirPath} /${os} /packages/${torch_wheel} "
116
116
else
117
117
gdown $torch_location
118
- mv $torch_wheel " ${downloadDirPath} /${os} /packages/"
118
+ mv -f $torch_wheel " ${downloadDirPath} /${os} /packages/"
119
119
fi
120
120
fi
121
121
@@ -140,7 +140,7 @@ if [ "$module_install_errors" = "" ] && [ "$systemName" = "Jetson" ]; then
140
140
mkdir -p " ${downloadDirPath} /${os} /packages"
141
141
fi
142
142
gdown $torchvision_location
143
- mv $torchvision_wheel " ${downloadDirPath} /${os} /packages/"
143
+ mv -f $torchvision_wheel " ${downloadDirPath} /${os} /packages/"
144
144
fi
145
145
146
146
cp " ${downloadDirPath} /${os} /packages/${torchvision_wheel} " .
You can’t perform that action at this time.
0 commit comments