Skip to content

Instantly share code, notes, and snippets.

View nicolasrosa's full-sized avatar

nicolasrosa

  • São Carlos
View GitHub Profile
@nicolasrosa
nicolasrosa / install-protobuf-2.6.1.sh
Last active November 22, 2018 12:15 — forked from samklr/install-proto.sh
Install Protobuf debian ...
#! /bin/bash
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install autoconf automake libtool curl make g++ unzip
wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
tar xzf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1
sudo ./autogen.sh
sudo ./configure
sudo make -j8
@nicolasrosa
nicolasrosa / build_pycaffe_wheel_for_linux_cpu_py3
Created November 16, 2018 20:34 — forked from TobeyQin/build_pycaffe_wheel_for_linux_cpu_py3
Build PyCaffe wheel package for python3.5
Environment:
- Ubuntu 16.04
- Python 3.5
Prerequisite:
- clone and prepare caffe environment according to this guide: http://caffe.berkeleyvision.org/install_apt.html
- Steps:
1. General dependencies:
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
@nicolasrosa
nicolasrosa / latest-protobuf-ubuntu-18-04.md
Last active December 7, 2019 20:42 — forked from diegopacheco/latest-protobuf-ubuntu-18-04.md
How to Install Latest Protobuf on Ubuntu 18.04
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
git clone https://github.com/google/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
./configure
make
make check
sudo make install
@nicolasrosa
nicolasrosa / smartgit.desktop
Last active August 2, 2018 00:16 — forked from alefteris/smartgit.desktop
Smartgit desktop file for use with Ubuntu Unity launcher
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=SmartGit
Keywords=git;hg;svn;mercurial;subversion
Comment=Git-Client with Hg- and SVN-support
Type=Application
Categories=Development;RevisionControl
Terminal=false
StartupNotify=true
@nicolasrosa
nicolasrosa / load_jpeg_with_tensorflow.py
Created July 11, 2018 18:24 — forked from eerwitt/load_jpeg_with_tensorflow.py
Example loading multiple JPEG files with TensorFlow and make them available as Tensors with the shape [[R, G, B], ... ].
# Typical setup to include TensorFlow.
import tensorflow as tf
# Make a queue of file names including all the JPEG images files in the relative
# image directory.
filename_queue = tf.train.string_input_producer(
tf.train.match_filenames_once("./images/*.jpg"))
# Read an entire image file which is required since they're JPEGs, if the images
# are too large they could be split in advance to smaller files or use the Fixed
@nicolasrosa
nicolasrosa / nvidia-reinstall.sh
Last active February 14, 2022 02:42 — forked from morgangiraud/nvidia-reinstall.sh
NVIDIA, CUDA, CUDNN and Tensorflow Installation
# Script to reinstall manually nvidia drivers,cuda 9.0 and cudnn 7.1 on Ubuntu 16.04
# Remove anything linked to nvidia
sudo apt-get remove --purge nvidia*
sudo apt-get autoremove
# Search for your driver
apt search nvidia
# Select one driver (the last one is a decent choice)