.. ifnotslides:: A section
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh15:fix_jer$ make run-anafi4k | |
#sudo xhost + | |
docker run -it --rm --privileged --runtime=nvidia \ | |
--env="DISPLAY" \ | |
--env="QT_X11_NO_MITSHM=1" \ | |
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ | |
--network host \ | |
-e NVIDIA_PATH=/usr/lib/nvidia-410 \ | |
-v /usr/lib/nvidia-410:/usr/lib/nvidia-410:ro \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh15:fix_jer$ make run-bebop2 | |
#sudo xhost + | |
docker run -it --rm --privileged --runtime=nvidia \ | |
--env="DISPLAY" \ | |
--env="QT_X11_NO_MITSHM=1" \ | |
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ | |
--network host \ | |
-e NVIDIA_PATH=/usr/lib/nvidia-410 \ | |
-v /usr/lib/nvidia-410:/usr/lib/nvidia-410:ro \ | |
-v /tmp:/tmp \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Data from : http://www.metz.supelec.fr//metz/personnel/frezza/ApprentissageNumerique/TP-MachineLearning/dig_app_text.cb | |
# Data are said to be provided UCI Machine Learning Repository ... but I did not find the dataset on the repository.. | |
import numpy as np | |
digit_idx = 0 | |
header = 5 | |
width = 28 | |
height = 28 | |
num_digits = 4000 | |
filename = 'dig_app_text.cb' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(eval PORT = $(shell ./get_free_port.sh)) | |
testbidule: | |
@echo "I found a free port number : " $(PORT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# Downloading and processing the AT&T face dataset | |
import requests | |
import tempfile | |
import os | |
import glob | |
import shutil | |
import pathlib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################# Compilation of caffe | |
git clone https://github.com/BVLC/caffe.git | |
cd caffe | |
git remote add yosinski https://github.com/yosinski/caffe.git | |
git fetch --all | |
git checkout --track -b deconv-deep-vis-toolbox yosinski/deconv-deep-vis-toolbox | |
sudo apt install libgflags-dev libgoogle-glog-dev libhdf5-dev libleveldb-dev liblmdb-dev libsnappy-dev libatlas3-base libatlas-base-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On precise, for some reason, USER and GROUP are getting ignored. | |
# So setting mode = 0666 for now. | |
SUBSYSTEM=="tty", ATTRS{idVendor}=="05e3", ATTRS{idProduct}=="0610", MODE:="0666", GROUP:="dialout", SYMLINK+="LDS01" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ubuntu 18.04 installation | |
Proceed with a minimal installation of ubuntu 18.04, follow https://help.ubuntu.com/community/Installation/MinimalCD | |
# ROS installation | |
Follow http://wiki.ros.org/melodic/Installation | |
# Network configuration in console mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We suppose the PyPi username and password are stored as the last 2 lines of the file pypi.gpg given below | |
# then from within your python package directory, you would do : | |
# login@machine:~$ python3 setup.py sdist | |
# login@machine:~$ pypi-push | |
# File pypi-push (with +x permissions) | |
#!/bin/bash | |
TWINE_USERNAME=`gpg --decrypt --no-comments ~/.password-store/pypi.gpg 2> /dev/null | tail -n +2 | head -1` | |
TWINE_PASSWORD=`gpg --decrypt --no-comments ~/.password-store/pypi.gpg 2> /dev/null | tail -n +2 | tail -1` |
OlderNewer