Skip to content

Commit 9d37862

Browse files
committed
Export the width and height network properties.
1 parent 41a87c4 commit 9d37862

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/darknet/py/network.pyx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ cdef class Network:
7272
def shape(self):
7373
return dn.network_width(self._c_network), dn.network_height(self._c_network)
7474

75+
@property
76+
def width(self):
77+
return dn.network_width(self._c_network)
78+
79+
@property
80+
def height(self):
81+
return dn.network_height(self._c_network)
82+
7583
@property
7684
def depth(self):
7785
return dn.network_depth(self._c_network)

0 commit comments

Comments
 (0)