Git Product home page Git Product logo

Comments (6)

deep-practice avatar deep-practice commented on July 19, 2024

我导出来的onnx和你的不太一样,想知道在concate的时候,你是怎么操作的
loc_pred = loc.view(loc.size(0), -1, 4).reshape(1,-1) #[1, 7759, 4]-->[1,7759x4]
conf_pred = self.softmax(conf.view(-1, self.num_classes)).reshape(1,-1) #[7759, 2]-->[1,7559x2]
output = torch.cat((loc_pred,conf_pred),0)
@xiaoxiaotao

from person-detection.

xiaoxiaotao avatar xiaoxiaotao commented on July 19, 2024

他的网络输出,7759×4是位置信息,7759×2是置信度,两个都reshape成一维的再进行连接

from person-detection.

deep-practice avatar deep-practice commented on July 19, 2024

嗯嗯 我用自己导出来的也可以推断 只是可能一些细节跟你不太一样

from person-detection.

xiaoxiaotao avatar xiaoxiaotao commented on July 19, 2024
    loc = torch.cat([o.flatten(1) for o in loc], 1)
    conf = torch.cat([o.flatten(1) for o in conf], 1)
    print(loc.shape)
    print(conf.shape)
    output=torch.cat((loc,conf),1)

from person-detection.

deep-practice avatar deep-practice commented on July 19, 2024

没有搞懂为什么要把softmax拿出来呢

from person-detection.

xiaoxiaotao avatar xiaoxiaotao commented on July 19, 2024

当时为了了解数据的流动,全都拆开了,进一步了解运行过程

from person-detection.

Related Issues (4)

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.