【问题标题】:CNTK fastrCNN - Training Custom Images - FileNotFoundError: [WinError 2] The system cannot find the file specifiedCNTK fastrCNN - 训练自定义图像 - FileNotFoundError: [WinError 2] 系统找不到指定的文件
【发布时间】:2017-05-19 15:41:42
【问题描述】:

我正在尝试从 CNTK 库中训练 fastrCNN 模块。我在 PARAMETERS.py 文件中进行了必要的更改。当我运行 A1_GenerateROI.py 时,它生成了 ROI,但我收到了以下消息。

Number of images in set train = 73
Processing image set 'train', image 0 of 73
wrote gt roidb to C:\local\CNTK-2-0-beta15-0-Windows-64bit-CPU-Only\cntk\Examples\Image\Detection\FastRCNN/proc/KYC_100/cntkFiles/train.cache_gt_roidb.pkl
Only keeping the first 100 ROIs..
wrote ss roidb to C:\local\CNTK-2-0-beta15-0-Windows-64bit-CPU-Only\cntk\Examples\Image\Detection\FastRCNN/proc/KYC_100/cntkFiles/train.cache_selective_search_roidb.pkl
Processing image set 'train', image 50 of 73
Number of images in set test = 18
Processing image set 'test', image 0 of 18
wrote gt roidb to C:\local\CNTK-2-0-beta15-0-Windows-64bit-CPU-Only\cntk\Examples\Image\Detection\FastRCNN/proc/KYC_100/cntkFiles/test.cache_gt_roidb.pkl
Only keeping the first 100 ROIs..
wrote ss roidb to C:\local\CNTK-2-0-beta15-0-Windows-64bit-CPU-Only\cntk\Examples\Image\Detection\FastRCNN/proc/KYC_100/cntkFiles/test.cache_selective_search_roidb.pkl
DONE.

现在,当我尝试运行 A2_RunCntk.py 时,我收到以下错误消息。

(cntk-py35) C:\local\CNTK-2-0-beta15-0-Windows-64bit-CPU-Only\cntk\Examples\Image\Detection\FastRCNN>python A2_RunCntk.py
--------------------------------------------------------------
2017-05-19 09:53:31
PARAMETERS: datasetName = KYC
PARAMETERS: cntk_nrRois = 100
cntk.exe configFile=C:\local\CNTK-2-0-beta15-0-Windows-64bit-CPU-Only\cntk\Examples\Image\Detection\FastRCNN/proc/KYC_100/cntkFiles/fastrcnn.cntk currentDirectory=C:\local\CNTK-2-0-beta15-0-Windows-64bit-CPU-Only\cntk\Examples\Image\Detection\FastRCNN/proc/KYC_100/cntkFiles/ NumLabels=4 NumTrainROIs=100 TrainROIDim=400 TrainROILabelDim=400 NumTestROIs=100 TestROIDim=400 TestROILabelDim=400
Traceback (most recent call last):
  File "A2_RunCntk.py", line 41, in <module>
    pid = subprocess.Popen(cmdStr, cwd = cntkFilesDir)
  File "c:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py35\lib\subprocess.py", line 676, in __init__
    restore_signals, start_new_session)
  File "c:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py35\lib\subprocess.py", line 955, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

这里提到了哪个文件,我不知道该怎么办。尝试运行 Grocery 图像数据集时没有看到相同的错误。

提前感谢您的帮助。

【问题讨论】:

  • 您是否可以尝试使用最新的 RC2 位重现问题。另外,您可以尝试使用可能更容易调试的 Python 示例吗?

标签: computer-vision artificial-intelligence deep-learning cntk


【解决方案1】:

按照本指南设置 CNTK.exe 的路径:https://docs.microsoft.com/en-us/cognitive-toolkit/Object-Detection-using-Fast-R-CNN#quick-guide

本教程进一步假设 cntk.exe 所在的文件夹位于您的 PATH 环境变量中。 (要将文件夹添加到您的 PATH 中,您可以从命令行运行以下命令(假设您计算机上 cntk.exe 所在的文件夹是 C:\src\CNTK\x64\Release): set PATH=C:\src \CNTK\x64\Release;%PATH%。)

【讨论】:

    【解决方案2】:

    确保 CNTK 已正确安装在您的环境中。

    在您的 Python 环境中运行 pip list 并检查您是否正确安装了 CNTK 模块。 它应该看起来像这样:

    pip list in Python console

    如需更多说明,请按此操作:https://docs.microsoft.com/en-us/cognitive-toolkit/setup-cntk-on-your-machine

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-05-21
      • 1970-01-01
      • 1970-01-01
      • 2020-01-02
      • 1970-01-01
      • 2017-08-01
      • 2019-07-29
      相关资源
      最近更新 更多