Install Caffe with CUDA support in High Sierra

Posted · Add Comment

1. Download and install anaconda 2. Download protobuf 3.5.1 source and compile, install. 3. Install Dependencies with homebrew brew install -vd snappy leveldb gflags glog szip lmdbhdf5 opencv brew install boost@1.59 boost-python@1.59 brew link boost@1.59 –force brew link boost-python@1.59 –force 4.git clone https://github.com/BVLC/caffe.git 5.cp Makefile.config.example Makefile.config 5.1. USE_CUDNN := 1 OPENCV_VERSION: = 3 CUDA_DIR :=Continue Reading

How to backup automatically SciNote deployed in local server

Posted · Add Comment

Install drivesync in ubuntu. (https://github.com/MStadlmeier/drivesync) Make Sync.sh Script as below.#! /usr/bin/env bash Cd /home/$username/Scinote docker exec scinote_db_production pg_dump -h localhost -p 5432 -U postgres -d scinote_production -c -b -f /home/db.bak docker cp scinote_db_production:/home/db.bak /home/$username/Documents/drive/Backup/SciNote/Files/ docker cp scinote_web_production:/usr/src/app/public/system /home/$username/Documents/drive/Backup/SciNote/Files/cd /home/$username/Downloads/drivesync ruby drivesync.rb chmod +x Sync.sh Automate using Crontab.     Data recovery If you are restoringContinue Reading

Tensorflow 1.12 in MacOS High Sierra with Cuda from Source

Posted · Add Comment

After numerous trial-and-error, Tensorflow 1.12 with Cuda is successfully compiled in MacOS High Sierra (in Mac Pro 2012). Prerequisites Cuda toolkit 10.1, cuDNN 7.5 Python 3.6 XCode 8.3.2 0. Install bazel (for unknown reason 0.18.1 causes pip installer problem). Download bazel-0.18.0-installer-darwin-x86_64.sh from https://github.com/bazelbuild/bazel/releases. chmod +x bazel-0.18.0-installer-darwin-x86_64.sh sudo ./bazel-0.18.0-installer-darwin-x86_64.sh 1. Make a working folder and clone Tensorflow code.Continue Reading