源碼下載地址:
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數據不能放在同一個文件下,否則會出錯。