ziplab / LITv2

[NeurIPS 2022 Spotlight] This is the official PyTorch implementation of "Fast Vision Transformers with HiLo Attention"
Apache License 2.0
229 stars 11 forks source link

关于特征图与窗口大小不能整除的问题 #6

Closed mjt1312 closed 1 year ago

mjt1312 commented 1 year ago

你好,想请教一下在hifi中,H与W不能整除window size ,这种情况怎么办呢?

HubHop commented 1 year ago

你好,这种情况下HiLo的做法是对feature map做padding,可以参考HiLo在object detection上的方案:https://github.com/ziplab/LITv2/blob/main/detection/mmdet/models/backbones/litv2.py#L216

mjt1312 commented 1 year ago

superhero @.***

好的好的,特别感谢您的回复!!!!

 

------------------ 原始邮件 ------------------ 发件人: "ziplab/LITv2" @.>; 发送时间: 2022年9月27日(星期二) 下午4:40 @.>; @.**@.>; 主题: Re: [ziplab/LITv2] 关于特征图与窗口大小不能整除的问题 (Issue #6)

你好,这种情况下HiLo的做法是对feature map做padding,可以参考HiLo在object detection上的方案:https://github.com/ziplab/LITv2/blob/main/detection/mmdet/models/backbones/litv2.py#L216

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>