Comments (3)
Hi @dumbPy !
Apologies for the late response.
I envision 2 scenarios you can follow:
- You want to have a single
model.dali
(i.e. serialized DALI pipeline) model for all of your YOLO models. In this scenario, since the DALI pipeline is already serialized, your best chance would be to usefn.external_source
and feed the model with the input. Unfortunately, Triton does not make it easy to pass constants specified inconfig.pbtxt
. However, you could work this around. If you set up a Python Backend model before the DALI model, Python model might have knowledge about the shape of the YOLO model. This way, Python model can take the user input and pass it (at the minimal cost) to DALI together with theresize
parameter. - The other option is to keep unserialized DALI model and then deploy it. Obviously, it's not something that can be always convenient. However, if you have a deployment step before running the server and choosing the YOLO input shape, you can parameterize DALI pipeline serialization:
@pipeline_def
def pipe(rx, ry):
inp = fn.external_source(...)
resized = fn.resize(inp, resize_x=rx, resize_y=ry, ...)
return resized
[...]
def serialize():
args = args.parse_args() # argparse in one way to pass the cmdline parameters...
p = pipe(rx=args.rx, ry=args.ry, ...)
p.serialize(...)
I hope this is going to help.
from dali_backend.
Hi @szalpal
thank you, and sorry for my late reply 😅
Yes, Solution 2 is what I ended up going with since it's doesn't take much time to compile, while deploying a model.
Thanks a lot..
from dali_backend.
could you elaborate on option 2 please? do we serialize DALI pipeline on-the-fly in the triton container?
from dali_backend.
Related Issues (20)
- dali backend device parameter setting question HOT 1
- layout parameter to external_source causes assert error HOT 2
- DALI backend not releasing device memory HOT 8
- How to provide mean & stddev to dali.fn.normalize HOT 3
- Error when executing Mixed operator decoders__Image when sending image binary to dali in triton HOT 9
- how to use the numpy data in the DALI HOT 3
- Batching does not improve performance with dali HOT 10
- Can dali backend support default values or optional input? HOT 2
- Unexpected large memory needed for gpu resize HOT 4
- Error in thread 31: nvJPEG error (5): The user-provided allocator functions, for either memory allocation or for releasing the memory, returned a non-zero code. HOT 6
- Cannot compile dali_backend with older version of triton HOT 2
- how to provide batch input data for dali pipeline whicn input shapes [-1] HOT 1
- if I want to crop from different start point, how can I build pipe to do this? HOT 2
- Test issue
- Connecting InputOperator with no explicit inputs to Triton HOT 12
- Could not serialize dali.fn.python_function HOT 1
- when using crop_mirror_normalize func, Output layout "CHW" is slower than "HWC" HOT 5
- dlopen libcuda.so failed!. Please install GPU dirverTraceback (most recent call last): HOT 4
- Prefeed multiple input batches to the inference pipeline HOT 7
- Unable to load numpy module in a DALI backend HOT 3
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 dali_backend.