pub fn read_net_from_darknet(cfg_file: &str, darknet_model: &str) -> Result<Net>
Expand description
Reads a network model stored in Darknet model files.
§Parameters
- cfgFile: path to the .cfg file with text description of the network architecture.
- darknetModel: path to the .weights file with learned network.
§Returns
Network object that ready to do forward, throw an exception in failure cases.
§C++ default parameters
- darknet_model: String()