代码地址 https://github.com/endernewton/tf-faster-rcnn
在Terminal输入
GPU_ID=0
CUDA_VISIBLE_DEVICES=${GPU_ID} ./tools/demo.py
可以跑demo.py。
在屏幕上右键debug,报下面的错误
le "/home/shaohui/tf-faster-rcnn/tools/demo.py", line 126, in <module> 'our server and place them properly?').format(tfmodel + '.meta')) OSError: output/res101/voc_2007_trainval+voc_2012_trainval/default/res101_faster_rcnn_iter_110000.ckpt.meta not found. Did you download the proper networks from our server and place them properly?
解决方法:
把demo.py文件120行修改,出错代码:
tfmodel = os.path.join('output', demonet, DATASETS[dataset][0], 'default',
NETS[demonet][0])
修改为:
tfmodel = os.path.join('/home/shaohui/tf-faster-rcnn/output&#