Imaging solutions with Free Software & Open Hardware

Who's online

There are currently 0 users online.

02/21/20 [imagej-elphel][lwir] by AndreyFilippov: working on dual-modal calibration

Elphel GIT logs - Fri, 02/21/2020 - 22:28
AndreyFilippov committed changes to the Elphel git project :
working on dual-modal calibration

02/21/20 [imagej-elphel][lwir] by Andrey Filippov: corrected wait time for short movements

Elphel GIT logs - Fri, 02/21/2020 - 22:25
Andrey Filippov committed changes to the Elphel git project :
corrected wait time for short movements

02/21/20 [imagej-elphel][lwir] by Andrey Filippov: limiting number of frames

Elphel GIT logs - Fri, 02/21/2020 - 22:24
Andrey Filippov committed changes to the Elphel git project :
limiting number of frames

02/21/20 [imagej-elphel][lwir] by Andrey Filippov: limiting number of consecutive frames

Elphel GIT logs - Fri, 02/21/2020 - 22:23
Andrey Filippov committed changes to the Elphel git project :
limiting number of consecutive frames

Feeding Tensorflow from GPU

Wiki Recent Changes - Thu, 02/20/2020 - 11:48

‎For Java

← Older revision Revision as of 18:48, 20 February 2020 (One intermediate revision by the same user not shown)Line 113: Line 113:    cd ..   cd ..    ./run_tf_elphel.sh 1</font>   ./run_tf_elphel.sh 1</font>  +  +==For Java==  +* https://www.tensorflow.org/install/lang_java which leads to a more detailed:  +* https://github.com/tensorflow/tensorflow/blob/master/tensorflow/java/README.md  +  +In short, to Build TF for Java from source:  + <font size=2>./configure  + bazel build --config opt \  +  //tensorflow/java:tensorflow \  +  //tensorflow/java:libtensorflow_jni</font> Oleg

02/17/20 [imagej-elphel][lwir] by AndreyFilippov: restored LWIR_ACQUIRE save directory

Elphel GIT logs - Mon, 02/17/2020 - 14:14
AndreyFilippov committed changes to the Elphel git project :
restored LWIR_ACQUIRE save directory

02/17/20 [imagej-elphel][lwir] by AndreyFilippov: reordered camera url

Elphel GIT logs - Mon, 02/17/2020 - 12:38
AndreyFilippov committed changes to the Elphel git project :
reordered camera url

02/17/20 [imagej-elphel][lwir] by AndreyFilippov: implementing initial orientation estimation, full window for eo acquisition

Elphel GIT logs - Mon, 02/17/2020 - 12:19
AndreyFilippov committed changes to the Elphel git project :
implementing initial orientation estimation, full window for eo acquisition

02/03/20 [imagej-elphel][lwir] by AndreyFilippov: separate adjustment parameters for GT-base fitting

Elphel GIT logs - Mon, 02/03/2020 - 20:32
AndreyFilippov committed changes to the Elphel git project :
separate adjustment parameters for GT-base fitting

02/03/20 [imagej-elphel][lwir] by AndreyFilippov: updating correction

Elphel GIT logs - Mon, 02/03/2020 - 11:32
AndreyFilippov committed changes to the Elphel git project :
updating correction

02/01/20 [imagej-elphel][lwir] by AndreyFilippov: tested new fiel calibration with ers

Elphel GIT logs - Sat, 02/01/2020 - 21:41
AndreyFilippov committed changes to the Elphel git project :
tested new fiel calibration with ers

01/29/20 [imagej-elphel][lwir] by AndreyFilippov: tested new extrinsic adjustment including ERS rotation

Elphel GIT logs - Wed, 01/29/2020 - 22:35
AndreyFilippov committed changes to the Elphel git project :
tested new extrinsic adjustment including ERS rotation

01/24/20 [imagej-elphel][lwir] by AndreyFilippov: prepared ers data for fitting

Elphel GIT logs - Fri, 01/24/2020 - 22:42
AndreyFilippov committed changes to the Elphel git project :
prepared ers data for fitting

01/23/20 [imagej-elphel][lwir] by AndreyFilippov: debugging "lazy eye". Found residual is due to ERS

Elphel GIT logs - Thu, 01/23/2020 - 17:34
AndreyFilippov committed changes to the Elphel git project :
debugging "lazy eye". Found residual is due to ERS

01/21/20 [imagej-elphel][lwir] by AndreyFilippov: more debugging LMA lazy eye

Elphel GIT logs - Tue, 01/21/2020 - 21:04
AndreyFilippov committed changes to the Elphel git project :
more debugging LMA lazy eye

01/19/20 [imagej-elphel][lwir] by AndreyFilippov: Debugging polynomial fitting as initial for LMA

Elphel GIT logs - Sun, 01/19/2020 - 00:30
AndreyFilippov committed changes to the Elphel git project :
Debugging polynomial fitting as initial for LMA

Feeding Tensorflow from GPU

Wiki Recent Changes - Wed, 01/15/2020 - 10:04

← Older revision Revision as of 17:04, 15 January 2020 (25 intermediate revisions by the same user not shown)Line 1: Line 1:  ==About== ==About==  +Reference guides:  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-video-from-glacial-to-lightning-speed/ Supercharging Object Detection in Video: from Glacial to Lightning Speed]  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-videos-setup/ Setup]  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-video-first-app/ First App]  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-video-optimizing-decoding-and-graph-feeding/ Optimizing Decoding and Graph Feeding]  +  +Target projects:  +* '''tensorflow-object-detection-cpp''' - contains a sample model, labels and a test video  +* '''fast_od''' - contains feeding Tensorflow from GPU     ==Setup== ==Setup==  +Kubuntu 18.04, CUDA 10.0 (10.0 is a requirement for Java version of TF 1.15 in Maven CDN):  + <font size=2>sudo apt install build-essential  + sudo apt install git curl  +  + mkdir -p ~/git/tf_cv_cu  + cd ~/git/tf_cv_cu  +  + '''# Download section'''  + <nowiki>git clone https://github.com/fierval/tensorflow-object-detection-cpp.git  +git clone https://github.com/fierval/fast_od.git  +wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2.tar.gz  +wget https://github.com/bazelbuild/bazel/releases/download/0.25.2/bazel_0.25.2-linux-x86_64.deb  +wget https://github.com/tensorflow/tensorflow/archive/v1.15.0.tar.gz -O tensorflow-1.15.0.tar.gz  +wget https://github.com/opencv/opencv/archive/3.4.9.tar.gz -O opencv-3.4.9.tar.gz  +wget https://github.com/opencv/opencv_contrib/archive/3.4.9.tar.gz -O opencv_contrib-3.4.9.tar.gz</nowiki>  +  + '''# Unpack archives'''  + tar xzvf cmake-3.16.2.tar.gz  + tar xzvf tensorflow-1.15.0.tar.gz  + tar xzvf opencv-3.4.9.tar.gz  + tar xzvf opencv_contrib-3.4.9.tar.gz  +  + '''# Build & update cmake'''  + sudo apt install libssl-dev  + sudo apt install qt4-default  + cd cmake-3.16.2  + ./bootstrap -qt-gui  + make -j8  + sudo make install  +  + cmake -version  + cmake-gui -version  +  + '''# Install bazel'''  + sudo dpkg -i bazel_0.25.2-linux-x86_64.deb  + bazel version  +  + '''# Build TF'''  + cd ~/git/tf_cv_cu/tensorflow-1.15.0/  + tensorflow/contrib/makefile/download_dependencies.sh  + ./configure  + '''# pick all defaults except select '''yes''' for CUDA support'''  + bazel build //tensorflow:libtensorflow_cc.so  +  + '''# Install TF with headers'''  + sudo mkdir /usr/local/tensorflow  + sudo mkdir /usr/local/tensorflow/include  + sudo cp -r tensorflow/contrib/makefile/downloads/eigen/Eigen /usr/local/tensorflow/include/  + sudo cp -r tensorflow/contrib/makefile/downloads/eigen/unsupported /usr/local/tensorflow/include/  + sudo cp tensorflow/contrib/makefile/downloads/nsync/public/* /usr/local/tensorflow/include/  + sudo cp -r bazel-genfiles/tensorflow /usr/local/tensorflow/include/  + sudo cp -r tensorflow/cc /usr/local/tensorflow/include/tensorflow  + sudo cp -r tensorflow/core /usr/local/tensorflow/include/tensorflow  + sudo mkdir /usr/local/tensorflow/include/third_party  + sudo cp -r third_party/eigen3 /usr/local/tensorflow/include/third_party/  + sudo mkdir /usr/local/tensorflow/lib  + sudo cp bazel-bin/tensorflow/libtensorflow_*.so /usr/local/tensorflow/lib  + '''# extras, not mentioned in the reference guide'''  + sudo cp -r tensorflow/contrib/makefile/downloads/absl/absl /usr/local/tensorflow/include/  + sudo cp -r tensorflow/contrib/makefile/downloads/protobuf/src/google /usr/local/tensorflow/include/  + sudo cp -r tensorflow/stream_executor /usr/local/tensorflow/include/tensorflow/  + sudo cp bazel-bin/tensorflow/* /usr/local/tensorflow/lib   + sudo ln -sf /usr/local/tensorflow/lib/libtensorflow_framework.so.1.15.0 /usr/local/tensorflow/lib/libtensorflow_framework.so  +  + '''# Build & install OpenCV'''  + sudo apt install libgtkglext1 libgtkglext1-dev  + sudo apt install libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev  + sudo apt install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev  + # sudo apt install libjasper-dev '''# no such package in 18.04'''  +  + sudo cp ~/git/tf_cv_cu/fast_od/docker/nvcuvid/dynlink_* /usr/local/cuda/include  +  + cd ~/git/tf_cv_cu/opencv-3.4.9  + mkdir build; cd build  + '''# haven't tested this line yet. Did from cmake-gui'''  + cmake -D WITH_CUDA=ON \  +      -D OPENCV_EXTRA_MODULES_PATH=~/git/tf_cv_cu/opencv_contrib-3.4.9/modules \  +      -D BUILD_PERF_TESTS=OFF \  +      -D BUILD_TESTS=OFF \  +      -D BUILD_opencv_cudacodec=ON \  +      -D WITH_NVCUVID=ON \  +      -D WITH_GTK_2_X=ON \  +      ..  + make -j8  + sudo make install  + sudo ldconfig  +  + '''# tensorflow-object-detection-cpp'''  + cd ~/git/tf_cv_cu/tensorflow-object-detection-cpp  + mkdir build; cd build  + cmake ..  + make  + ./tf_detector_example  +  + '''# fast_od'''  + cd ~/git/tf_cv_cu/fast_od  + mkdir build; cd build  + cmake ..  + make  + '''# update paths paths to the model, labels and the video from tensorflow-object-detection-cpp in fast_od/run_tf.sh'''  + cd ..  + ./run_tf_elphel.sh 1</font> Oleg

