Struct darknet::Network
[−]
[src]
pub struct Network { /* fields omitted */ }
Network
Methods
impl Network
[src]
pub fn new<P: AsRef<Path>>(config: P, weight: P) -> Result<Self, Error>
[src]
Create a new network.
pub fn width(&self) -> usize
[src]
Return the width of the network.
pub fn height(&self) -> usize
[src]
Return the height of the network.
pub fn channel(&self) -> i32
[src]
Return the height of the network.
pub fn predict(&self, data: *mut f32) -> *mut f32
[src]
Perform prediction.
pub fn predict_image(&self, image: &Image) -> *mut f32
[src]
Perform prediction.
Trait Implementations
impl Debug for Network
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more