Closed vhemantrajudevops closed 4 years ago
OSError: Unable to open file (truncated file: eof = 9437184, sblock->base_addr = 0, stored_eof = 223178568)
The checkpoint was not downloaded properly.
rm -rf ~/.NudeNet
from nudenet import NudeClassifier
classifier = NudeClassifier()
should fix this issue.
this is my code
from nudenet import NudeClassifier def image_prediction(): classifier = NudeClassifier() classifier.classify('/home/vhr/Desktop/abc/abc.jpg')
if name == 'main': image_prediction()
error is
ile "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper File "h5py/h5f.pyx", line 88, in h5py.h5f.open OSError: Unable to open file (truncated file: eof = 9437184, sblock->base_addr = 0, stored_eof = 223178568)