Feeding Tensorflow from GPU

Wiki Recent Changes - Tue, 01/14/2020 - 18:56

‎Setup

← Older revision Revision as of 01:56, 15 January 2020 (23 intermediate revisions by the same user not shown)Line 1: Line 1:  ==About== ==About==  +Reference guides:  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-video-from-glacial-to-lightning-speed/ Supercharging Object Detection in Video: from Glacial to Lightning Speed]  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-videos-setup/ Setup]  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-video-first-app/ First App]  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-video-optimizing-decoding-and-graph-feeding/ Optimizing Decoding and Graph Feeding]  +  +Target projects:  +* '''tensorflow-object-detection-cpp''' - contains a sample model, labels and a test video  +* '''fast_od''' - contains feeding Tensorflow from GPU     ==Setup== ==Setup==  +Kubuntu 18.04, CUDA 10.0 (10.0 is a requirement for Java version of TF 1.15 in Maven CDN):  + <font size=2>sudo apt install build-essential  + sudo apt install git curl  +  + mkdir -p ~/git/tf_cv_cu  + cd ~/git/tf_cv_cu  +  + '''# Download section'''  + <nowiki>git clone https://github.com/fierval/tensorflow-object-detection-cpp.git  +git clone https://github.com/fierval/fast_od.git  +wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2.tar.gz  +wget https://github.com/bazelbuild/bazel/releases/download/0.25.2/bazel_0.25.2-linux-x86_64.deb  +wget https://github.com/tensorflow/tensorflow/archive/v1.15.0.tar.gz -O tensorflow-1.15.0.tar.gz  +wget https://github.com/opencv/opencv/archive/3.4.9.tar.gz -O opencv-3.4.9.tar.gz  +wget https://github.com/opencv/opencv_contrib/archive/3.4.9.tar.gz -O opencv_contrib-3.4.9.tar.gz</nowiki>  +  + '''# Unpack archives'''  + tar xzvf cmake-3.16.2.tar.gz  + tar xzvf tensorflow-1.15.0.tar.gz  + tar xzvf opencv-3.4.9.tar.gz  + tar xzvf opencv_contrib-3.4.9.tar.gz  +  + '''# Build & update cmake'''  + sudo apt install libssl-dev  + sudo apt install qt4-default  + cd cmake-3.16.2  + ./bootstrap -qt-gui  + make -j8  + sudo make install  +  + cmake -version  + cmake-gui -version  +  + '''# Install bazel'''  + sudo dpkg -i bazel_0.25.2-linux-x86_64.deb  + bazel version  +  + '''# Build TF'''  + cd ~/git/tf_cv_cu/tensorflow-1.15.0/  + tensorflow/contrib/makefile/download_dependencies.sh  + ./configure  + '''# pick all defaults except select '''yes''' for CUDA support'''  + bazel build //tensorflow:libtensorflow_cc.so  +  + '''# Install TF with headers'''  + sudo mkdir /usr/local/tensorflow  + sudo mkdir /usr/local/tensorflow/include  + sudo cp -r tensorflow/contrib/makefile/downloads/eigen/Eigen /usr/local/tensorflow/include/  + sudo cp -r tensorflow/contrib/makefile/downloads/eigen/unsupported /usr/local/tensorflow/include/  + sudo cp tensorflow/contrib/makefile/downloads/nsync/public/* /usr/local/tensorflow/include/  + sudo cp -r bazel-genfiles/tensorflow /usr/local/tensorflow/include/  + sudo cp -r tensorflow/cc /usr/local/tensorflow/include/tensorflow  + sudo cp -r tensorflow/core /usr/local/tensorflow/include/tensorflow  + sudo mkdir /usr/local/tensorflow/include/third_party  + sudo cp -r third_party/eigen3 /usr/local/tensorflow/include/third_party/  + sudo mkdir /usr/local/tensorflow/lib  + sudo cp bazel-bin/tensorflow/libtensorflow_*.so /usr/local/tensorflow/lib  + '''# extras, not mentioned in the reference guide'''  + sudo cp -r tensorflow/contrib/makefile/downloads/absl/absl /usr/local/tensorflow/include/  + sudo cp -r tensorflow/contrib/makefile/downloads/protobuf/src/google /usr/local/tensorflow/include/  + sudo cp -r tensorflow/stream_executor /usr/local/tensorflow/include/tensorflow/  + sudo cp bazel-bin/tensorflow/* /usr/local/tensorflow/lib   + sudo ln -sf /usr/local/tensorflow/lib/libtensorflow_framework.so.1.15.0 /usr/local/tensorflow/lib/libtensorflow_framework.so  +  + '''# Build & install OpenCV'''  + sudo apt install libgtkglext1 libgtkglext1-dev  + sudo apt install libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev  + sudo apt install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev  + # sudo apt install libjasper-dev '''# no such package in 18.04'''  +  + sudo cp ~/git/tf_cv_cu/fast_od/docker/nvcuvid/dynlink_* /usr/local/cuda/include  +  + cd ~/git/tf_cv_cu/opencv-3.4.9  + mkdir build; cd build  + '''# haven't tested this line yet. Did from cmake-gui'''  + cmake -D WITH_CUDA=ON \  +      -D OPENCV_EXTRA_MODULES_PATH=~/git/tf_cv_cu/opencv_contrib-3.4.9/modules \  +      -D BUILD_PERF_TESTS=OFF \  +      -D BUILD_TESTS=OFF \  +      -D BUILD_opencv_cudacodec=ON \  +      -D WITH_NVCUVID=ON \  +      -D WITH_GTK_2_X=ON \  +      ..  + make -j8  + sudo make install  + sudo ldconfig  + </font> Oleg

