HOW TO INSTALL pjreddie/DARKNET ON OSX
- use brew
brew install opencv
- setup opencv.pc to pkgconfig, e.g :
brew install opencv
| /* | |
| 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> |
| When I try to draw a model, I get this error: | |
| AttributeError: 'google.protobuf.pyext._message.RepeatedScalarConta' object has no attribute '_values' | |
| Just ran into this myself on deconv-deep-vis-toolbox branch | |
| I removed the "._values" on lines 94,96,98 in python/caffe/draw.py. Looks like it wants to get the length of the array. | |
| Worked after that |
| name: "Face-ResNet" | |
| layer { | |
| name: "data" | |
| type: "ImageData" | |
| top: "data" | |
| top: "label" | |
| include { | |
| phase: TRAIN | |
| } | |
| transform_param { |
| /* gcc gdk-gstappsrc-stream.c -Wall `pkg-config --cflags --libs gstreamer-app-0.10 gdk-pixbuf-2.0` -o gdkstream */ | |
| #include <gst/gst.h> | |
| #include <gst/app/gstappsrc.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <gdk-pixbuf/gdk-pixbuf.h> |
| Download/Copy all related *.zip files in one directory. | |
| Open terminal and change to that directory which has all zip files. | |
| Enter command zip -s- FILE_NAME.zip -O COMBINED_FILE.zip | |
| Enter unzip COMBINED_FILE.zip |
| import time | |
| import numpy as np | |
| from sklearn.datasets.samples_generator import make_blobs | |
| from sklearn.neighbors import LSHForest | |
| from sklearn.neighbors import NearestNeighbors | |
| from sklearn.preprocessing import normalize | |
| from annoy import AnnoyIndex | |
| from pyflann import FLANN | |
| n_iter = 100 |
| import os | |
| import base64 | |
| import struct | |
| fid = open("./MsCelebV1-ImageThumbnails.tsv", "r") | |
| base_path = './MsCeleb' | |
| if not os.path.exists(base_path): | |
| os.mkdir(base_path) | |
| while True: | |
| line = fid.readline() |
| #!/bin/sh | |
| # Install Gstreamer 1.0 on the NVIDIA Jetson TK1 | |
| apt-get install gstreamer1.0-tools gstreamer1.0-alsa \ | |
| gstreamer1.0-plugins-base gstreamer1.0-plugins-good \ | |
| gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad gstreamer1.0-libav -y |