Search code examples
machine-learningcomputer-visiontensorflowbazelimagenet

When I run inception preprocessing script, it fails


When I run bazel-bin/inception/download_and_preprocess_imagenet "${DATA_DIR}" the error message:

bazel-bin/inception/inception/download_and_preprocess_imagenet: line 66: bazel-bin/inception/inception/download_and_preprocess_imagenet.runfiles_make_/inception/inception/data
/download_imagenet.sh: No such file or directory

Could someone please tell me what I am doing wrong? I followed the instructions at here


Solution

  • Tensorflow's models repository has a very confusing structure, and you're in the wrong directory. The tree looks like this:

    models/
      BUILD
      WORKSPACE
      inception/
        BUILD
        WORKSPACE
        inception/
          data/
            ...
    

    I'm pretty if you ran pwd it would say models. However, the download_and_preprocess_imagenet assumes you'll be in models/inception. So, do:

     cd inception
     bazel build //inception:download_and_preprocess_imagenet
    

    Then bazel-bin/inception/download_and_preprocess_imagenet should work properly.