Can't run classifier.py

101 views
Skip to first unread message

Sivaramakrishnan Nageswaran

unread,
Sep 26, 2019, 1:07:44 PM9/26/19
to CMU-OpenFace
Hi,
   I installed openface on my GPU machine (having Ubuntu 16.04) as mentioned in the following link : https://cmusatyalab.github.io/openface/setup/#installing-open-face-using-conda-osx-and-gnulinux). After installation, when I run the following command : ./demos/classifier.py infer models/openface/celeb-classifier.nn4.small2.v1.pkl ./images/examples/carell.jpg, am getting the following error.

(openface) user1@user1-GPU3:~/facereco/openface$ ./demos/classifier.py infer models/openface/celeb-classifier.nn4.small2.v1.pkl ./images/examples/carell.jpg
/home/user1/miniconda3/envs/openface/lib/python2.7/site-packages/sklearn/base.py:253: UserWarning: Trying to unpickle estimator LabelEncoder from version pre-0.18 when using version 0.20.3. This might lead to breaking code or invalid results. Use at your own risk.
  UserWarning)
Traceback (most recent call last):
  File "./demos/classifier.py", line 199, in <module>
    infer(args, args.multi)
  File "./demos/classifier.py", line 103, in infer
    (le, clf) = pickle.load(f)
  File "/home/user1/miniconda3/envs/openface/lib/python2.7/pickle.py", line 1384, in load
    return Unpickler(file).load()
  File "/home/user1/miniconda3/envs/openface/lib/python2.7/pickle.py", line 864, in load
    dispatch[key](self)
  File "/home/user1/miniconda3/envs/openface/lib/python2.7/pickle.py", line 1096, in load_global
    klass = self.find_class(module, name)
  File "/home/user1/miniconda3/envs/openface/lib/python2.7/pickle.py", line 1130, in find_class
    __import__(module)
ImportError: No module named grid_search

Kindly let me know how I should proceed further.
Thanks
-Siva

Reply all
Reply to author
Forward
0 new messages