Github连接:https://github.com/tylin/coco-captionjava
Ubuntu版本信息python
tylin/coco-caption环境配置linux
安装完毕后,重启终端,建立一个新的Python环境(python=2.7)。git
进入新环境 coco-caption,使用pip安装依赖包matplotlib,scikit-image等。github
conda activate coco-caption conda list pip install matplotlib pip install scikit-image conda list
cd Downloads/ ls tar -xzvf jdk-8u211-linux-x64.tar.gz
搭建 jdk1.8 运行环境。json
使刚刚设置的环境变量当即生效,并测试环境变量配置是否正确。ubuntu
source /etc/profile
java -version
unzip coco-caption-master.zip
进入“~/Downloads/coco-caption-master/”目录,运行 get_stanford_models.sh 文件。测试
cd coco-caption-master/ ./get_stanford_models.sh
在 coco-caption 环境中,使用pip安装jupyter notebook。ui
conda activate coco-caption pip install jupyter notebook
在 coco-caption 环境中,输入jupyter notebook,选择cocoEvalCapDemo.ipynb。spa
点击“Kernel -> Restart & Run All”,Cell [1] ~ [5]可以正常运行。若是须要Cell [6]显示图片,须要下载MSCOCO 2014 val2014图片,放在对应的目录下。
/coco-caption-master/results目录下文件的解释