mirror of https://github.com/pjreddie/darknet.git
Merge 7bbcc9a8dc
into f6afaabcdf
This commit is contained in:
commit
874bb51ede
|
@ -1,6 +1,7 @@
|
|||
from ctypes import *
|
||||
import math
|
||||
import random
|
||||
import os
|
||||
|
||||
def sample(probs):
|
||||
s = sum(probs)
|
||||
|
@ -45,7 +46,7 @@ class METADATA(Structure):
|
|||
|
||||
|
||||
#lib = CDLL("/home/pjreddie/documents/darknet/libdarknet.so", RTLD_GLOBAL)
|
||||
lib = CDLL("libdarknet.so", RTLD_GLOBAL)
|
||||
lib = CDLL(os.path.join(os.getcwd(), "libdarknet.so"), RTLD_GLOBAL)
|
||||
lib.network_width.argtypes = [c_void_p]
|
||||
lib.network_width.restype = c_int
|
||||
lib.network_height.argtypes = [c_void_p]
|
||||
|
|
Loading…
Reference in New Issue