matthewearl / deep-anpr

Using neural networks to build an automatic number plate recognition system
MIT License
1.85k stars 697 forks source link

detect.py issue - EOFError on 'weights.npz' file #117

Open javidsch opened 5 years ago

javidsch commented 5 years ago

python detect.py in.jpg weights.npz out.jpg

Traceback (most recent call last): File "detect.py", line 183, in param_vals = [f[n] for n in sorted(f.files, key=lambda s: int(s[4:]))] File "detect.py", line 183, in param_vals = [f[n] for n in sorted(f.files, key=lambda s: int(s[4:]))] File "/Users/javid/anaconda3/lib/python3.7/site-packages/numpy/lib/npyio.py", line 251, in getitem pickle_kwargs=self.pickle_kwargs) File "/Users/javid/anaconda3/lib/python3.7/site-packages/numpy/lib/format.py", line 690, in read_array data = _read_bytes(fp, read_size, "array data") File "/Users/javid/anaconda3/lib/python3.7/site-packages/numpy/lib/format.py", line 829, in _read_bytes r = fp.read(size - len(data)) File "/Users/javid/anaconda3/lib/python3.7/zipfile.py", line 899, in read data = self._read1(n) File "/Users/javid/anaconda3/lib/python3.7/zipfile.py", line 969, in _read1 data = self._read2(n) File "/Users/javid/anaconda3/lib/python3.7/zipfile.py", line 1002, in _read2 raise EOFError EOFError

Mac/Anaconda/Python 3.7.3