UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
614 Views
Registered: ‎09-28-2018

ml-suite v1.2: ImportError: No module named tools

Jump to solution

I've installed the ml-suite v1.2 (master branch) following the "Getting Started" guide (https://github.com/Xilinx/ml-suite/blob/master/README.md)

 

I cannot compile any deep learning networks, also the ones provided with example designs, because I got the following error: "ImportError: No module named tools". Could you please help me on this ?

 

This is the log:

python xfdnn/tools/compile/bin/xfdnn_compiler_caffe.pyc -n models/caffe/bvlc_googlenet_quantized/GoogleNetWithOutLRN_dummydata_deploy.prototxt -s all -m 4 -i 28 -g network.cmd -w models/bvlc_googlenet_without_lrn/fp32/bvlc_googlenet_without_lrn.caffemodel
['/home/username/ml-suite/xfdnn/tools/compile/bin/parallel', '/home/username/ml-suite/xfdnn/tools/compile/bin/bin', '/home/username/ml-suite/xfdnn/tools/compile/bin/version', '/home/username/ml-suite/xfdnn/tools/compile/bin/weights', '/home/username/ml-suite/xfdnn/tools/compile/bin/optimizations', '/home/username/ml-suite/xfdnn/tools/compile/bin/network', '/home/username/ml-suite/xfdnn/tools/compile/bin/memory', '/home/username/ml-suite/xfdnn/tools/compile/bin/graph', '/home/username/ml-suite/xfdnn/tools/compile/bin/codegeneration', '/home/username/ml-suite/xfdnn/tools/compile/bin', '/home/username/anaconda2/envs/ml-suite/lib/python27.zip', '/home/username/anaconda2/envs/ml-suite/lib/python2.7', '/home/username/anaconda2/envs/ml-suite/lib/python2.7/plat-linux2', '/home/username/anaconda2/envs/ml-suite/lib/python2.7/lib-tk', '/home/username/anaconda2/envs/ml-suite/lib/python2.7/lib-old', '/home/username/anaconda2/envs/ml-suite/lib/python2.7/lib-dynload', '/home/username/.local/lib/python2.7/site-packages', '/home/username/anaconda2/envs/ml-suite/lib/python2.7/site-packages', '/home/username/anaconda2/envs/ml-suite/lib/python2.7/site-packages/pydot_ng-1.0.1.dev0-py2.7.egg']
Traceback (most recent call last):
File "./xfdnn/tools/compile/bin/xfdnn_compiler_caffe.py", line 62, in <module>
ImportError: No module named tools

 

Thank you,

Andrea

0 Kudos
1 Solution

Accepted Solutions
601 Views
Registered: ‎03-04-2018

Re: ml-suite v1.2: ImportError: No module named tools

Jump to solution

before compiling the model, just go through the following step

$ cd /ml-suite/
$ source ./overlaybins/setup.sh

 

now check compiling the model

0 Kudos
2 Replies
602 Views
Registered: ‎03-04-2018

Re: ml-suite v1.2: ImportError: No module named tools

Jump to solution

before compiling the model, just go through the following step

$ cd /ml-suite/
$ source ./overlaybins/setup.sh

 

now check compiling the model

0 Kudos
575 Views
Registered: ‎09-28-2018

Re: ml-suite v1.2: ImportError: No module named tools

Jump to solution

Thank you, this solved the problem.

0 Kudos