Coder Social home page Coder Social logo

使用--use_trt出错 about paddle HOT 9 OPEN

Daniel-969 avatar Daniel-969 commented on May 18, 2024
使用--use_trt出错

from paddle.

Comments (9)

Daniel-969 avatar Daniel-969 commented on May 18, 2024

我export指定了input_shape,不使用use_trt时不会报错,并且输出是这样的
f2751a21ba66a824d052de679cc0edcc

from paddle.

Daniel-969 avatar Daniel-969 commented on May 18, 2024

这是deploy.yaml
b477d9d37c97b55823bc64c5b5265d21

from paddle.

yangjianfengo1 avatar yangjianfengo1 commented on May 18, 2024

模型导出时保存的shape和推理使用的shape一致吗

from paddle.

Daniel-969 avatar Daniel-969 commented on May 18, 2024

是一致的,用的是cityscapes原图。我刚试了一下使用--enable_auto_tune,然后可以推理成功了
121874301e4736b5eb3916ea8bbcf213
这是因为什么原因啊?

from paddle.

yangjianfengo1 avatar yangjianfengo1 commented on May 18, 2024

应该是dynamic shape 推导出了问题,使用--enable_auto_tune吧,他会自动推导的,不用显式给shape的

from paddle.

Daniel-969 avatar Daniel-969 commented on May 18, 2024

那它自动推导的shape和我导出的时候指定的shape一样吗,因为我要测试输入分辨率为1024*2048的时候的fps

from paddle.

yangjianfengo1 avatar yangjianfengo1 commented on May 18, 2024

你导出的时候shape 指定为none,这样就可以输入任意形状,auto_tune是你推理的时候如果你输入的形状没有tune过,就会重新tune,也就是你输入10242048,他就会tune 10242048的最优性能

from paddle.

Daniel-969 avatar Daniel-969 commented on May 18, 2024

我在导出的时候如果不指定inputshape会报错,因为它不指定输入的时候默认是-1,但是我改的代码里面为-1的时候会出错,所以我指定了输入大小为1024x2048。这个时候我使用了auto_tune,然后输入图片是cityscapes数据集的原图,它测试出来的性能也是1024x2048吗?因为我这个网络还要测试cityscapes输入大小为768x1536分辨率的图片。

from paddle.

yangjianfengo1 avatar yangjianfengo1 commented on May 18, 2024

shape 指定为None 就是dynamic shape了

from paddle.

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.