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

Many errors #6

Open
pirate-lofy opened this issue Jun 20, 2020 · 0 comments
Open

Many errors #6

pirate-lofy opened this issue Jun 20, 2020 · 0 comments

Comments

@pirate-lofy
Copy link

pirate-lofy commented Jun 20, 2020

when I use this command python3 P5pipeline.py test_images/test1.jpg output_images/test1.jpg i get

Camera Calibration data restored from camera_cal/calibrationdata.p
image processing test_images/test1.jpg...
Traceback (most recent call last):
  File "P5pipeline.py", line 229, in <module>
    imageout = process_image(image)
  File "P5pipeline.py", line 115, in process_image
    image, roadMgr, diagMgr, scrType=scrType, debug=debug, resized=resized)
  File "P5pipeline.py", line 63, in process_road_image
    roadMgr.findLanes(img, resized=resized)
  File "/media/bignrz/World/projects/self driving car/SDC-P5/p5lib/roadManager.py", line 493, in findLanes
    self.vehicleScan, self.roadGrid)
  File "/media/bignrz/World/projects/self driving car/SDC-P5/p5lib/vehicleDetection.py", line 321, in detectVehicles
    hist_bins=32, hist_range=(0, 256))
  File "/media/bignrz/World/projects/self driving car/SDC-P5/p5lib/vehicleDetection.py", line 159, in extract_features
    cell_per_block, vis=False, feature_vec=True)
  File "/media/bignrz/World/projects/self driving car/SDC-P5/p5lib/vehicleDetection.py", line 99, in get_hog_features
    feature_vector=feature_vec)
TypeError: hog() got an unexpected keyword argument 'visualise'

and when using python3 P5pipeline.py v.mp4 v_out.mp4 (the same as #4) I get

Camera Calibration data restored from camera_cal/calibrationdata.p
video processing v.mp4...
Traceback (most recent call last):
  File "P5pipeline.py", line 238, in <module>
    video_clip = clip1.fl_image(process_image)
  File "/home/bignrz/.local/lib/python3.7/site-packages/moviepy/video/VideoClip.py", line 490, in fl_image
    return self.fl(lambda gf, t: image_func(gf(t)), apply_to)
  File "/home/bignrz/.local/lib/python3.7/site-packages/moviepy/Clip.py", line 136, in fl
    newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
  File "</home/bignrz/anaconda3/lib/python3.7/site-packages/decorator.py:decorator-gen-61>", line 2, in set_make_frame
  File "/home/bignrz/.local/lib/python3.7/site-packages/moviepy/decorators.py", line 14, in outplace
    f(newclip, *a, **k)
  File "/home/bignrz/.local/lib/python3.7/site-packages/moviepy/video/VideoClip.py", line 644, in set_make_frame
    self.size = self.get_frame(0).shape[:2][::-1]
  File "</home/bignrz/anaconda3/lib/python3.7/site-packages/decorator.py:decorator-gen-11>", line 2, in get_frame
  File "/home/bignrz/.local/lib/python3.7/site-packages/moviepy/decorators.py", line 89, in wrapper
    return f(*new_a, **new_kw)
  File "/home/bignrz/.local/lib/python3.7/site-packages/moviepy/Clip.py", line 93, in get_frame
    return self.make_frame(t)
  File "/home/bignrz/.local/lib/python3.7/site-packages/moviepy/Clip.py", line 136, in <lambda>
    newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
  File "/home/bignrz/.local/lib/python3.7/site-packages/moviepy/video/VideoClip.py", line 490, in <lambda>
    return self.fl(lambda gf, t: image_func(gf(t)), apply_to)
  File "P5pipeline.py", line 115, in process_image
    image, roadMgr, diagMgr, scrType=scrType, debug=debug, resized=resized)
  File "P5pipeline.py", line 63, in process_road_image
    roadMgr.findLanes(img, resized=resized)
  File "/media/bignrz/World/projects/self driving car/SDC-P5/p5lib/roadManager.py", line 361, in findLanes
    self.addLaneLeft(curLane)
  File "/media/bignrz/World/projects/self driving car/SDC-P5/p5lib/roadManager.py", line 172, in addLaneLeft
    self.curImgFtr, curLane, faint=faint, resized=self.resized)
  File "/media/bignrz/World/projects/self driving car/SDC-P5/p5lib/line.py", line 102, in createPolyFitLeft
    rightLane.lines[rightLane.right].currentFit)
  File "<__array_function__ internals>", line 6, in polysub
  File "/home/bignrz/anaconda3/lib/python3.7/site-packages/numpy/lib/polynomial.py", line 842, in polysub
    val = a1 - a2
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'

I tried on both python3.7, python 3.6 and python3.5 and do not know what is the problem

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