-
Notifications
You must be signed in to change notification settings - Fork 615
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
How to realize letterbox function from YOLOv6 to DALI? #4344
Comments
Without using
but i get: |
Hi @romanmaznikov1 |
@romanmaznikov1 Paste has very limited functionality. It's better to use |
images = fn.resize(images, resize_x= 640, resize_y=352, mode = 'not _larger') |
can you please provide sample code |
@snehashis1997 - please check this answer. We don't support all border modes but |
Thank you |
Two-sided letterbox: One-sided letterbox: |
Hi!
I am using DALI backend nvidia triton inference to preprocessing input images. I want to implement letterbox function in my python file serialize_model.py.
The letterbox function in the YOLOv6 pipeline looks like this:
At the moment my preprocessing looks like this:
Question?
How can i implement a function
cv2.copyMakeBorder
in DALI and does my code look like production?The text was updated successfully, but these errors were encountered: