Skip to content

Instantly share code, notes, and snippets.

View vfdev-5's full-sized avatar
:octocat:
.\ |

vfdev vfdev-5

:octocat:
.\ |
View GitHub Profile
@vfdev-5
vfdev-5 / test_tiler.py
Created May 10, 2016 21:57
Image tiler
#!/bin/python2
import numpy as np
from tiler import ImageTiler
w = 7
h = 9
data = np.arange(0, w*h).reshape((h, w))
print data
project(FalseParallelSharing)
cmake_minimum_required(VERSION 2.8)
aux_source_directory(. SRC_LIST)
add_executable(${PROJECT_NAME} ${SRC_LIST})
@vfdev-5
vfdev-5 / gen_points.py
Last active June 30, 2016 17:40
Simple logistic regression classifier using CAFFE
#!/bin/python2
# Python
# Numpy
import numpy as np
# Matplotlib
import matplotlib.pyplot as plt
@vfdev-5
vfdev-5 / example.py
Last active August 31, 2016 11:48
Exchanges
import numpy as np
import cv2
from validation import _blackboxed_image_iterator
image = 175.0 * np.ones((110, 105, 3), dtype=np.uint8)
@vfdev-5
vfdev-5 / README.md
Created September 13, 2016 09:24
Install DIGITS on windows

Install NVIDIA Digits on Windows

  • Follow instructions from here :
  • Setup environment variables :
    • set CAFFE_ROOT=C:\path\to\caffe
    • set PATH=%PATH%;C:\Python27;C:\Python27\Scripts;%CAFFE_ROOT%\Build\x64\Release
    • set PYTHONPATH=%PYTHONPATH%;%CAFFE_ROOT%\Build\x64\Release\pycaffe
@vfdev-5
vfdev-5 / example.launch
Created September 22, 2016 12:04
ROS viso2 mono odometry test
<launch>
<!-- Arguments -->
<arg name="bagfile" default="/home/osboxes/Downloads/only_rgb.bag"/> <!-- Find it on http://srv.uib.es/public/viso2_ros/sample_bagfiles/ -->
<param name="/use_sim_time" value="true"/>
<!-- Play the bagfile -->
<node pkg="rosbag" type="play" name="rosbag" args="--clock $(arg bagfile)" />
<!-- Run the stereo image proc -->
@vfdev-5
vfdev-5 / install_rpi_ros_packages.bash
Last active October 14, 2016 17:06
RPi ROS packages for Futurakart
#!/usr/bin/env bash
echo "--------------------------------------------------"
echo " Script to install necessary ROS packages on the RPi"
echo " with a clean Ubuntu 16.04"
echo " Usage : bash install_ros_packages.bash [init|fk_deps|rtabmap|rtabmap_ros] "
echo "--------------------------------------------------"
@vfdev-5
vfdev-5 / bridge_example.ipynb
Last active January 23, 2017 17:03
Reinforcement learning examples
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vfdev-5
vfdev-5 / README.md
Last active January 31, 2017 12:01
Start jupyter-notebook from Yandex HSE docker

Start jupyter-notebook from yandex HSE docker image

Build image from Dockerfile:

cd /path/to/HSE_deeplearning/
docker build -t yandex-docker .

Start container (once):

@vfdev-5
vfdev-5 / fix.md
Last active March 1, 2017 12:34
(macosx) @rpath problem with otbApplication.py - OTB-5.8.0

Problem when importing otbApplication under MacOSX El Capitain.

>>> import otbApplication

----> 1 import otbApplication
      2 
      3 from image_utils import get_filename

~/Documents/OTB-5.8.0-Darwin64/lib/python/otbApplication.py in ()