Closed Bycqg closed 3 months ago
Hi @Bycqg There is no way to set operators' arguments through the config.pbtxt file. Could you tell me more about the context of what you want to achieve and why do you need a config at all, instead of relying on auto-configuration?
Hi @banasraf I have many classification models, but their preprocessing is almost the same. The only difference lies in the mean values used during normalization, such as mean_vals being [109.3, 108.2, 107.2], [111.3, 128.2, 137.2], etc. If parameters can be passed in the config.pbtxt, then I only need to configure one DALI model and pass in different mean_vals for different classification models.
I see. Currently, there is no way to pass any arbitrary arguments from config to DALI models. The approach I would suggest is duplicating the model definition itself (as a Python file) and changing necessary values in each model. You don't have to serialize those models and usually you don't have to provide any configuration, so duplicating the code shouldn't impose too much of overhead.
thank you
Describe the question.
Can I set a parameter externally (e.g., in the config.pbtxt file) to replace the default values previously set in model.dali (i.e., [128.0, 128.0, 128.0] in the code) with a new value (e.g., mean=[115.0, 116.0, 118.0])?
If so, how can I do it? It would be best if you could provide an example or documentation.
Check for duplicates