Unverified Commit 53ad35a8 authored by shivam_khandelwal's avatar shivam_khandelwal
Browse files

Fixed problems with docker training and evaluation workflow in starter kit,...

Fixed problems with docker training and evaluation workflow in starter kit, added placceholder directory for gradle
parent d7986ac9
data/
shared/
logs/
.gradle/
*.pyc
# Byte-compiled / optimized / DLL files
......
......@@ -19,23 +19,27 @@ else
./utility/docker_build.sh
fi
ARGS="${@}"
# Expected Env variables : in environ.sh
if [[ " $@ " =~ " --nvidia " ]]; then
sudo nvidia-docker run \
--net=host \
--user 0 \
-e CROWDAI_IS_GRADING=True \
-v $(PWD)/data:/home/aicrowd/data \
-v $(PWD)/performance:/home/aicrowd/performance \
-v $(PWD)/.gradle:/home/aicrowd/.gradle \
-e CROWDAI_DEBUG_MODE=True \
-it ${IMAGE_NAME}:${IMAGE_TAG} \
xvfb-run -a ./utility/evaluation_locally.sh "$@"
/bin/bash -c "echo \"Staring docker evaluation...\"; xvfb-run -a ./utility/evaluation_locally.sh ${ARGS}"
else
echo "To run your submission with nvidia drivers locally, use \"--nvidia\" with this script"
echo "$@"
echo "NOTE: To run your submission with nvidia drivers locally, use \"--nvidia\" with this script"
sudo docker run \
--net=host \
--user 0 \
-e CROWDAI_IS_GRADING=True \
-v $(PWD)/data:/home/aicrowd/data \
-v $(PWD)/performance:/home/aicrowd/performance \
-v $(PWD)/.gradle:/home/aicrowd/.gradle \
-e CROWDAI_DEBUG_MODE=True \
-it ${IMAGE_NAME}:${IMAGE_TAG} \
xvfb-run -a ./utility/evaluation_locally.sh "$@"
/bin/bash -c "echo \"Staring docker evaluation...\"; xvfb-run -a ./utility/evaluation_locally.sh ${ARGS}"
fi
......@@ -19,22 +19,26 @@ else
./utility/docker_build.sh
fi
ARGS="${@}"
# Expected Env variables : in environ.sh
if [[ " $@ " =~ " --nvidia " ]]; then
sudo nvidia-docker run \
--net=host \
--user 0 \
-e CROWDAI_IS_GRADING=True \
-v $(PWD)/data:/home/aicrowd/data \
-v $(PWD)/performance:/home/aicrowd/performance \
-v $(PWD)/.gradle:/home/aicrowd/.gradle \
-e CROWDAI_DEBUG_MODE=True \
-it ${IMAGE_NAME}:${IMAGE_TAG} \
xvfb-run -a ./utility/train_locally.sh
/bin/bash -c "echo \"Staring docker training...\"; xvfb-run -a ./utility/train_locally.sh ${ARGS}"
else
echo "To run your submission with nvidia drivers locally, use \"--nvidia\" with this script"
sudo docker run \
--net=host \
--user 0 \
-e CROWDAI_IS_GRADING=True \
-v $(PWD)/data:/home/aicrowd/data \
-v $(PWD)/performance:/home/aicrowd/performance \
-v $(PWD)/.gradle:/home/aicrowd/.gradle \
-e CROWDAI_DEBUG_MODE=True \
-it ${IMAGE_NAME}:${IMAGE_TAG} \
xvfb-run -a ./utility/train_locally.sh
/bin/bash -c "echo \"Staring docker training...\"; xvfb-run -a ./utility/train_locally.sh ${ARGS}"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment