SCNN icon indicating copy to clipboard operation
SCNN copied to clipboard

issue with test.sh #urgent

Open Neha-swan opened this issue 6 years ago • 9 comments

  1. when i run test.sh file my error is ----- ./test.sh: line 5: th: command not found

  2. when i run "Run.sh" file - the error is ------ Run.sh: 31: Run.sh: ./evaluate: not found

Please suggest why is it so, and if some directory has to be made. Do we make the "out0_normal" file, or is it generated ?

Neha-swan avatar May 16 '18 09:05 Neha-swan

@Neha-swan

  1. "th: command not found" This is because you have not install torch successfully. Please install torch following this repo https://github.com/torch/distro
  2. "Run.sh: ./evaluate: not found" This is because you have not compile this project. Please run "make" before you run the script.
  3. The "out0_normal.txt" file is generated.

XingangPan avatar May 16 '18 11:05 XingangPan

Thank you sir, can you please help me with this too

  1. after i installed torch and ran the ./test.sh file from experiments, i got an error saying

These bindings are for CUDNN 5.x (5005 <= cudnn.version > 6000) , while the loaded CuDNN is version: 7005
Are you using an older or newer version of CuDNN? stack traceback: [C]: in function 'error' ...lanajayaratne/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' testLane.lua:4: in main chunk [C]: in function 'dofile' ...atne/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x00405e90

Can you please help me

Also my email is [email protected]

I have a few more queries, can you please share your contact

Neha-swan avatar May 17 '18 12:05 Neha-swan

Also, after i install torch i need to go through TESTING directly from your readme? Also do i have to perform step 2,3 to reach 4? cause i dont have matlab

Neha-swan avatar May 17 '18 12:05 Neha-swan

also the make file gives following error sir

src/evaluate.cpp: In function ‘void visualize(std::string&, std::vector<std::vector<cv::Point_ > >&, std::vector<std::vector<cv::Point_ > >&, std::vector, int)’: src/evaluate.cpp:236:59: error: ‘line’ was not declared in this scope line(img, p_interp[n], p_interp[n+1], color, width_lane); ^ src/evaluate.cpp:271:59: error: ‘line’ was not declared in this scope line(img, p_interp[n], p_interp[n+1], color, width_lane); ^ Makefile:35: recipe for target 'build/src/evaluate.o' failed make: *** [build/src/evaluate.o] Error 1

Neha-swan avatar May 17 '18 12:05 Neha-swan

@Neha-swan find the solution here, issue #23 . BTW, pay attention to that, your opencv should be Opencv (for tools/lane_evaluation), version 2.4.8 (later 2.4.x should also work)..

ytzhao avatar May 18 '18 02:05 ytzhao

Sir, mine is 3.4.1 version can i please have your email ?

Neha-swan avatar May 18 '18 05:05 Neha-swan

CXX/LD evaluate /usr/bin/ld: cannot open output file evaluate: Is a directory collect2: error: ld returned 1 exit status

Makefile:39: recipe for target 'evaluate' failed make: *** [evaluate] Error 1

mkae gives this error

Neha-swan avatar May 18 '18 07:05 Neha-swan

also the make file gives following error sir

src/evaluate.cpp: In function ‘void visualize(std::string&, std::vector<std::vector<cv::Point_ > >&, std::vector<std::vector<cv::Point_ > >&, std::vector, int)’: src/evaluate.cpp:236:59: error: ‘line’ was not declared in this scope line(img, p_interp[n], p_interp[n+1], color, width_lane); ^ src/evaluate.cpp:271:59: error: ‘line’ was not declared in this scope line(img, p_interp[n], p_interp[n+1], color, width_lane); ^ Makefile:35: recipe for target 'build/src/evaluate.o' failed make: *** [build/src/evaluate.o] Error 1

Neha-swan avatar May 21 '18 03:05 Neha-swan

Hello, I am facing below error. I tried to find a solution but could not find one yet. Has someone faced a similar issue? Please note that I am trying to run it through Google Colab and want to know how to run the next step 3 also using Matlab, which is below one, from Google Colab. cd tools/prob2lines matlab -nodisplay -r "main;exit" # or you may simply run main.m from matlab interface

Error log: /content/drive/MyDrive/Project_LaneDetection/SCNN total 13 drwx------ 3 root root 4096 Oct 26 23:42 models drwx------ 2 root root 4096 Oct 26 23:42 predicts drwx------ 2 root root 4096 Oct 26 23:42 pretrained -rw------- 1 root root 458 Oct 27 01:49 test.sh -rw------- 1 root root 463 Oct 26 23:42 train.sh /content/drive/MyDrive/Project_LaneDetection/torch/install/bin/luajit: ...LaneDetection/torch/install/share/lua/5.1/trepl/init.lua:389: module 'cunn' not found:No LuaRocks module found for cunn no field package.preload['cunn'] no file '/root/.luarocks/share/lua/5.1/cunn.lua' no file '/root/.luarocks/share/lua/5.1/cunn/init.lua' no file '/content/drive/MyDrive/Project_LaneDetection/torch/install/share/lua/5.1/cunn.lua' no file '/content/drive/MyDrive/Project_LaneDetection/torch/install/share/lua/5.1/cunn/init.lua' no file './cunn.lua' no file '/content/drive/MyDrive/Project_LaneDetection/torch/install/share/luajit-2.1.0-beta1/cunn.lua' no file '/usr/local/share/lua/5.1/cunn.lua' no file '/usr/local/share/lua/5.1/cunn/init.lua' no file '/root/.luarocks/lib/lua/5.1/cunn.so' no file '/content/drive/MyDrive/Project_LaneDetection/torch/install/lib/lua/5.1/cunn.so' no file './cunn.so' no file '/usr/local/lib/lua/5.1/cunn.so' no file '/usr/local/lib/lua/5.1/loadall.so' stack traceback: [C]: in function 'error' ...LaneDetection/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require' ...e/MyDrive/Project_LaneDetection/SCNN/testLane.lua:3: in main chunk [C]: in function 'dofile' ...tion/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x55f355fdc030

nitvishnoi avatar Oct 27 '23 04:10 nitvishnoi