BiSeNet icon indicating copy to clipboard operation
BiSeNet copied to clipboard

Infer with one single image question

Open Datou98 opened this issue 2 years ago • 4 comments

I use the model_final_v2_ade20k.pth that you provided, using the command:

python tools/export_onnx.py --config configs/bisenetv2_city.py --weight-path /home/datou/BiSeNet/BiSeNet-master/model/model_final_v2_city.pth --outpath ./model_v2_city.onnx --aux-mode eval

Convert pth to onnx and use the command: ./segment complie ../../model_v2_city.onnx ../../saved_v2city.trt --f16

Finally get trt, use the following command to test: ./segment run ../../saved_v2city.trt ../../example.png ../../output_v2city.jpg output_v2city

But the output result is not correct, the result is as follows, I want to ask what is the reason?

Datou98 avatar Sep 09 '22 02:09 Datou98

Again, I observe no such problem on my own platform. What model are you using? Is the pytorch demo.py works correctly?

CoinCheung avatar Sep 09 '22 04:09 CoinCheung

Again, I observe no such problem on my own platform. What model are you using? Is the pytorch demo.py works correctly?

yes,I am using the model model_final_v2_city.pth provided by your github, which can run normally in model.py 图片 when i commend ./segment run ../../saved_v2_city.trt ../../example.png ../../output_v2city.jpg 图片

this warning :TensorRT was linked against cuBLAS/cuBLASLt 11.6.5 but loaded cuBLAS/cuBLASLt 11.4.2 Will it affect the result? do you have this problem

Datou98 avatar Sep 09 '22 05:09 Datou98

I pulled a new repo and run step by step, but I still cannot reproduce this problem. pic

CoinCheung avatar Sep 09 '22 06:09 CoinCheung

I pulled a new repo and run step by step, but I still cannot reproduce this problem. ![pic](https://user-images.githubusercontent.com/22693362/189290536-367f344e-d635-4f1d-98cd-78322aecd928. jpg) I just dropped the tensorrt version from 8.2.5.1 to 8.0.1.6, and the result of the segmentation can be displayed normally. output_v2_city

I tested it, the gpu is 3060, the fps is 25.6845, is this normal?

Datou98 avatar Sep 09 '22 07:09 Datou98

I am not familiar with 3060, and since this thread is not activate for a long time(my bad), let me close this. If you still want more discussion, please open new issues.

CoinCheung avatar Nov 15 '22 03:11 CoinCheung