MarvinTeichmann / KittiSeg

A Kitti Road Segmentation model implemented in tensorflow.
MIT License
910 stars 403 forks source link

regarding running git submodule update --init --recursive #106

Open surfreta opened 7 years ago

surfreta commented 7 years ago

Hi,

I downed the code and run python demo.py --input_image data/demo/demo.png , which gives me the following error message.

Traceback (most recent call last):                                          
  File "demo.py", line 51, in <module>                                      
    from seg_utils import seg_utils as seg                                  
ImportError: No module named seg_utils               

Due to the fact that the development environment is behind the firewall, and I cannot run the git command such as git submodule update --init --recursive . Is this the reason?

zhaogl123 commented 6 years ago

I encounter the same error and found out the reason is the ubuntu 14.04 does not support symlink for network share drive. I put KittiSeg in share drive, but the 'incl' modules use symlink to 'submodules'.

CHWangXing commented 6 years ago

I run demo.py on ubuntu 16.x also meet this problem , how do you deal with it ?

CHWangXing commented 6 years ago

Great thanks for your letter!

At 2018-06-20 14:35:06, "smallboy201613" notifications@github.com wrote:

I find a solution in the internet, which may be helpful (ImportError: No module named seg_utils ): For windows user, save the following code as install_windows.bat and put it in your KittiSeg folder, then run it as admin.

del %~dp0\incl\evaluation del %~dp0\incl\seg_utils del %~dp0\incl\tensorflow_fcn del %~dp0\incl\tensorvision mklink /D %~dp0\incl\evaluation %~dp0\submodules\evaluation mklink /D %~dp0\incl\seg_utils %~dp0\submodules\evaluation\kitti_devkit mklink /D %~dp0\incl\tensorflow_fcn %~dp0\submodules\tensorflow-fcn mklink /D %~dp0\incl\tensorvision %~dp0\submodules\TensorVision\tensorvision echo ok pause

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.