python安装mtl库_MTLCC地表覆盖分类网络的一个pytorch实现

Pytorch -- Multitemporal Land Cover Classification Network

Please consider citing

Rußwurm M., Körner M. (2018). Multi-Temporal Land Cover Classification with

Sequential Recurrent Encoders. ISPRS International Journal of Geo-Information, 2018.

if you use this repository

Activations while encoding sequence:

lstm.gif

Dependencies

Python dependencies

pip install numpy

pip install pandas>=0.23.4

pip install visdom==0.1.8.4

pip install rasterio>=1.0.2

# install pytorch 0.4.1 (https://pytorch.org/)

pip3 install torch torchvision

Download dataset to src/data and model checkpoint to src/checkpoints

bash download.sh

Train 10 epochs (batchsize 16, dataloader-workers 16) with initialized weights from checkpoint file checkpoints/model_00.pth

# add src folder to python path

export PYTHONPATH="$PATHONPATH:$PWD/src"

# train

python src/train.py data -b 16 -w 16 -s checkpoints/model_00.pth

Visdom Support

Start visdom server in screen, tmux or other terminal with $ visdom and open http://localhost:8097 in the browser while training

visdom.png

Comparison to Tensorflow implementation

not yet implemented features compared to the Tensorflow version

ConvGRU integration in train.py

bidirectional RNN loop

masking of the background class

Source of ConvLSTM and ConvGRU implementations

ConvLSTM cell implementation from https://github.com/ndrplz/ConvLSTM_pytorch

(not used yet) ConvGRU cell implementation from https://github.com/bionick87/ConvGRUCell-pytorch

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值