Skip to content

Instantly share code, notes, and snippets.

View jeremyfix's full-sized avatar

Jeremy Fix jeremyfix

View GitHub Profile
@jeremyfix
jeremyfix / load_digits.py
Created May 21, 2019 11:51
digits loader
# 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'
@jeremyfix
jeremyfix / Bebop2 sphinx in docker container
Last active May 18, 2019 06:55
Bebop2 experiments with parrot sphinx within a container
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 \
@jeremyfix
jeremyfix / Anafi4K with_front_cam - docker run
Created May 18, 2019 06:45
Parrot-sphinx within docker container, Anafi4K, experiments 18/05/2019
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 \

Test

.. ifnotslides::

   A section