mirror of https://github.com/AlexeyAB/darknet.git
darknet.py change libdarknet.so to darknet.so
This commit is contained in:
parent
89c11f83ed
commit
b34c913d2e
|
@ -118,7 +118,7 @@ if os.name == "nt":
|
||||||
lib = CDLL(winGPUdll, RTLD_GLOBAL)
|
lib = CDLL(winGPUdll, RTLD_GLOBAL)
|
||||||
print("Environment variables indicated a CPU run, but we didn't find `"+winNoGPUdll+"`. Trying a GPU run anyway.")
|
print("Environment variables indicated a CPU run, but we didn't find `"+winNoGPUdll+"`. Trying a GPU run anyway.")
|
||||||
else:
|
else:
|
||||||
lib = CDLL("./libdarknet.so", RTLD_GLOBAL)
|
lib = CDLL("./darknet.so", RTLD_GLOBAL)
|
||||||
lib.network_width.argtypes = [c_void_p]
|
lib.network_width.argtypes = [c_void_p]
|
||||||
lib.network_width.restype = c_int
|
lib.network_width.restype = c_int
|
||||||
lib.network_height.argtypes = [c_void_p]
|
lib.network_height.argtypes = [c_void_p]
|
||||||
|
|
|
@ -118,7 +118,7 @@ if os.name == "nt":
|
||||||
lib = CDLL(winGPUdll, RTLD_GLOBAL)
|
lib = CDLL(winGPUdll, RTLD_GLOBAL)
|
||||||
print("Environment variables indicated a CPU run, but we didn't find `"+winNoGPUdll+"`. Trying a GPU run anyway.")
|
print("Environment variables indicated a CPU run, but we didn't find `"+winNoGPUdll+"`. Trying a GPU run anyway.")
|
||||||
else:
|
else:
|
||||||
lib = CDLL("./libdarknet.so", RTLD_GLOBAL)
|
lib = CDLL("./darknet.so", RTLD_GLOBAL)
|
||||||
lib.network_width.argtypes = [c_void_p]
|
lib.network_width.argtypes = [c_void_p]
|
||||||
lib.network_width.restype = c_int
|
lib.network_width.restype = c_int
|
||||||
lib.network_height.argtypes = [c_void_p]
|
lib.network_height.argtypes = [c_void_p]
|
||||||
|
|
Loading…
Reference in New Issue