Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run SVM detector error #20

Open
bosunrunner opened this issue Jul 10, 2020 · 0 comments
Open

Run SVM detector error #20

bosunrunner opened this issue Jul 10, 2020 · 0 comments

Comments

@bosunrunner
Copy link

When I run main.py and set demo =1, It return errors below:
File "E:/PycharmProject/vehicle-detection/main.py", line 37, in
draw_img = pipeline_svm(image)
File "E:/PycharmProject/vehicle-detection/main.py", line 16, in pipeline_svm
output = vehicle_detection_svm(img_undist, img_lane_augmented, lane_info)
File "E:\PycharmProject\vehicle-detection\svm_pipeline.py", line 556, in vehicle_detection_svm
hog_feat)
File "E:\PycharmProject\vehicle-detection\svm_pipeline.py", line 355, in find_cars
test_features = X_scaler.transform(X)
File "D:\DIYPrograms\Anaconda3\lib\site-packages\sklearn\preprocessing_data.py", line 794, in transform
force_all_finite='allow-nan')
File "D:\DIYPrograms\Anaconda3\lib\site-packages\sklearn\base.py", line 436, in _validate_data
self._check_n_features(X, reset=reset)
File "D:\DIYPrograms\Anaconda3\lib\site-packages\sklearn\base.py", line 373, in check_n_features
"The reset parameter is False but there is no "
RuntimeError: The reset parameter is False but there is no n_features_in
attribute. Is this estimator fitted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant