Factory function to get an instance of derived classes of class YOLOv2.
Prototype
std::unique_ptr< YOLOv2 > create(const std::string &model_name, bool need_preprocess=true);
Parameters
The following table lists the create function arguments.
| Type | Name | Description |
|---|---|---|
| const std::string & | model_name | Model name |
| bool | need_preprocess | Normalize with mean/scale or not, default value is true. |
Returns
An instance ofYOLOv2 class.