In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # answer to this reddit post: | |
| # https://www.reddit.com/r/learnmachinelearning/comments/o6br1e/calculate_bounding_box_coordinates_from_contour/ | |
| import numpy as np | |
| from numpy import sin, cos, sqrt, pi | |
| import math | |
| import matplotlib.pyplot as plt | |
| center = (332, 209) | |
| width = 56 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| from datetime import date, timedelta | |
| import datetime | |
| import calendar | |
| # test code by davidbuzz, sept 2019 | |
| #NOTES: | |
| #GPS time was zero at 0h 6-Jan-1980 and since it is not perturbed by leap seconds GPS is now ahead of UTC by 18 seconds. | |
| #TAI is currently ahead of UTC by 37 seconds, and like gps, does not have leap seconds. TAI is always ahead of GPS by 19 seconds. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| commit 6fac225de0575b18550f9421196f90a2279c44af | |
| Author: Tiago Koji Castro Shibata <[email protected]> | |
| Date: Fri Dec 28 23:13:14 2018 -0200 | |
| Fix compilation with latest OpenCV | |
| C APIs were removed and must be replaced with C++ calls | |
| diff --git a/Makefile b/Makefile | |
| index 63e15e6..c148d4b 100644 |
This guide will show you how to use Intel graphics for rendering display and NVIDIA graphics for CUDA computing on Ubuntu 18.04 / 20.04 desktop.
I made this work on an ordinary gaming PC with two graphics devices, an Intel UHD Graphics 630 plus an NVIDIA GeForce GTX 1080 Ti.
Both of them can be shown via lspci | grep VGA.
00:02.0 VGA compatible controller: Intel Corporation Device 3e92
01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)