Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yolov7-seg with 416 image size? #4

Open
aurelm95 opened this issue Mar 3, 2023 · 0 comments
Open

yolov7-seg with 416 image size? #4

aurelm95 opened this issue Mar 3, 2023 · 0 comments

Comments

@aurelm95
Copy link

aurelm95 commented Mar 3, 2023

With the default yolov7 640px imagesize, the deeptream pipeline works perfect.

However, when I tried to export a trainerd model with an image size of 416, the masks are very bad in deepstream.

I made the exports with the following commands:

pytorch to onnx:

python .\segment\export.py --data <my custom data path> --weights <my custom pytorch model path> --batch-size 1 --device cpu --simplify --opset 14 --workspace 8 --iou-thres 0.65 --conf-thres 0.35 --include onnx --end2end --trt --cleanup --dynamic-batch --roi-align --img 416

onnx to TensorRT:

/usr/src/tensorrt/bin/trtexec --onnx=<my custom onnx model path> --saveEngine=<my custom trt model path> --workspace=8192 --fp16 --minShapes=images:1x3x416x416 --optShapes=images:1x3x416x416 --maxShapes=images:8x3x416x416 --shapes=images:1x3x416x416

is this correct? or the custom image size is not implemented?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant