我在Ubuntu 16.04上的python(anaconda 4.2)中获得了深入的学习代码。它基本上可以检测视频中的广告框架。当试图运行它时,我收到一个错误。我该如何解决?我自己不是蟒蛇/蟒蛇人。
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import time, cv2, librosa
import skvideo.io
import numpy as np
import tensorflow as tf
import subprocess, os, glob
from sklearn.externals import joblib
//...........
clf_trained = joblib.load('/home/myuser/Desktop/Detection_module/trainsvm_mfcc.pkl')
//...........
以下是错误:
/home/myuser/anaconda3/lib/python3.5/site-packages/skvideo/__init__.py:356: UserWarning: avconv/avprobe not found in path:
warnings.warn("avconv/avprobe not found in path: " + str(path), UserWarning)
1 -th video being processed, /football_711.mp4
Traceback (most recent call last):
File "/home/myuser/Desktop/Detection_module/detection_main.py", line 21, in <module>
Ad_module_textfast_final_backup.metadata_creation(cur_video_name)
File "/home/myuser/Desktop/Detection_module/Ad_module_textfast_final_backup.py", line 105, in metadata_creation
final_label_list, pred_labels_list= label_prediction( mfcc_list, num_frames= 3)
File "/home/myuser/Desktop/Detection_module/Ad_module_textfast_final_backup.py", line 28, in label_prediction
clf_trained = joblib.load('/home/myuser/Desktop/Detection_module/trainsvm_mfcc.pkl')
File "/home/myuser/anaconda3/lib/python3.5/site-packages/sklearn/externals/joblib/numpy_pickle.py", line 459, in load
obj = unpickler.load()
File "/home/myuser/anaconda3/lib/python3.5/pickle.py", line 1039, in load
dispatch[key[0]](self)
File "/home/myuser/anaconda3/lib/python3.5/pickle.py", line 1334, in load_global
klass = self.find_class(module, name)
File "/home/myuser/anaconda3/lib/python3.5/pickle.py", line 1388, in find_class
return getattr(sys.modules[module], name)
AttributeError: module 'sklearn.externals.joblib.numpy_pickle' has no attribute 'NumpyArrayWrapper'