HOW TO INSTALL pjreddie/DARKNET ON OSX
- use brew
brew install opencv
- setup opencv.pc to pkgconfig, e.g :
| import tensorflow as tf | |
| from tensorflow.keras import layers | |
| from tensorflow.keras.models import Model | |
| from tensorflow.keras.callbacks import Callback, History, LearningRateScheduler | |
| import tensorflow.keras.backend as K | |
| from tensorflow.contrib.tpu.python.tpu import keras_support | |
| from train1000 import cifar10 | |
| import numpy as np | |
| from sklearn.metrics.pairwise import cosine_similarity |
brew install opencv
| # Install tmux on rhel/centos 7 | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -OL https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz | |
| tar -xvzf libevent-2.0.22-stable.tar.gz | |
| cd libevent-2.0.22-stable | |
| ./configure --prefix=/usr/local |
| #include <cuda_runtime.h> | |
| #include <cstring> | |
| #include <cstdlib> | |
| #include <vector> | |
| #include <string> | |
| #include <iostream> | |
| #include <stdio.h> | |
| #include "caffe/caffe.hpp" |
(Codecs are extracted from https://web.archive.org/web/20120722124832/http://opencv.willowgarage.com/wiki/QuickTimeCodecs )
| #!/bin/bash | |
| # Install Spark on CentOS 7 | |
| yum install java -y | |
| java -version | |
| yum install wget -y | |
| wget http://downloads.typesafe.com/scala/2.11.7/scala-2.11.7.tgz | |
| tar xvf scala-2.11.7.tgz | |
| sudo mv scala-2.11.7 /usr/lib | |
| sudo ln -s /usr/lib/scala-2.11.7 /usr/lib/scala |
I've been interested in computer vision for a long time, but I haven't had any free time to make any progress until this holiday season. Over Christmas and the New Years I experimented with various methodologies in OpenCV to detect road signs and other objects of interest to OpenStreetMap. After some failed experiments with thresholding and feature detection, the excellent /r/computervision suggested using the dlib C++ module because it has more consistently-good documentation and the pre-built tools are faster.
After a day or two figuring out how to compile the examples, I finally made some progress:
dlib from Github to your local machine:| #!/bin/sh | |
| # Fresh install for CUDA 6.5 on Jetson TK1 for Linux for Tegra (L4T) 21.1 | |
| # CUDA 6.5 REQUIRES L4T 21.1 !!! | |
| sudo apt-add-repository universe | |
| sudo apt-get update | |
| # This is for L4T r21.1 ; Update for your L4T i.e. r21.3 | |
| wget http://developer.download.nvidia.com/compute/cuda/6_5/rel/installers/cuda-repo-l4t-r21.1-6-5-prod_6.5-14_armhf.deb | |
| # Install the CUDA repo metadata that you downloaded | |
| # This is for L4T 21.1 ; Update for your L4T i.e. 21.3 |
| [isayme] | |
| text(bold)=eaeaea | |
| magenta(bold)=ff00ff | |
| text=ffffff | |
| white(bold)=eaeaea | |
| green=00c000 | |
| red(bold)=d20000 | |
| green(bold)=00ff00 | |
| black(bold)=808080 | |
| red=c00000 |
| /* | |
| author: jbenet | |
| os x, compile with: gcc -o testo test.c | |
| linux, compile with: gcc -o testo test.c -lrt | |
| */ | |
| #include <time.h> | |
| #include <sys/time.h> | |
| #include <stdio.h> |