Open minsuk-sung opened 4 years ago
@Zrufy Thanks a lot, I will try
@Zrufy It worked perfectly.
Just to elaborate, change the loader.py file. When I ran it on google colab, after globally installing darkflow, you can find it on - /usr/local/lib/python3.6/dist-packages/darkflow/utils/loader.py
Furthermore, in walk function
class weights_walker(object):
"""incremental reader of float32 binary files"""
def __init__(self, path):
self.eof = False # end of file
self.path = path # current pos
if path is None:
self.eof = True
return
else:
self.size = os.path.getsize(path)# save the path
major, minor, revision, seen = np.memmap(path,
shape = (), mode = 'r', offset = 0,
dtype = '({})i4,'.format(4))
self.transpose = major > 1000 or minor > 1000
self.offset = 16 + 44948600 - 44138056
Make the change according to the error you are facing. In the last line as shown in the above block. Hope it helps.
if you found the answer useful, help me on stackoverflow. So that those who have the same problem will immediately find the solution.
Is YOLO weights changed before?