Optimization methods.
Adam那么棒,为什么还对SGD念念不忘 (3)—— 优化算法的选择与使用策略
Normalization
详解深度学习中的Normalization,BN/LN/WN
Thursday, February 14, 2019
Thursday, January 10, 2019
Converting diagnal field of view to horizontal or vertical fov
from http://vrguy.blogspot.com/2013/04/converting-diagonal-field-of-view-and.html
- If Df is the diagonal field of view and Ha:Va is the horizontal to vertical aspect ratio, we can find the corresponding diagonal size in the same units as the aspect ratio:
Da = sqrt(Ha*Ha + Va*Va)
- The screen height and width are proportional to the tangent of the half angle. We use this to convert between field-of-view space and aspect-ratio space:
Da = tan(Df/2) and Df = atan(Da) * 2
- If the tangent and arctangent functions operate in degrees, we get:
Hf = atan( tan(Df/2) * (Ha/Da) ) * 2
- Here the tan() function converts from FOV to aspect-ratio space, the ratio is scaled in that space and then converted back into FOV space.
Monday, December 17, 2018
Mixed installation and usage of opencv 2&3 (windows & linux)
System: Windows
Architecture: x64Compiler: Visual studio
https://www.learnopencv.com/install-opencv3-on-windows/
Linux
To keep both opencv2 and opencv31. Uninstall opencv2 and opencv3, remove or lib and include files in /usr/ or /usr/local/
2. Install in local directory
The default install folder of OpenCV is
/usr/local/
. You can install OpenCV 3.1 to a separate location, say /home/your_username/opencv_3.1
with CMake optioncmake -D CMAKE_INSTALL_PREFIX=/home/your_username/opencv_3.1
To build your project with OpenCV 3.1 using CMake, add
set(OpenCV_DIR /home/your_username/opencv_3.1/share/OpenCV)
to your
CMakeLists.txt
, after project(projName)
. You can also link the corresponding libraries/headers manually or with IDE.Manuall settings for OpenCV directory
When you manually set opencv directory, if you have problems in cmakeCMake Warning at C:/opencv-2.4.9/build/install/OpenCVConfig.cmake:165 (message): Found OpenCV Windows Pack but it has not binaries compatible with your configuration. You should manually point CMake variable OpenCV_DIR to your build of OpenCV library. Call Stack (most recent call first): CMakeLists.txt:79 (find_package) CMake Error at CMakeLists.txt:79 (find_package): Found package configuration file: C:/opencv-2.4.9/build/install/OpenCVConfig.cmake but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be NOT FOUND.
There is a problem in opencv 2.4.8 in build/install/OpenCVConfig.cmake, so you should set the OpenCV_DIR as the build directory, and also set the OPCV_FOUND to true.
In the cmake file, add the following lines
1 2 3 4 5 6 7 8 9 10 | SET("OpenCV_DIR" "C:\\opencv-2.4.9\\build\\") find_package(OpenCV REQUIRED) set(OpenCV_FOUND TRUE) if (NOT OpenCV_FOUND) message(FATAL_ERROR "OpenCV library not found") else() include_directories(${OpenCV_INCLUDE_DIRS}) include_directories(${OpenCV2_INCLUDE_DIRS}) link_directories(${OpenCV_LIB_DIR}) endif() |
Tuesday, December 11, 2018
Update cmake version without default setting in ubuntu
- Check your current version with
cmake --version
- Uninstall it with
sudo apt remove cmake
- Visit https://cmake.org/download/ and download the latest binaries
- In my case
cmake-3.6.2-Linux-x86_64.sh
is sufficient
- In my case
chmod +x /path/to/cmake-3.6.2-Linux-x86_64.sh
(use your own file location here, but chmod makes the script executable)sudo /path/to/cmake-3.6.2-Linux-x86_64.sh
(you'll need to pressy
twice)The script installs to/opt/cmake-3.6.2-Linux-x86_64
so in order to get thecmake
command, make a symbolic link:sudo ln -s /opt/cmake-3.6.2-Linux-x86_64/bin/* /usr/local/bin
Test your results withcmake --version
Wednesday, December 5, 2018
Egomotion
The goal of estimating the egomotion of a camera is to determine the 3D motion of that camera within the environment using a sequence of images taken by the camera.
6D-Vision helps to resolve the issue: from a few stationary 3D points one can determine the complete motion state of the vehicle (rotation and translation) precisely.
A lot current works assume that the scenes they are interested in are mostly rigid, i.e., the scene appearance change across different frames is dominated by the camera motion.
Depth camera survey
source
Depth Camera Categories
- https://blog.csdn.net/BetterEthan/article/details/80158929
- https://mp.weixin.qq.com/s?spm=a2c4e.11153940.blogcont626060.5.4440123fi5vEVP&__biz=MzIxOTczOTM4NA==&mid=2247484628&idx=1&sn=bde8b46f762455ef47c23cb16ef36ef6&chksm=97d7e143a0a06855b0b8fcb342fea81e846120e09b39f4c940d818579708202cf1acadd76eb4&scene=21#wechat_redirect
- https://blog.csdn.net/MyArrow/article/details/52678020
Depth Camera Categories
Monday, October 22, 2018
ISSUE: Failed to start reboot.target: Connection timed out
When rebooting
Failed to start reboot.target: Connection timed out
See system logs and 'systemctl status reboot.target' for details.
Solution
$ sudo systemctl --force --force reboot
Failed to start reboot.target: Connection timed out
See system logs and 'systemctl status reboot.target' for details.
$ sudo systemctl --force --force reboot
Subscribe to:
Posts (Atom)