Open tylerlindell opened 6 years ago
My guess is that you ran out of system memory.
I was thinking that too but I have 24G RAM and the file size is zero.
since the file is empty, maybe np.memmap
is having a hard time with the mode='r'
(mode set to read-only) Check out this answer on SO: ValueError on mmap - Python
this might work if the file is empty:
# darkflow/darkflow/utils/loader.py
# weights_walker
# line 109
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
if self.size > 0:
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
else:
self.eof = True
return
Hey, friend. I have a similar problem with you in pycharm. Do you know how to solve this issue. Thank you.
I had this error message once, it was because i sent an image file .CR2 into mmap(), rather than the file crated using np.memmap(). The error about memory was just confusing for me.
getting this error when trying to run
python flow --model cfg/tiny-yolo.cfg --load bin/yolo-tiny.weights --demo videofile.avi --gpu 1.0
the full error follows:
Any help is great!
running on the following versions