diff --git a/example.jl b/example.jl index 6acc31ea9..d3b777081 100755 --- a/example.jl +++ b/example.jl @@ -1,6 +1,6 @@ #!/usr/bin/env bash #= - exec julia --project="~/FaceDetection.jl/" "${BASH_SOURCE[0]}" "$@" -e "include(popfirst!(ARGS))" \ + exec julia --project="$(realpath $(dirname $0))/" "${BASH_SOURCE[0]}" "$@" -e "include(popfirst!(ARGS))" \ "${BASH_SOURCE[0]}" "$@" =# @@ -20,8 +20,8 @@ using Images: Gray, clamp01nan, save, imresize, load function main(smartChooseFeats::Bool=false, alt::Bool=false, imageReconstruction::Bool=false, featValidaton::Bool=true) mainPath = dirname(@__FILE__) - mainImagePath = joinpath(mainpath, "data", "main") - altImagePath = joinpath(mainpath, "data", "alt") + mainImagePath = joinpath(mainPath, "data", "main") + altImagePath = joinpath(mainPath, "data", "alt") if alt posTrainingPath = joinpath(altImagePath, "pos") diff --git a/roc.jl b/roc.jl old mode 100644 new mode 100755 index 3217cba03..35055852a --- a/roc.jl +++ b/roc.jl @@ -1,5 +1,5 @@ #!/usr/bin/env bash #= - exec julia --project="~/FaceDetection.jl/" "${BASH_SOURCE[0]}" "$@" -e "include(popfirst!(ARGS))" \ + exec julia --project="$(realpath $(dirname $0))/" "${BASH_SOURCE[0]}" "$@" -e "include(popfirst!(ARGS))" \ "${BASH_SOURCE[0]}" "$@" - =# \ No newline at end of file + =# diff --git a/scores.jl b/scores.jl new file mode 100755 index 000000000..35055852a --- /dev/null +++ b/scores.jl @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + #= + exec julia --project="$(realpath $(dirname $0))/" "${BASH_SOURCE[0]}" "$@" -e "include(popfirst!(ARGS))" \ + "${BASH_SOURCE[0]}" "$@" + =# diff --git a/src/AdaBoost.jl b/src/AdaBoost.jl index 3fd496c9f..22cdfa7c8 100755 --- a/src/AdaBoost.jl +++ b/src/AdaBoost.jl @@ -1,6 +1,6 @@ #!/usr/bin/env bash #= - exec julia --project="~/FaceDetection.jl/" "${BASH_SOURCE[0]}" "$@" -e 'include(popfirst!(ARGS))' \ + exec julia --project="$(realpath $(dirname $0))/../" "${BASH_SOURCE[0]}" "$@" -e 'include(popfirst!(ARGS))' \ "${BASH_SOURCE[0]}" "$@" =# diff --git a/src/FaceDetection.jl b/src/FaceDetection.jl index a1f238486..039a731cb 100755 --- a/src/FaceDetection.jl +++ b/src/FaceDetection.jl @@ -1,6 +1,6 @@ #!/usr/bin/env bash #= - exec julia --project="~/FaceDetection.jl/" "${BASH_SOURCE[0]}" "$@" -e 'include(popfirst!(ARGS))' \ + exec julia --project="$(realpath $(dirname $0))/../" "${BASH_SOURCE[0]}" "$@" -e 'include(popfirst!(ARGS))' \ "${BASH_SOURCE[0]}" "$@" =# diff --git a/src/HaarLikeFeature.jl b/src/HaarLikeFeature.jl index 2ba8172d3..6dfcb7d6f 100755 --- a/src/HaarLikeFeature.jl +++ b/src/HaarLikeFeature.jl @@ -1,6 +1,6 @@ #!/usr/bin/env bash #= - exec julia --project="~/FaceDetection.jl/" "${BASH_SOURCE[0]}" "$@" -e 'include(popfirst!(ARGS))' \ + exec julia --project="$(realpath $(dirname $0))/../" "${BASH_SOURCE[0]}" "$@" -e 'include(popfirst!(ARGS))' \ "${BASH_SOURCE[0]}" "$@" =# diff --git a/src/IntegralImage.jl b/src/IntegralImage.jl index 4c1194eef..770f42d6d 100755 --- a/src/IntegralImage.jl +++ b/src/IntegralImage.jl @@ -1,6 +1,6 @@ #!/usr/bin/env bash #= - exec julia --project="~/FaceDetection.jl/" "${BASH_SOURCE[0]}" "$@" -e 'include(popfirst!(ARGS))' \ + exec julia --project="$(realpath $(dirname $0))/../" "${BASH_SOURCE[0]}" "$@" -e 'include(popfirst!(ARGS))' \ "${BASH_SOURCE[0]}" "$@" =# diff --git a/src/Utils.jl b/src/Utils.jl index ff0aab2ee..a896e8854 100755 --- a/src/Utils.jl +++ b/src/Utils.jl @@ -1,6 +1,6 @@ #!/usr/bin/env bash #= - exec julia --project="~/FaceDetection.jl/" "${BASH_SOURCE[0]}" "$@" -e 'include(popfirst!(ARGS))' \ + exec julia --project="$(realpath $(dirname $0))/../" "${BASH_SOURCE[0]}" "$@" -e 'include(popfirst!(ARGS))' \ "${BASH_SOURCE[0]}" "$@" =# diff --git a/test/runtests.jl b/test/runtests.jl index 65f8f2b62..d9c9a1104 100755 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,6 +1,6 @@ #!/usr/bin/env bash #= - exec julia --project="~/FaceDetection.jl/" "${BASH_SOURCE[0]}" "$@" -e "include(popfirst!(ARGS))" \ + exec julia --project="$(realpath $(dirname $0))/../" "${BASH_SOURCE[0]}" "$@" -e "include(popfirst!(ARGS))" \ "${BASH_SOURCE[0]}" "$@" =#