diff --git a/examples/nips17_adversarial_competition/validation_tool/README.md b/examples/nips17_adversarial_competition/validation_tool/README.md index 2801180c1..8d7ff4cc2 100644 --- a/examples/nips17_adversarial_competition/validation_tool/README.md +++ b/examples/nips17_adversarial_competition/validation_tool/README.md @@ -20,3 +20,8 @@ python validate_submission.py \ After run this tool will print whether submission is valid or not. If submission is invalid then log messages will contain explanation why. + +NOTE: This tool might not work properly if file is located on NFS or if +directory containing submission file can't be mounted in Docker using `-v` +command line argument. In such case copy file to different location and try +again. diff --git a/examples/nips17_adversarial_competition/validation_tool/validate_submission_lib.py b/examples/nips17_adversarial_competition/validation_tool/validate_submission_lib.py index e89f3599e..bec2e4fe2 100644 --- a/examples/nips17_adversarial_competition/validation_tool/validate_submission_lib.py +++ b/examples/nips17_adversarial_competition/validation_tool/validate_submission_lib.py @@ -381,6 +381,9 @@ def validate_submission(self, filename, submission_type): logging.error('Invalid submission type: %s', submission_type) return False self._prepare_temp_dir() + # Convert filename to be absolute path, + # relative path might cause problems when monting directory in Docker + filename = os.path.abspath(filename) # extract submission if not self._extract_submission(filename): return False