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

Import module 'seg_utils' Error #17

Closed
colorfulCloud opened this issue Mar 3, 2017 · 16 comments
Closed

Import module 'seg_utils' Error #17

colorfulCloud opened this issue Mar 3, 2017 · 16 comments

Comments

@colorfulCloud
Copy link

I followed the instructions, and downloaded vgg16.npy and data_road.zip successfully, but when I run the command: python demo.py --input_image data/demo/demo.png --output_image data/demo/demo_seg.png
I got the error message as following:
Traceback (most recent call last):
File "demo.py", line 51, in
from seg_utils import seg_utils as seg
ImportError: No module named 'seg_utils'
I use Anaconda3 (64-bit)/Windows 7

@MarvinTeichmann
Copy link
Owner

Seg_utils is a linux symlink defined here. Make sure, that anaconda finds the folder incl and is able to import all its subfolders referenced by the symlinks there.

The code runs under linux out of the box. I have not tested the code using windows. So you might run into more errors. Most deep learning code is our there is written and tested under linux. So if you are planning to do some deep learning, I would strongly recommend learning to use linux. It is nor that hard!

Btw. Even my colleagues at Microsoft are using Linux for there deep learning infrastructure. So I recommend following the choices of the market leader when it comes to operating systems ;).

@jiao0805
Copy link

Have you solved this problem under Win7?
I use python 3.5 and tensorflow 1.0 gpu version under win7.

@baidut
Copy link

baidut commented Mar 14, 2017

For windows user, save the following code as install_windows.bat and put it in your KittiSeg folder, then run it as admin.
Also please make sure you initialized all your submodules with git submodule update --init --recursive

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

image

It will create the symbolic links for you, as follows

image

@MarvinTeichmann
Copy link
Owner

Let me know, whether the rest of the code works fine under Windows.

@baidut
Copy link

baidut commented Mar 15, 2017

The demo works fine under Window 10 TensorFlow 1.0 cuda8.0 cudnn v5.1 python3.5
python demo.py --input_image data/demo/demo.png

I will report the issue when encountered.

@jhtao1860
Copy link

to baidut,大牛!

@jhtao1860
Copy link

two main issues(1:'seg_utils' Error ;2:'RUNS/KittiSeg_pretrained.zip' ) I met are solved.
Thanks!

The demo works fine under
Window 10
TensorFlow 1.0
only CPU
python3.5(this version can install TensorFlow 1.0 very easy )
python demo.py --input_image data/demo/demo.png

@MahmoudYounes
Copy link

MahmoudYounes commented Apr 15, 2017

I am using debian 8 and I have the same problem. I run using the terminal:
python demo.py --input_image data/demo/demo.png

is there anything more I should do ?

@MarvinTeichmann
Copy link
Owner

Seg_utils is a linux symlink defined here. Make sure, that your system finds the symlink and that python includes it as path of its path.

@shivam-kotwalia
Copy link

shivam-kotwalia commented Apr 24, 2017

(Reporting Issue ) It is not even working on Ubuntu 16, python 2.7, and Tensorflow 1.0
I even ran git submodule update --init --recursive after Cloning KittiSeg

@zishanahmed08
Copy link

Doesnt work on my configuration - python 3.5 , tensorflow 1.0 cpu only, win7.
Already tried the install_windows.bat file by baidut.

@xiangweirs
Copy link

Dear @baidut @MarvinTeichmann @jhtao1860
When I run demo.py, it doesn't work and display error information as blow:
2017-07-08 12:14:53,252 INFO No environment variable 'TV_PLUGIN_DIR' found. Set to 'C:\Users\dell/tv-plugins'.
2017-07-08 12:14:53,252 INFO No environment variable 'TV_STEP_SHOW' found. Set to '50'.
2017-07-08 12:14:53,252 INFO No environment variable 'TV_STEP_EVAL' found. Set to '250'.
2017-07-08 12:14:53,252 INFO No environment variable 'TV_STEP_WRITE' found. Set to '1000'.
2017-07-08 12:14:53,252 INFO No environment variable 'TV_MAX_KEEP' found. Set to '10'.
2017-07-08 12:14:53,252 INFO No environment variable 'TV_STEP_STR' found. Set to 'Step {step}/{total_steps}: loss = {loss_value:.2f}; lr = {lr_value:.2e}; {sec_per_batch:.3f} sec (per Batch); {examples_per_sec:.1f} imgs/sec'.
Traceback (most recent call last):
ArgumentError: argument --gpus: conflicting option string: --gpus

what Should do to work it out?
Thanks very much!

@zhaojingji
Copy link

@jiao0805 Have you solved this problem(ImportError: No module named 'seg_utils'), ask for help, thank you,The solution baidut provides, I have tried it,but no work。

@louxy126
Copy link

louxy126 commented Oct 9, 2018

Hi,@xiangweirs
i meet the same problem with you,did you fixed it?

@Timmmmmms
Copy link

For windows user, save the following code as install_windows.bat and put it in your KittiSeg folder, then run it as admin.
Also please make sure you initialized all your submodules with git submodule update --init --recursive

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

image

It will create the symbolic links for you, as follows

image

cannot do this

image

@baidut
Copy link

baidut commented Dec 3, 2018

cannot do this

Please run it as admin @Timmmmmms

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