notAI-tech / NudeNet

Lightweight nudity detection
https://nudenet.notai.tech/
GNU Affero General Public License v3.0
1.76k stars 343 forks source link

i am just trying to execute a sample code but getting this error , everytime i run it., i did this using ubuntu system, run the same code in macbook pro 2016 ,the code is fine and worked also, but in ubuntu getting error #36

Closed vhemantrajudevops closed 4 years ago

vhemantrajudevops commented 4 years ago

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)

bedapudi6788 commented 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.