Home > other >  Could you tell me what the problem TypeError: endswith first arg must be bytes or a tuple of bytes,
Could you tell me what the problem TypeError: endswith first arg must be bytes or a tuple of bytes,

Time:09-21

(base) E: \ ericyang3721 - headpose_forensic - 187 ea2fc8967> python run_test. Py
D: \ Anaconda3 \ lib \ site - packages \ sklearn \ utils \ deprecation py: 144: FutureWarning: The sklearn. SVM. The classes module is deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes/functi
Ons home should be imported from sklearn. SVM. Anything that always be imported from sklearn. SVM is now part of the private API.
Warnings. Warn (message, FutureWarning)
D: \ Anaconda3 \ lib \ site - packages \ sklearn \ base py: 318: UserWarning: Trying to unpickled estimator SVC from version pre - 0.18 the when using version 0.22.2. Post1. This took the lead to product code or invalid results. Use the at
Your own risk.
UserWarning)
D: \ Anaconda3 \ lib \ site - packages \ sklearn \ utils \ deprecation py: 144: FutureWarning: The sklearn. The preprocessing, The data module is deprecated in version 0.22 and will be removed in version 0.24. The corresponding classes/
Functions provides home should be imported from sklearn. Preprocessing. Anything that always be imported from sklearn. The preprocessing is now part of the private API.
Warnings. Warn (message, FutureWarning)
D: \ Anaconda3 \ lib \ site - packages \ sklearn \ base py: 318: UserWarning: Trying to unpickled estimator StandardScaler from version pre - 0.18 the when using version 0.22.2. Post1. This took the lead to product code or invalid resul
Ts. Use at your own risk.
UserWarning)
____________________
Testing: 00031 JPG
Traceback (the most recent call last) :
File "run_test. Py," line 47, in
The main (args)
The File "run_test. Py", line 27, the in the main
Proba, optout=exam_img (args, f_path face_inst, classifier, scaler)
The File "E: \ ericyang3721 - headpose_forensic - 187 ea2fc8967 \ forensic_test py", 34, the line in exam_img
Prob=examine_a_frame (args, img, face_inst, classifier, scaler, pose_estimate)
The File "E: \ ericyang3721 - headpose_forensic - 187 ea2fc8967 \ forensic_test py", 57, line in examine_a_frame
Prob=examine_a_face (args, landmark, classifier, scaler, pose_estimator)
The File "E: \ ericyang3721 - headpose_forensic - 187 ea2fc8967 \ forensic_test py", line 76, in examine_a_face
Scaled_feature=scaler. Transform (feature)
The File "D: \ Anaconda3 \ lib \ site - packages \ sklearn \ preprocessing \ _data while forming py", line 790, the transform in
Check_is_fitted (self)
The File "D: \ Anaconda3 \ lib \ site - packages \ sklearn \ utils \ validation py", line 963, in check_is_fitted
For attrs=[v v in vars (estimator)
The File "D: \ Anaconda3 \ lib \ site - packages \ sklearn \ utils \ validation py", line 964, in the
If v.e ndswith (" _ ") and not v. tartswith (" __ ")]
TypeError: endswith first arg must be bytes or a tuple of bytes, not the STR
  • Related