I tried to modify detector. c to get the boxs location. After the modification, I deleted all . o files under obj and libdarknet. o file , and entered "make" in the terminal to try to recompile. But an error occurred under the adapter notebook like that:
OSError Traceback (most recent call last)
in ()
16 from qnn import utils
17 sys.path.append("/opt/darknet/python/")
---> 18 from darknet import *
19
20 from matplotlib import pyplot as plt
/opt/darknet/python/darknet.py in ()
37
38 #lib = CDLL("/home/pjreddie/documents/darknet/libdarknet.so", RTLD_GLOBAL)
---> 39 lib = CDLL("/opt/darknet/libdarknet.so", RTLD_GLOBAL)
40 lib.network_width.argtypes = [c_void_p]
41 lib.network_width.restype = c_int
/usr/lib/python3.6/ctypes/__init__.py in __init__(self, name, mode, handle, use_errno, use_last_error)
346
347 if handle is None:
--> 348 self._handle = _dlopen(self._name, mode)
349 else:
350 self._handle = handle
OSError: /opt/darknet/libdarknet.so: file too short
Can you help me? Thank you very much.
I tried to modify detector. c to get the boxs location. After the modification, I deleted all . o files under obj and libdarknet. o file , and entered "make" in the terminal to try to recompile. But an error occurred under the adapter notebook like that:
OSError Traceback (most recent call last)