This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5708: Caffe-jacinto training

Part Number: AM5708


Hi:

Training according to the following URL  https://github.com/tidsp/caffe-jacinto-models/blob/caffe-0.17/docs/Imagenet_Classification_README.md

Execute the script ./train_imagenet_classification.sh to do the ImageNet training

zhangqianlei@zhangqianlei-S1-Pro-Series:~/TIDL/caffe-jacinto-models-caffe-0.17/scripts$ ./train_imagenet_classification.sh
Logging output to training/imagenet_jacintonet11v2_2019-12-03_18-50-52/train-log_2019-12-03_18-50-52.txt
Traceback (most recent call last):
File "./models/image_classification.py", line 2, in <module>
import caffe
ImportError: No module named caffe
training/imagenet_jacintonet11v2_2019-12-03_18-50-52/sparse
Traceback (most recent call last):
File "./models/image_classification.py", line 2, in <module>
import caffe
ImportError: No module named caffe
training/imagenet_jacintonet11v2_2019-12-03_18-50-52/test
Traceback (most recent call last):
File "./models/image_classification.py", line 2, in <module>
import caffe
ImportError: No module named caffe
training/imagenet_jacintonet11v2_2019-12-03_18-50-52/test_quantize
Traceback (most recent call last):
File "./models/image_classification.py", line 2, in <module>
import caffe
ImportError: No module named caffe
cat: training/imagenet_jacintonet11v2_2019-12-03_18-50-52/test_quantize/deploy.prototxt: 没有那个文件或目录
cat: training/imagenet_jacintonet11v2_2019-12-03_18-50-52/test_quantize/test.prototxt: 没有那个文件或目录
./train_imagenet_classification.sh: 行 114: training/imagenet_jacintonet11v2_2019-12-03_18-50-52/initial/run.sh: 没有那个文件或目录
./train_imagenet_classification.sh: 行 114: training/imagenet_jacintonet11v2_2019-12-03_18-50-52/sparse/run.sh: 没有那个文件或目录
./train_imagenet_classification.sh: 行 114: training/imagenet_jacintonet11v2_2019-12-03_18-50-52/test/run.sh: 没有那个文件或目录
./train_imagenet_classification.sh: 行 114: training/imagenet_jacintonet11v2_2019-12-03_18-50-52/test_quantize/run.sh: 没有那个文件或目录
zhangqianlei@zhangqianlei-S1-Pro-Series:~/TIDL/caffe-jacinto-models-caffe-0.17/scripts$

deploy.prototxt:、test.prototxt、run.sh    Where can these files be found??

How these files are generated ?

I don't understand where these files come from

  • Hello,

    First, regarding your python import issue, did you ever do 'make pycaffe'? If not, you need to build that
    to have access to the python wrapper for caffe.


    After you're sure that has successfully built, try 'echo $PYTHONPATH'. If your python

    folder from caffe is not included, add it through your bashrc file with the following commands:

    # open the bashrc file
    vim ~/.bashrc
    
    # add this line
    export PYTHONPATH=$HOME/Downloads/caffe/python:$PYTHONPATH 
    
    # then source the new environment variable
    source ~/.bashrc

    You should then open your python terminal and type 'import caffe'. If no error is thrown, you are good there.

    As for the missing files, was your build successful? And have you downloaded caffe-jacinto-models repository?

    Thanks,

    Caleb