mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Added include/darknet.h
This commit is contained in:
@ -75,7 +75,7 @@ class METADATA(Structure):
|
||||
|
||||
|
||||
#lib = CDLL("/home/pjreddie/documents/darknet/libdarknet.so", RTLD_GLOBAL)
|
||||
#lib = CDLL("darknet.so", RTLD_GLOBAL)
|
||||
#lib = CDLL("libdarknet.so", RTLD_GLOBAL)
|
||||
hasGPU = True
|
||||
if os.name == "nt":
|
||||
cwd = os.path.dirname(__file__)
|
||||
@ -119,7 +119,7 @@ if os.name == "nt":
|
||||
lib = CDLL(winGPUdll, RTLD_GLOBAL)
|
||||
print("Environment variables indicated a CPU run, but we didn't find `"+winNoGPUdll+"`. Trying a GPU run anyway.")
|
||||
else:
|
||||
lib = CDLL("./darknet.so", RTLD_GLOBAL)
|
||||
lib = CDLL("./libdarknet.so", RTLD_GLOBAL)
|
||||
lib.network_width.argtypes = [c_void_p]
|
||||
lib.network_width.restype = c_int
|
||||
lib.network_height.argtypes = [c_void_p]
|
||||
|
Reference in New Issue
Block a user