-
Notifications
You must be signed in to change notification settings - Fork 15
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
Unable using either docker file to build my own model #6
Comments
I have fixed one of the problems when I run the ./create_list.sh: .... I space is needed on line 17 i.e. The error now is .. I Installed version3 of openCV cd /usr/lib/x86_64-linux-gnu INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/ and |
Reloaded the whole thing again to make sure amongst the debugging I didn't break something.. |
I am trying to train my own caffee model. I have a pre existing set of images and annotations which were created using labelImg.
I installed the docker file:
sudo docker run -ti --name=simcamsdk -v /home/myname/:/home/myname/ simcam/simcamsdk:v1.0 bash
I copied the images to to:
/SIMCAM_SDK_v1.0.0/train/data/Images_xmls/JPEGImages
and the XML annotations to:
/SIMCAM_SDK_v1.0.0/train/data/Images_xmls/Annotations
Executed: python create_txt.py
This created the appropriate text files
I modified the
/SIMCAM_SDK_v1.0.0/train/data/lmdb_files/labelmap.prototxt
file as such:
item {
name: "WeedyLeft"
label: 0
display_name: "WeedyLeft"
}
item {
name: "WeedyRight"
label: 1
display_name: "WeedyRight"
}
item {
name: "FlankLeft"
label: 2
display_name: "FlankLeft"
}
item {
name: "FlankRight"
label: 3
display_name: "FlankRight"
}
I ran the script: ./create_list.sh
This threw the following error:.....
./create_list.sh: line 17: [: missing
]' Create list for Images_xmls trainval... ./create_list.sh: line 17: [: missing
]'Create list for Images_xmls test...
WARNING: Logging before InitGoogleLogging() is written to STDERR
F0923 08:10:51.719509 63 get_image_size.cpp:110] This tool requires OpenCV; compile with USE_OPENCV.
*** Check failure stack trace: ***
./create_list.sh: line 8: 63 Aborted (core dumped) $caffe_root/build/tools/get_image_size $root_dir $dst_file $bash_dir/$dataset"_name_size.txt"
Then I tried
sudo docker run --runtime=nvidia -ti --name=simcam -v /home/your_username:/home/your_username simcam/caffe-ssd:gpu bash
This would only run with the --runtime=nvidia removed..
The SDK is not in this docker file.. So I started the install
I had to
get-apt install git
git clone https://github.com/simshineaicamera/SIMCAM_SDK.git
cd SIMCAM_SDK
cd SIMCAM_SDK/tools/arm_toolchain
chmod +x cross.v300.install
./cross.v300.install
apt-get install lib32z1
apt-get install lib32stdc++6-4.8-dbg
./install-ncsdk.sh
vi ~/.bashrc
(Added this line to the bottom of the file)
export PATH="/opt/hisi-linux/x86-arm/arm-hisiv300-linux/target/bin:$PATH"
source ~/.bashrc
arm-hisiv300-linux-gcc -v
cd $SIMCAM_SDK/tools/mv_toolchain/model_conversion/
./install-ncsdk.sh
I got the following error...
Movidius Neural Compute Toolkit Setup.
Checking OS and version...
Your current combination of linux distribution and distribution version is not officially supported!
So I have failed with BOTH docker files... sigh... any ideas?
The text was updated successfully, but these errors were encountered: