Comments (9)
我export指定了input_shape,不使用use_trt时不会报错,并且输出是这样的
from paddle.
from paddle.
模型导出时保存的shape和推理使用的shape一致吗
from paddle.
是一致的,用的是cityscapes原图。我刚试了一下使用--enable_auto_tune,然后可以推理成功了
这是因为什么原因啊?
from paddle.
应该是dynamic shape 推导出了问题,使用--enable_auto_tune吧,他会自动推导的,不用显式给shape的
from paddle.
那它自动推导的shape和我导出的时候指定的shape一样吗,因为我要测试输入分辨率为1024*2048的时候的fps
from paddle.
你导出的时候shape 指定为none,这样就可以输入任意形状,auto_tune是你推理的时候如果你输入的形状没有tune过,就会重新tune,也就是你输入10242048,他就会tune 10242048的最优性能
from paddle.
我在导出的时候如果不指定inputshape会报错,因为它不指定输入的时候默认是-1,但是我改的代码里面为-1的时候会出错,所以我指定了输入大小为1024x2048。这个时候我使用了auto_tune,然后输入图片是cityscapes数据集的原图,它测试出来的性能也是1024x2048吗?因为我这个网络还要测试cityscapes输入大小为768x1536分辨率的图片。
from paddle.
shape 指定为None 就是dynamic shape了
from paddle.
Related Issues (20)
- 缺少torch.nn.utils.rnn.pad_sequence的API或者实现 HOT 2
- 在瑞芯微3568上已经部署好Fastdeploy。请问example中Yolov5的自己的onnx模型怎么使用呢? HOT 1
- paddlepaddle==2.6.0和2.6.1适配国产化与非国产化代码返回不一致问题 HOT 1
- Torch MultiHeadAttention To Paddle MultiHeadAttention Issue HOT 2
- softmax_with_cross_entropy API在软标签下label是否需要归一化 HOT 3
- 单机多卡问题 HOT 4
- Reported errors after running paddle.utils.run_check() HOT 2
- paddle.sparse.matmul两个参数都是sparse_csr_tensor时报错RuntimeError: (NotFound) The kernel `matmul_csr_csr` is not registered. HOT 2
- 这个教程代码有问题,https://www.paddlepaddle.org.cn/documentation/docs/zh/practices/nlp/transformer_in_English-to-Spanish.html
- Paddle的 Dataloader 遇到纯文本数据时报错 StopIteration HOT 1
- How to solve "license/cla Expected — Waiting for status to be reported" HOT 1
- 单机多卡问题 HOT 1
- templatedoc 机制清理 HOT 2
- 在华为Atlas310pro编译Paddle_npu版本,cmake有警告,make报错 HOT 3
- 【快乐开源】PIR模式下单测问题修复与适配
- 【开源之夏】动转静支持子图高阶微分
- phi::Device::SynchronizeStream传入的stream的raw_stream成员为空指针是否是正常的? HOT 24
- Does PP has a flowchart recognize product? HOT 2
- 如何将一个Tensor在内存中(不要保存到硬盘)序列化成可以通过网络传输的二进制格式? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddle.