多目标跟踪论文 Deep SORT 特征训练TensorFlow实现

多目标跟踪论文 Deep SORT 特征训练TensorFlow实现

flyfish

环境
Ubuntu 18.04
Tensorflow1.5 或者Tensorflow1.13.1
Python 3.6
论文《Deep Cosine Metric Learning for Person Re-Identification》
论文下载地址 https://elib.dlr.de/116408/
源码地址 github.com/nwojke/cosine_metric_learning

验证版本
进入虚拟环境

santiago@sea:~/env/deepsort/bin$ source activate

Tensorflow版本

(deepsort) santiago@sea:~/env/deepsort/bin$ python3 -c 'import tensorflow as tf; print(tf.__version__)'

Python版本

(deepsort) santiago@sea:~/env/deepsort/bin$ python
Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux

预训练文件
Market1501-20190516T021325Z-001.zip
MARS-20190516T020411Z-001.zip

数据集
Market-1501-v15.09.15
MARS-v160809(共1,192,266项 bbox_train.zip 2.9G; bbox_test.zip 3.8G)
MARS地址 http://www.liangzheng.com.cn/Project/project_mars.html

论文中使用的是MARS训练的模型
训练过程
进入目录

(deepsort) santiago@sea:~/env/deepsort/bin$ cd /home/santiago/code/cosine_metric_learning

训练命令

python train_mars.py \
    --dataset_dir=./MARS-v160809 \
    --loss_mode=cosine-softmax \
    --log_dir=./output/mars/ \
    --run_id=cosine-softmax

可视化查看命令

(deepsort) santiago@sea:~/code/cosine_metric_learning$ tensorboard --logdir ./output/mars/cosine-softmax --port 7006
TensorBoard 1.5.1 at http://sea:7006 (Press CTRL+C to quit)

训练过程中生成的文件
每5分钟自动保存一组文件

checkpoint
events.out.tfevents.1558318906.sea
graph.pbtxt

model.ckpt-0.data-00000-of-00001
model.ckpt-0.index
model.ckpt-0.meta

checkpoint里记录
model_checkpoint_path: “model.ckpt-66576”
all_model_checkpoint_paths: “model.ckpt-66576”

finalize
(deepsort) santiago@sea:~/code/cosine_metric_learning$ python train_mars.py --mode=finalize --restore_path=./output/mars/cosine-softmax/model.ckpt-66576

会生成三个文件
mars.ckpt.data-00000-of-00001
mars.ckpt.index
mars.ckpt.meta

freeze生成mars.pb文件

python train_mars.py --mode=freeze --restore_path=./mars.ckpt

mars.pb文件就是论文中用到的文件

评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

西笑生

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值