diff --git a/README.md b/README.md index 05909fffef28e09ced1cf074453dd612589d10e4..3c9f22720003e2f752ea18d3149ee6eb3c955488 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,23 @@ You can specify the software runtime of your code by modifying the included [Doc #### Code Entrypoint The evaluator will use `/home/aicrowd/run.sh` as the entrypoint. Please remember to have a `run.sh` at the root which can instantiate any necessary environment variables and execute your code. This repository includes a sample `run.sh` file. +### Local Debug + +``` +export TEST_IMAGES_PATH="./data/test_images" +export IMAGE_NAME="aicrowd-food-recognition-challenge-submission" + +./build.sh +./debug.sh + +###################################### +## NOTE : +## +## * If you do not wish to your a GPU when testing locally, please feel free to replace nvidia-docker with docker +## +## * If you want to test on images located at an alternate location, set the `TEST_IMAGES_PATH` environment variable accordingly before running `build.sh` and `debug.sh`. +``` + ### Submitting To make a submission, you will have to create a private repository on [https://gitlab.aicrowd.com](https://gitlab.aicrowd.com). diff --git a/build.sh b/build.sh index 509203f8709ab3684df5962469109a600e3c765f..25dea2a1e072527c555627490d4dc4f692537ad2 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,4 @@ #!/bin/bash -export IMAGE_NAME="aicrowd-food-recognition-challenge-submission" docker build -t $IMAGE_NAME \ No newline at end of file diff --git a/debug.sh b/debug.sh index a5c17a904ed1aca430d586a954312ec502328aac..28902d1bad76931754722750cd16ce2e6fa0cddd 100644 --- a/debug.sh +++ b/debug.sh @@ -1,8 +1,6 @@ #!/bin/bash -export TEST_IMAGES_PATH="./data/test_images" -export IMAGE_NAME="aicrowd-food-recognition-challenge-submission" nvidia-docker run -it \ --net=host \