论文笔记:Dynamic Multimodal Instance Segmentation Guided by Natural Language Queries
Dynamic Multimodal Instance Segmentation Guided by Natural Language Queries
2018-09-18 09:58:50
GitHub:https://github.com/BCV-Uniandes/query-objseg (PyTorch)
Related paper:
1. Recurrent Multimodal Interaction for Referring Image Segmentation ICCV 2017
Code: https://github.com/chenxi116/TF-phrasecut-public (Tensorflow)
2. Segmentation from Natural Language Expressions ECCV 2016
本文就是在给定 language 后,从图像中分割出所对应的目标物体。所设计的 model,如下所示:
1. Visual Module (VM) :
本文采用 Dual Path Network 92 (DPN92) 来提取 visual feature;
2. Language Module (LM):
本文采用的是 sru,一种新型的快速的 sequential 网络结构。sru 定义为:
我们把 embedding 以及 hidden state 进行 concatenate,然后得到文本中每一个单词的表达,即: rt. 有了这个之后,我们基于 rt 来计算一系列的 动态滤波 fk,t,定义为:
这样,我们可以根据文本 w,就可以得到 文本的特征表达以及对应的动态滤波,即:
3. Synthesis Module (SM):
SM 是我们框架的核心,用于融合多个模态的信息。如图5所示,我们首先将 IN 以及 空间位置的表达,进行 concatenate,然后用 dynamic filter 对这个结果进行卷积,得到一个响应图,RESP,由 K 个 channel 组成。下一步,我们将 IN,LOC,以及 Ft 沿着 channel dimension 进行 concatenate,得到一个表达 I’。最终,我们用 1*1 的卷积来融合所有的信息,每一个时间步骤,我们有一个输出,即作为 Mt,最终,表达为:
下一步,我们用 mSRU 来产生一个 3D 的 tensor。
4. Upsampling Module (UM) :
最终,我们采用 上采样的方式,得到最终分割的 map 结果。
===== 几点疑问:
1. 作者将 spatial LOC 的信息也结合到网络中?
The same operation can also be found from the reference papers:
1. Segmentation from Natural Language Expressions ECCV 2016
2. Recurrent Multimodal Interaction for Referring Image Segmentation ICCV 2017
In the paper "Segmentation from Natural Language Expressions", I find the following parts to explain why we should use the spatial location information and concatenate with image feature maps.
2. Run the code successfully.
- wangxiao@AHU:/DMS$ python3 -u -m dmn_pytorch.train --backend dpn92 --num-filters 10 --lang-layers 3 --mix-we --accum-iters 1
- /usr/local/lib/python3.6/site-packages/torch/utils/cpp_extension.py:118: UserWarning:
- !! WARNING !!
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- Your compiler (c++) may be ABI-incompatible with PyTorch!
- Please use a compiler that is ABI-compatible with GCC 4.9 and above.
- See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.
- See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
- for instructions on how to install GCC 4.9 or higher.
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! WARNING !!
- warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))
- Argument list to program
- --data /DMS/referit_data
- --split_root /DMS/referit_data/referit/splits/referit
- --save_folder weights/
- --snapshot weights/qseg_weights.pth
- --num_workers 2
- --dataset unc
- --split train
- --val None
- --eval_first False
- --workers 4
- --no_cuda False
- --log_interval 200
- --backup_iters 10000
- --batch_size 1
- --epochs 40
- --lr 1e-05
- --patience 2
- --seed 1111
- --iou_loss False
- --start_epoch 1
- --optim_snapshot weights/qsegnet_optim.pth
- --accum_iters 1
- --pin_memory False
- --size 512
- --time -1
- --emb_size 1000
- --hid_size 1000
- --vis_size 2688
- --num_filters 10
- --mixed_size 1000
- --hid_mixed_size 1005
- --lang_layers 3
- --mixed_layers 3
- --backend dpn92
- --mix_we True
- --lstm False
- --high_res False
- --upsamp_mode bilinear
- --upsamp_size 3
- --upsamp_amplification 32
- --dmn_freeze False
- --visdom None
- --env DMN-train
- Processing unc: train set
- loading dataset refcoco into memory...
- creating index...
- index created.
- DONE (t=5.78s)
- Saving dataset corpus dictionary...
- 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 42404/42404 [10:18<00:00, 68.56it/s]
- Processing unc: val set
- loading dataset refcoco into memory...
- creating index...
- index created.
- DONE (t=21.52s)
- 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 3811/3811 [00:53<00:00, 71.45it/s]
- Processing unc: trainval set
- loading dataset refcoco into memory...
- creating index...
- index created.
- DONE (t=4.97s)
- 0it [00:00, ?it/s]
- Processing unc: testA set
- loading dataset refcoco into memory...
- creating index...
- index created.
- DONE (t=5.24s)
- 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1975/1975 [00:27<00:00, 72.62it/s]
- Processing unc: testB set
- loading dataset refcoco into memory...
- creating index...
- index created.
- DONE (t=5.06s)
- 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1810/1810 [00:31<00:00, 57.91it/s]
- Train begins...
- [ 1] ( 0/120624) | ms/batch 456.690311 | loss 3.530792 | lr 0.0000100
- [ 1] ( 200/120624) | ms/batch 273.972313 | loss 1.487153 | lr 0.0000100
- [ 1] ( 400/120624) | ms/batch 257.813077 | loss 1.036689 | lr 0.0000100
- [ 1] ( 600/120624) | ms/batch 251.565860 | loss 1.047311 | lr 0.0000100
- [ 1] ( 800/120624) | ms/batch 249.070073 | loss 1.657688 | lr 0.0000100
- [ 1] ( 1000/120624) | ms/batch 246.906650 | loss 1.815347 | lr 0.0000100
- [ 1] ( 1200/120624) | ms/batch 245.645234 | loss 2.601908 | lr 0.0000100
- [ 1] ( 1400/120624) | ms/batch 245.039105 | loss 1.495383 | lr 0.0000100
- [ 1] ( 1600/120624) | ms/batch 244.460579 | loss 1.441855 | lr 0.0000100
论文笔记:Dynamic Multimodal Instance Segmentation Guided by Natural Language Queries的更多相关文章
- 论文笔记《Feedforward semantic segmentation with zoom-out features》
[论文信息] <Feedforward semantic segmentation with zoom-out features> CVPR 2015 superpixel-level,f ...
- 论文笔记 - Calibrate Before Use: Improving Few-Shot Performance of Language Models
Motivation 无需参数更新的 In-Context Learning 允许使用者在无参数的更新的情况下完成新的下游任务,交互界面是纯粹的自然语言,无 NLP 技术基础的用户也可以创建 NLP ...
- 论文阅读笔记二十二:End-to-End Instance Segmentation with Recurrent Attention(CVPR2017)
论文源址:https://arxiv.org/abs/1605.09410 tensorflow 代码:https://github.com/renmengye/rec-attend-public 摘 ...
- Multimodal —— 看图说话(Image Caption)任务的论文笔记(一)评价指标和NIC模型
看图说话(Image Caption)任务是结合CV和NLP两个领域的一种比较综合的任务,Image Caption模型的输入是一幅图像,输出是对该幅图像进行描述的一段文字.这项任务要求模型可以识别图 ...
- Rank & Sort Loss for Object Detection and Instance Segmentation 论文解读(含核心源码详解)
第一印象 Rank & Sort Loss for Object Detection and Instance Segmentation 这篇文章算是我读的 detection 文章里面比较难 ...
- 论文笔记:A Review on Deep Learning Techniques Applied to Semantic Segmentation
A Review on Deep Learning Techniques Applied to Semantic Segmentation 2018-02-22 10:38:12 1. Intr ...
- 论文笔记《Fully Convolutional Networks for Semantic Segmentation》
一.Abstract 提出了一种end-to-end的做semantic segmentation的方法,也就是FCN,是我个人觉得非常厉害的一个方法. 二.亮点 1.提出了全卷积网络的概念,将Ale ...
- 论文笔记系列-Auto-DeepLab:Hierarchical Neural Architecture Search for Semantic Image Segmentation
Pytorch实现代码:https://github.com/MenghaoGuo/AutoDeeplab 创新点 cell-level and network-level search 以往的NAS ...
- Twitter 新一代流处理利器——Heron 论文笔记之Heron架构
Twitter 新一代流处理利器--Heron 论文笔记之Heron架构 标签(空格分隔): Streaming-process realtime-process Heron Architecture ...
随机推荐
- linux考试题改错
符号链接和硬链接有什么区别? 改:符号链接存储文件路径,可以指向不同分区文件,源文件删除后失效. 改:硬链接指向文件索引节点,仅能指向同一分区文件,源文件删除后可以访问. 请描述文件和目录9位权限位的 ...
- 通过ALT+F9关键CALL追踪注册码
1)弹出关键字对话框,记录关键字注册失败,请检查···· 2)使用PEID查壳 3)peid提示无壳 4)发送到OD 5)F9使od运行 5.1)继续输入用户 5.2)使其暂停 5.3)点击调试中的执 ...
- Manjaro 玩机记录
需求: 物理机使用linux个人版本系统,最好支持 微软office QQ/Tim 等通讯软件, 软件易安装, 图形界面可修改, 具有多个多个开发环境如:python2 python3 gcc nod ...
- iOS 如果页面 A 跳转到 页面 B,A 的 viewDidDisappear 方法和 B 的 viewDidAppear 方法哪个先调用?
如果页面 A 跳转到 页面 B,A 的 viewDidDisappear 方法和 B 的 viewDidAppear 方法哪个先调用? 1. - (void)pushViewController:(U ...
- Windebug调试
.loadby SOS clr .Symfix .reload !threads !printexception [address]
- 19.0-uC/OS-III内存管理
内存管理 uC/OS-III可以获得连续的内存块.内存块大小可以相同, 所有的内存分 区包含了整数个内存块. 在特定的时间执行内存块的分配和释放.内存分 区以内存块数组的形式被静态分配的.如果分配后不 ...
- SQL中exsit和in
本周在做ETL的时候踩了个小坑 A表中数据有18条,有字段UserID B表与A表结构相同,但只有16条数据(手动删除2条,更改2条UserID为不重复的其他值) 当 Select UserID fr ...
- Viewer.js插件浏览图片
https://www.jianshu.com/p/e3350aa1b0d0 Viewer.js插件浏览图片 Viewer.js插件浏览图片 Viewer.js插件浏览图片
- Java发送邮件功能
package com.hd.all.test.testjava; import java.util.Properties; import javax.mail.Address; import jav ...
- MySQL Backup mydumper
生产环境中有一实例每天使用mysqldump备份时长达到了2个小时53分钟,接近3个小时,还不算上备份文件归档的时间,这个时间对于逻辑备份来说有点久.为了提高逻辑备份效率,打算替换为使用mydumpe ...