Comments (2)
@boris-lb Hi, could you locate the Reshape_217
node in onnx file using netron and which line of code has created this node? There no Reshape
node in my exported onnx with following script and it works fine:
../mmsegmentation/configs/deeplabv3plus/deeplabv3plus_r50-d8_512x1024_40k_cityscapes.py
../mmsegmentation/checkpoints/deeplabv3plus_r50-d8_512x1024_40k_cityscapes_20200605_094610-d222ffcd.pth
../mmsegmentation/demo/demo.png
--work-dir
./work-dirs/mmseg/deeplabv3plus/trt-fp32
--show
--device
cuda
from mmdeploy.
thanks for reply,I have solved the problem based segmentation_tensorrt_static-512x1024.py,change 1024 to 512 as follows:
base = ['./segmentation_static.py', '../base/backends/tensorrt.py']
onnx_config = dict(input_shape=[512, 512])
backend_config = dict(
common_config=dict(max_workspace_size=1 << 30),
model_inputs=[
dict(
input_shapes=dict(
input=dict(
min_shape=[1, 3, 512, 512],
opt_shape=[1, 3, 512, 512],
max_shape=[1, 3, 512, 512])))
])
run command:python ../MMDeploy/tools/deploy.py ../MMDeploy/configs/mmseg/segmentation_tensorrt_static-512x512.py ../mmsegmentation/configs/deeplabv3plus_r50-d8_512x512_20k_voc12aug.py ../mmsegmentation/work_dirs/deeplabv3plus_r50-d8_512x512_20k_voc12aug/iter_18000.pth ../data/test.jpg --work-dir ./voc --device cuda
The reason for the above problem is the wrong size of the input image,i’m very surprised to use a dynamic configuration file, the segmentation results are very poor,I still need to experiment and learn to determine the cause of the problem 。
from mmdeploy.
Related Issues (20)
- [Docs] Difference between profiler and deploy script
- [Bug] Error exporting RTMO to ONNX and TensorRT
- opencv mat reshape[Bug] HOT 2
- [Bug] RtmDet-ins-tiny unable to achieve inference speed in documentation
- [Bug] IndexError: list index out of range
- how to remove "mmdeploy" domain in model's input and keep the onnx model reasoning normal HOT 1
- [Bug] How do I use multiprocess or multithreaded loading models
- [Bug] Dynamic Axes Not supported with this tensorRT version
- [Bug] [mmdeploy] [error] [module_adapter.h:31] unhandled exception: invalid argument (1)
- [Bug] Issue with tools/deploy.py on centerpoint model
- [Bug] Detection is not possible depending on the aspect ratio of the defect.
- [Docs] ONNX export Optimizer
- [Feature] DSVT in mmdeploy
- [Bug] Converting to ONNX: Dynamic batch size on input gives all dynamic axes on output.
- [Bug] The C++ environment has been configured. When I use the exported onnx file, it shows that the model cannot be loaded during C++ inference.
- Fatal error: mmdeploy:MMCVModulatedDeformConv2d(-1) is not a registered function/op
- RTMO model convert to onnx HOT 1
- [Bug] RTMDet model to ONNXRuntime or Torchscript doesn't produce masks
- [Bug] Failed to convert fcos-resnet50 to onnx HOT 1
- [Bug] Detection TensorRT has zero output binding shape
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 mmdeploy.