You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the automatic_model_training.ipynb locally, I've come across a problem with the training script --train_model.
I was able to solve this by adding + to the mmap_mode.
File "openwakeword/openwakeword/train.py", line 845, in
batch_generator = mmap_batch_generator(
File "/home/mmajek/projects/internal/rai/openwakeword/openwakeword/data.py", line 788, in init
self.data = {label: np.load(fl, mmap_mode='r') for label, fl in data_files.items()}
File "/home/mmajek/projects/internal/rai/openwakeword/openwakeword/data.py", line 788, in
self.data = {label: np.load(fl, mmap_mode='r') for label, fl in data_files.items()}
File "/home/mmajek/.cache/pypoetry/virtualenvs/rai-qH6Oly3A-py3.10/lib/python3.10/site-packages/numpy/lib/npyio.py", line 453, in load
return format.open_memmap(file, mode=mmap_mode,
File "/home/mmajek/.cache/pypoetry/virtualenvs/rai-qH6Oly3A-py3.10/lib/python3.10/site-packages/numpy/lib/format.py", line 945, in open_memmap
marray = numpy.memmap(filename, dtype=dtype, shape=shape, order=order,
File "/home/mmajek/.cache/pypoetry/virtualenvs/rai-qH6Oly3A-py3.10/lib/python3.10/site-packages/numpy/core/memmap.py", line 268, in new
mm = mmap.mmap(fid.fileno(), bytes, access=acc, offset=start)
ValueError: mmap length is greater than file size
The text was updated successfully, but these errors were encountered:
When running the automatic_model_training.ipynb locally, I've come across a problem with the training script --train_model.
I was able to solve this by adding + to the mmap_mode.
env:
python3.10
Stack trace
File "openwakeword/openwakeword/train.py", line 845, in
batch_generator = mmap_batch_generator(
File "/home/mmajek/projects/internal/rai/openwakeword/openwakeword/data.py", line 788, in init
self.data = {label: np.load(fl, mmap_mode='r') for label, fl in data_files.items()}
File "/home/mmajek/projects/internal/rai/openwakeword/openwakeword/data.py", line 788, in
self.data = {label: np.load(fl, mmap_mode='r') for label, fl in data_files.items()}
File "/home/mmajek/.cache/pypoetry/virtualenvs/rai-qH6Oly3A-py3.10/lib/python3.10/site-packages/numpy/lib/npyio.py", line 453, in load
return format.open_memmap(file, mode=mmap_mode,
File "/home/mmajek/.cache/pypoetry/virtualenvs/rai-qH6Oly3A-py3.10/lib/python3.10/site-packages/numpy/lib/format.py", line 945, in open_memmap
marray = numpy.memmap(filename, dtype=dtype, shape=shape, order=order,
File "/home/mmajek/.cache/pypoetry/virtualenvs/rai-qH6Oly3A-py3.10/lib/python3.10/site-packages/numpy/core/memmap.py", line 268, in new
mm = mmap.mmap(fid.fileno(), bytes, access=acc, offset=start)
ValueError: mmap length is greater than file size
The text was updated successfully, but these errors were encountered: