Giter VIP home page Giter VIP logo

Comments (2)

chaoli-ai avatar chaoli-ai commented on August 27, 2024

ODConv/modules/odconv.py

Lines 56 to 58 in 60a4691

@staticmethod
def skip(_):
return 1.0

ODConv/modules/odconv.py

Lines 78 to 83 in 60a4691

def forward(self, x):
x = self.avgpool(x)
x = self.fc(x)
x = self.bn(x)
x = self.relu(x)
return self.func_channel(x), self.func_filter(x), self.func_spatial(x), self.func_kernel(x)

该错误与ODConv2d的Attention实现方式有关,在kernel size为1/kernel number为1/depth-wise卷积等不同情况下,channel/filter/spatial/kernel attention中的某些attention机制将不被应用(例如ODConv不会对1×1卷积层使用spatial attention),我们的代码实现中会将相应的attention置为浮点数1.0。 针对此问题,可以先判断查看size的对象是否为tensor类型。

from odconv.

yanglcs avatar yanglcs commented on August 27, 2024

你好,我也遇到了同样的问题,查看size的对象是LongTensor类型,不知道要怎么解决T_T

from odconv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.