01/14/20 [imagej-elphel][lwir] by AndreyFilippov: fixed LMA for offsets of the multi-tile clusters

Elphel GIT logs - Tue, 01/14/2020 - 18:55
AndreyFilippov committed changes to the Elphel git project :
fixed LMA for offsets of the multi-tile clusters

Feeding Tensorflow from GPU

Wiki Recent Changes - Tue, 01/14/2020 - 18:42

‎Setup

← Older revision Revision as of 01:42, 15 January 2020 (16 intermediate revisions by the same user not shown)Line 1: Line 1:  ==About== ==About==  +Reference guides:  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-video-from-glacial-to-lightning-speed/ Supercharging Object Detection in Video: from Glacial to Lightning Speed]  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-videos-setup/ Setup]  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-video-first-app/ First App]  +* [https://viralfsharp.com/2019/03/25/supercharging-object-detection-in-video-optimizing-decoding-and-graph-feeding/ Optimizing Decoding and Graph Feeding]  +  +Target projects:  +* '''tensorflow-object-detection-cpp''' - contains a sample model, labels and a test video  +* '''fast_od''' - contains feeding Tensorflow from GPU     ==Setup== ==Setup==  +Kubuntu 18.04, CUDA 10.0 (10.0 is a requirement for Java version of TF 1.15 in Maven CDN):  + <font size=2>mkdir -p ~/git/tf_cv_cu  + cd ~/git/tf_cv_cu  +  + '''# Download section'''  + <nowiki>git clone https://github.com/fierval/tensorflow-object-detection-cpp.git  +git clone https://github.com/fierval/fast_od.git  +wget https://github.com/Kitware/CMake/releases/download/v3.16.2/cmake-3.16.2.tar.gz  +wget https://github.com/bazelbuild/bazel/releases/download/0.25.2/bazel_0.25.2-linux-x86_64.deb  +wget https://github.com/tensorflow/tensorflow/archive/v1.15.0.tar.gz -O tensorflow-1.15.0.tar.gz  +wget https://github.com/opencv/opencv/archive/3.4.9.tar.gz -O opencv-3.4.9.tar.gz  +wget https://github.com/opencv/opencv_contrib/archive/3.4.9.tar.gz -O opencv_contrib-3.4.9.tar.gz</nowiki>  +  + '''# Unpack archives'''  + tar xzvf cmake-3.16.2.tar.gz  + tar xzvf tensorflow-1.15.0.tar.gz  + tar xzvf opencv-3.4.9.tar.gz  + tar xzvf opencv_contrib-3.4.9.tar.gz  +  + '''# Build & update cmake'''  + sudo apt install libssl-dev  + sudo apt install qt4-default  + cd cmake-3.16.2  + ./bootstrap -qt-gui  + make -j8  + sudo make install  +  + cmake -version  + cmake-gui -version  +  + '''# Install bazel'''  + sudo dpkg -i bazel_0.25.2-linux-x86_64.deb  + bazel version  +  + '''# Build TF'''  + cd ~/git/tf_cv_cu/tensorflow-1.15.0/  + tensorflow/contrib/makefile/download_dependencies.sh  + ./configure  + # pick all defaults except select '''yes''' for CUDA support  + bazel build //tensorflow:libtensorflow_cc.so  +  + '''# Build OpenCV'''  + sudo apt install libgtkglext1 libgtkglext1-dev  + sudo apt install build-essential  + sudo apt install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev  + sudo apt install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libdc1394-22-dev  + # sudo apt install libjasper-dev # missing in Kubuntu 18.04  +  + sudo cp ~/git/tf_cv_cu/fast_od/docker/nvcuvid/dynlink_* /usr/local/cuda/include  +  + cd ~/git/tf_cv_cu/opencv-3.4.9  + mkdir build; cd build  + cmake -D WITH_CUDA=ON \  +      -D OPENCV_EXTRA_MODULES_PATH=~/git/tf_cv_cu/opencv_contrib-3.4.9/modules \  +      -D BUILD_PERF_TESTS=OFF \  +      -D BUILD_TESTS=OFF \  +      -D BUILD_opencv_cudacodec=ON \  +      -D WITH_NVCUVID=ON \  +      -D WITH_GTK_2_X=ON \  +      ..  + make -j8  + sudo make install  + sudo ldconfig  + </font> Oleg

Pages

Subscribe to www3.elphel.com aggregator