Comments (8)
是的 opset设一下
from tensorrt.
是的 opset设一下
好的,谢谢,这个和mmdetection版本有关吗?
from tensorrt.
影响不大 毕竟逻辑都是差不多的 可能有些细节需要修改
大多数ATen都能找到替代的python方法
from tensorrt.
影响不大 毕竟逻辑都是差不多的 可能有些细节需要修改
大多数ATen都能找到替代的python方法
博主,你好。我将pth转换为onnx后,在解析onnx的时候,出现错误。
Input filename: D:/retinanet_mmdetection/data/onnx/retinanet.onnx
ONNX IR version: 0.0.4
Opset version: 11
Producer name: pytorch
Producer version: 1.3
Domain:
Model version: 0
Doc string:
WARNING: ONNX model has a newer ir_version (0.0.4) than this parser was built against (0.0.3).
WARNING: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
Successfully casted down to INT32.
While parsing node number 177 [Gather]:
ERROR: onnx2trt_utils.hpp:347 In function convert_axis:
[8] Assertion failed: axis >= 0 && axis < nbDims
[08/05/2020-08:41:04] [E] Parsing File Failed
[08/05/2020-08:41:04] [E] Init Session Failed!
请问这是什么原因呢?
from tensorrt.
gather 的 axis dim不能为-1 改成正数
from tensorrt.
gather 的 axis dim不能为-1 改成正数
我用netron看了一下,gather的axis为0,类型为int64。而且不清楚While parsing node number 177这个节点在哪里,我看gather的input name不是177。
from tensorrt.
看你onnx的graph177对应什么
from tensorrt.
Thread Pool Created! Total num of threads is 4
----------------------------------------------------------------
Input filename: /home/xiaohu/tensorRT/retinanet.onnx
ONNX IR version: 0.0.6
Opset version: 11
Producer name: pytorch
Producer version: 1.5
Domain:
Model version: 0
Doc string:
----------------------------------------------------------------
[05/23/2021-15:16:16] [W] [TRT] onnx2trt_utils.cpp:220: Your ONNX model has been generated with INT64 weights, while TensorRT does not natively support INT64. Attempting to cast down to INT32.
[05/23/2021-15:16:16] [W] [TRT] onnx2trt_utils.cpp:246: One or more weights outside the range of INT32 was clamped
ERROR: builtin_op_importers.cpp:3345 In function importTopK:
[8] Assertion failed: inputs.at(1).is_weights()
[05/23/2021-15:16:16] [E] Parsing File Failed
[05/23/2021-15:16:16] [E] Init Session Failed!
Segmentation fault (core dumped)
你好,我retinanet make成功以后,执行bin文件报错。转换retinanet的方法是用mmdetection自带的权重和config,也设置了opset-version为11,但是还是报错,请问你知道是怎么回事吗?
谢谢!
from tensorrt.
Related Issues (20)
- 请教关于pytorch-yolov3-onnx-tensorRT加速问题 HOT 1
- 编译问题 HOT 2
- 多线程问题 HOT 1
- run yolov5 failed HOT 1
- yolov5s int8量化不出框? HOT 5
- 这是一个非常好的项目, 但是https://github.com/Syencil/tensorflow-yolov3没有了,能否重新上传您的项目呢,我使用原版代码无法完成.pb到.onnx的转换 HOT 5
- resnet infer编译有问题,代码继承那可能需要改下 HOT 1
- tensorRT6.0有问题 HOT 1
- Psnet onnx转trt咨询 HOT 1
- 最后的trt可以被编译成so吗? HOT 1
- Serializing Engine Failed
- pytorch 模型的输入格式为B,C,H,W,而opencv读入的图片为H,W,C,请问是C++是怎么将H,W,C转为C,H,W格式的?类似于numpy.transpose的功能 HOT 3
- 请问yolov5的版本是多少的,v4.0的么 HOT 1
- are you available? HOT 2
- 编译错误:/usr/bin/ld: cannot find -lfcostrt HOT 2
- YOLOv5 parse problem HOT 1
- 再实际中trt也不存在理想上的动态输入?trt不是支持动态输入阿,像psenet的话肯定需要动态输入阿 HOT 1
- yolov5s 检测不出框 HOT 2
- yolov5 run error:Found unsupported datatype (11) when importing initializer: model.0.conv.total_ops
- /usr/bin/ld: 找不到 -lyolov5trt
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 tensorrt.