Factory function to get an instance of derived classes of class YOLOvX
.
Prototype
std::unique_ptr< YOLOvX
> create(const std::string &model_name, xir::Attrs *attrs, bool need_preprocess=true);
Parameters
The following table lists the create
function arguments.
Type | Name | Description |
---|---|---|
const std::string & | model_name | Model name |
xir::Attrs * | attrs | XIR attributes, used to bind different models to the same dpu core |
bool | need_preprocess | Normalize with mean/scale or not, default value is true. |
Returns
An instance ofYOLOvX
class.