SullyChen / Autopilot-TensorFlow

A TensorFlow implementation of this Nvidia paper: https://arxiv.org/pdf/1604.07316.pdf with some changes
MIT License
1.25k stars 425 forks source link

Error occur in run.py line21:call("clear") #17

Closed linrio closed 7 years ago

linrio commented 7 years ago

I follow Use python run.pyto run the model on a live webcam feed . platform: Win10. python version:3.5 tesorflow version:1.0 Then it occured the error:

Traceback (most recent call last):
  File "G:/codes/tensorflow2/Autopilot-TensorFlow/run.py", line 21, in <module>
    call("clear")
  File "D:\Program Files (x86)\Miniconda3\lib\subprocess.py", line 557, in call
    with Popen(*popenargs, **kwargs) as p:
  File "D:\Program Files (x86)\Miniconda3\lib\subprocess.py", line 947, in __init__
    restore_signals, start_new_session)
  File "D:\Program Files (x86)\Miniconda3\lib\subprocess.py", line 1224, in _execute_child
    startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

What happen?

numpad0 commented 7 years ago

I had that too. That line is safe to remove so that's the easiest fix. This is happening because Windows Command Prompt uses "cls" rather than "clear". IIRC replacing didn't work but that line is just cosmetic anyway.

linrio commented 7 years ago

@numpad0 Ok, I have noted line call("clear"), now the errror disappears.