Skip to content

Run SVM detector error #20

Description

@bosunrunner

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions