Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

install_caffe_and_openpose.sh 1.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  1. #!/bin/bash
  2. echo "------------------------- Installing Caffe and OpenPose -------------------------"
  3. echo "NOTE: This script assumes that CUDA and cuDNN are already installed on your machine. Otherwise, it might fail."
  4. function exitIfError {
  5. if [[ $? -ne 0 ]] ; then
  6. echo ""
  7. echo "------------------------- -------------------------"
  8. echo "Errors detected. Exiting script. The software might have not been successfully installed."
  9. echo "------------------------- -------------------------"
  10. exit 1
  11. fi
  12. }
  13. function executeShInItsFolder {
  14. # $1 = sh file name
  15. # $2 = folder where the sh file is
  16. # $3 = folder to go back
  17. cd $2
  18. exitIfError
  19. sudo chmod +x $1
  20. exitIfError
  21. ./$1
  22. exitIfError
  23. cd $3
  24. exitIfError
  25. }
  26. executeShInItsFolder "install_caffe.sh" "./3rdparty/caffe" "../.."
  27. exitIfError
  28. executeShInItsFolder "install_openpose.sh" "./" "./"
  29. exitIfError
  30. echo "------------------------- Caffe and OpenPose Installed -------------------------"
  31. echo ""
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...