https://gist.github.com/victor-shepardson/5b3d3087dc2b4817b9bffdb8e87a57c4
I'm using Ubuntu 16.04 with a GTX 1060
| # Base image used as starter | |
| FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04 | |
| # Install necessary dependencies | |
| RUN apt-get update && \ | |
| apt-get upgrade -y && \ | |
| apt-get install -y \ | |
| python3-pip \ | |
| git \ | |
| ffmpeg \ |
| #!/bin/bash | |
| set -e | |
| LIBNDI_INSTALLER_NAME="Install_NDI_SDK_v5_Linux" | |
| LIBNDI_INSTALLER="$LIBNDI_INSTALLER_NAME.tar.gz" | |
| #sudo apt-get install curl | |
| mkdir -p /tmp | |
| pushd /tmp |
| from contextlib import contextmanager | |
| import numpy as np | |
| import torch | |
| from torch import Tensor, ByteTensor | |
| import torch.nn.functional as F | |
| from torch.autograd import Variable | |
| import pycuda.driver | |
| from pycuda.gl import graphics_map_flags | |
| from glumpy import app, gloo, gl |
https://gist.github.com/victor-shepardson/5b3d3087dc2b4817b9bffdb8e87a57c4
I'm using Ubuntu 16.04 with a GTX 1060
| // Start | |
| let keepActive = setInterval(()=>{ | |
| document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click(); | |
| setTimeout(()=> { | |
| document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click(); | |
| }, 5000); | |
| }, 60000) | |
| // Stop | |
| clearInterval(keepActive) |
| // | |
| // easing.h | |
| // MissMoss | |
| // | |
| // Created by Guillaume on 25.06.18. | |
| // | |
| #ifndef easing_h | |
| #define easing_h |
| # Clone and train: word-rnn-tensorflow | |
| # then create a file called 'api.py' and run: `python api.py --save_dir='path/to/model'` | |
| # you can call http://0.0.0.0:5002/generate?n=1000&prime='Life is ' | |
| # | |
| # | |
| import argparse | |
| import os | |
| from six.moves import cPickle | |
| # | |
| import tensorflow as tf |
| # Clone and train: https://github.com/sherjilozair/char-rnn-tensorflow/ | |
| # then create a file called 'api.py' and run: `python api.py --save_dir='path/to/model'` | |
| # you can call http://0.0.0.0:5002/generate?n=1000&prime='Life is ' | |
| # | |
| import argparse | |
| import os | |
| from six.moves import cPickle | |
| # | |
| import tensorflow as tf | |
| from model import Model |
| // | |
| // faceUtils.h | |
| // Facetracker_face_alignment | |
| // | |
| // Created by Guillaume on 21.08.17. | |
| // | |
| // http://www.pyimagesearch.com/2017/05/22/face-alignment-with-opencv-and-python/ | |
| // https://github.com/MasteringOpenCV/code/blob/master/Chapter8_FaceRecognition/preprocessFace.cpp | |
| // | |
| // |
| // | |
| // clahe.h | |
| // CLAHE_test | |
| // | |
| // Created by Guillaume on 22.04.17. | |
| // | |
| // | |
| #ifndef clahe_h | |
| #define clahe_h |