2017-07-25 56 views
0

我在這裏以下指令:https://github.com/tensorflow/models/tree/master/inception無法運行imagenet下載和預處理腳本(已發行202建議沒有工作)

運行bazel-bin/inception/imagenet_train --num_gpus=1 --batch_size=32 --train_dir=/tmp/imagenet_train --data_dir=/tmp/imagenet_data

後,我收到以下錯誤:

bazel-bin/inception/download_and_preprocess_imagenet.runfiles/inception/inception/data/download_imagenet.sh: line 105: bazel-bin/inception/download_and_preprocess_imagenet.runfiles/inception/inception/data/imagenet_lsvrc_2015_synsets.txt: No such file or directory"

我在202上看到了這篇文章,但是在work_dir中「添加main/before」的建議並沒有解決問題。下面是ls -l -R bazel-bin/inception/download_and_preprocess_imagenet.runfiles/輸出:

bazel-bin/inception/download_and_preprocess_imagenet.runfiles/: 
total 8 
drwxr-xr-x 3 parsa parsa 4096 Jun 30 14:34 inception 
-r-xr-xr-x 1 parsa parsa 1737 Jun 30 14:34 MANIFEST 

bazel-bin/inception/download_and_preprocess_imagenet.runfiles/inception: 
total 4 
drwxr-xr-x 3 parsa parsa 4096 Jun 30 14:34 inception 

bazel-bin/inception/download_and_preprocess_imagenet.runfiles/inception/inception: 
total 12 
lrwxrwxrwx 1 parsa parsa 149 Jun 30 14:34 build_imagenet_data -> /home/parsa/.cache/bazel/_bazel_parsa/cf59658e104287859f50b192c32a27cc/execroot/inception/bazel-out/local-fastbuild/bin/inception/build_imagenet_data 
drwxr-xr-x 2 parsa parsa 4096 Jun 30 14:34 data 
lrwxrwxrwx 1 parsa parsa 162 Jun 30 14:34 download_and_preprocess_imagenet -> /home/parsa/.cache/bazel/_bazel_parsa/cf59658e104287859f50b192c32a27cc/execroot/inception/bazel-out/local-fastbuild/bin/inception/download_and_preprocess_imagenet 
-r-xr-xr-x 1 parsa parsa 0 Jun 30 14:34 init.py 

bazel-bin/inception/download_and_preprocess_imagenet.runfiles/inception/inception/data: 
total 32 
lrwxrwxrwx 1 parsa parsa 94 Jun 30 14:34 build_imagenet_data.py -> /home/parsa/Documents/development/brain/models/inception/inception/data/build_imagenet_data.py 
lrwxrwxrwx 1 parsa parsa 107 Jun 30 14:34 download_and_preprocess_imagenet.sh -> /home/parsa/Documents/development/brain/models/inception/inception/data/download_and_preprocess_imagenet.sh 
lrwxrwxrwx 1 parsa parsa 92 Jun 30 14:34 download_imagenet.sh -> /home/parsa/Documents/development/brain/models/inception/inception/data/download_imagenet.sh 
lrwxrwxrwx 1 parsa parsa 114 Jun 30 14:34 imagenet_2012_validation_synset_labels.txt -> /home/parsa/Documents/development/brain/models/inception/inception/data/imagenet_2012_validation_synset_labels.txt 
lrwxrwxrwx 1 parsa parsa 103 Jun 30 14:34 imagenet_lsvrc_2015_synsets.txt -> /home/parsa/Documents/development/brain/models/inception/inception/data/imagenet_lsvrc_2015_synsets.txt 
lrwxrwxrwx 1 parsa parsa 93 Jun 30 14:34 imagenet_metadata.txt -> /home/parsa/Documents/development/brain/models/inception/inception/data/imagenet_metadata.txt 
-r-xr-xr-x 1 parsa parsa 0 Jun 30 14:34 init.py 
lrwxrwxrwx 1 parsa parsa 110 Jun 30 14:34 preprocess_imagenet_validation_data.py -> /home/parsa/Documents/development/brain/models/inception/inception/data/preprocess_imagenet_validation_data.py 
lrwxrwxrwx 1 parsa parsa 97 Jun 30 14:34 process_bounding_boxes.py -> /home/parsa/Documents/development/brain/models/inception/inception/data/process_bounding_boxes.py 
+1

請格式化你的問題正確 – CCH

+0

這是一個已知的bug,需要固定。 –

+0

我也在Ubuntu上獲得與Tensorflow 1.3 python 2.7相同的錯誤 – Integration

回答

0

我在download_and_preprocess_imagenet.sh與實際的完整的文件路徑替換LABELS_FILE解決了這個問題