protest-detection-violence-estimation
protest-detection-violence-estimation copied to clipboard
Model_best.pth.tar is corrupted/damaged file
its not working how to find
+1
python pred.py --img_dir img/ --output_csvpath result.csv --model model_best.pth.tar --cuda
*** loading model from model_best.pth.tar
Traceback (most recent call last):
File "pred.py", line 116, in
File "C:\Users\dee\Anaconda3\lib\tarfile.py", line 1591, in open
return func(name, filemode, fileobj, **kwargs)
File "C:\Users\dee\Anaconda3\lib\tarfile.py", line 1621, in taropen
return cls(name, mode, fileobj, **kwargs)
File "C:\Users\dee\Anaconda3\lib\tarfile.py", line 1484, in init
self.firstmember = self.next()
File "C:\Users\dee\Anaconda3\lib\tarfile.py", line 2289, in next
tarinfo = self.tarinfo.fromtarfile(self)
File "C:\Users\dee\Anaconda3\lib\tarfile.py", line 1094, in fromtarfile
buf = tarfile.fileobj.read(BLOCKSIZE)
File "C:\Users\dee\Anaconda3\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 338: character maps to
not working !!!
I am able to run it on ubuntu 16.04, cuda 9.0, cudnn 7.0.5, python2