源码下载地址:
https://github.com/MG2033/MobileNet-V2
1、安装
pytorch 0.3
numpy 1.13.1
tqdm 4.15.0
easydict 1.7
matplotlib 2.0.2
tensorboardX 1.0
输入命令:
pip install -r requirements.txt
若安装失败,可以一个一个安装,例:pip install tqdm
2、修改存放数据cifar10存放的路径
3、运行
python main.py --config ./config/cifar10_test_exp.json
4、实验结果
5、使用tensorboard 查看learning curves for the CIFAR-10 experiment.
tensorboard --port='6007' --logdir experiments/cifar10_test_exp/summaries
然后到浏览器输入:http://IP地址:6007
坑:
1)服务器不联网:
服务器上命令:
ssh -4 -L 1600:127.0.0.1:6007 username@服务器ip
(1600指本地端口,若显示占用,则换一个;6007指服务器上的端口;username:服务器上的用户名)
设置端口映射,如下:(多个映射时名字不能一样)
然后在浏览器上输入:
http://127.0.0.1:1600
2)坑:只能在chrome浏览器打开!!!!!!
3)非同一次的log数据不能放在同一个文件下,否则会出错。