Skip to content

Instantly share code, notes, and snippets.

View nicolasrosa's full-sized avatar

nicolasrosa

  • São Carlos
View GitHub Profile
@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)
@nicolasrosa
nicolasrosa / notas_deep_learning.md
Last active March 20, 2021 19:06
Learning Guide - Deep Learning

Deep Learning

Além dos links dessa lista, altamente recomendo o seguinte link:

https://github.com/ChristosChristofidis/awesome-deep-learning

Ordem de Estudo Recomendada:

Pessoalmente, não conheço a bagagem teórica de cada um, mas acredito que a ordem mais indicada para compreender os conceitos de Deep Learning:

@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 / 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 / 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 / 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 / CaffeInstallationNick.md
Last active March 26, 2020 13:49
Caffe Installation Tutorials

First Steps

General Advices:

  1. Avoid using conda
  2. If the make command failed, try compiling with only one thread.

If you insist using conda. Make sure the following packages are correctly installed. Anaconda packages maybe conflict with the system libraries, recommend uninstall both (system libraries and conda packages). I recommend installing them manually from source.

conda uninstall protobuf
conda uninstall gflags

How to Build OpenCV 3.4

In Ubuntu 16.04, install the dependencies first and then build the OpenCV 3.4 from source.

sudo apt-get install --assume-yes build-essential cmake git
sudo apt-get install --assume-yes pkg-config unzip ffmpeg qtbase5-dev python-dev python3-dev python-numpy python3-numpy
sudo apt-get install --assume-yes libopencv-dev libgtk-3-dev libdc1394-22 libdc1394-22-dev libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev
sudo apt-get install --assume-yes libavcodec-dev libavformat-dev libswscale-dev libxine2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
sudo apt-get install --assume-yes libv4l-dev libtbb-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev
@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