Python 输入包含NaN、无穷大或对于Django项目上的数据类型(';float64';)太大的值
我试过这个回购协议。我不能使用识别功能 使用Jatson Nano开发Ubuntu 18.04。使用Python3,我尝试了virtualenvPython 输入包含NaN、无穷大或对于Django项目上的数据类型(';float64';)太大的值,python,django,scikit-learn,python-3.6,face-recognition,Python,Django,Scikit Learn,Python 3.6,Face Recognition,我试过这个回购协议。我不能使用识别功能 使用Jatson Nano开发Ubuntu 18.04。使用Python3,我尝试了virtualenv Internal Server Error: /identify/ Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py
Internal Server Error: /identify/
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/exception.py ", line 34, in inner
response = get_response(request)
File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py", li ne 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.6/dist-packages/django/core/handlers/base.py", li ne 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/spoofer/kurulum/app/views.py", line 180, in identify
identify_faces(video_capture)
File "/home/spoofer/kurulum/app/views.py", line 94, in identify_faces
predictions = predict(rgb_frame, model_path="app/facerec/models/trained_mode l.clf")
File "/home/spoofer/kurulum/app/views.py", line 66, in predict
closest_distances = knn_clf.kneighbors(faces_encodings, n_neighbors=1)
File "/usr/local/lib/python3.6/dist-packages/sklearn/neighbors/base.py", line 402, in kneighbors
X = check_array(X, accept_sparse='csr')
File "/usr/local/lib/python3.6/dist-packages/sklearn/utils/validation.py", lin e 542, in check_array
allow_nan=force_all_finite == 'allow-nan')
File "/usr/local/lib/python3.6/dist-packages/sklearn/utils/validation.py", lin e 56, in _assert_all_finite
raise ValueError(msg_err.format(type_err, X.dtype))
ValueError: Input contains NaN, infinity or a value too large for dtype('float64').
导致此错误的代码在哪里?我的意思是:您运行了哪些导致此错误的代码?或者这个错误是什么时候发生的?运行时还是导入包时?在django应用程序中,我尝试按下标识按钮,在终端中看到此错误。识别此代码的按钮链接。屏幕照片可能与