Skip to content

Instantly share code, notes, and snippets.

View karolmajek's full-sized avatar

Karol Majek karolmajek

View GitHub Profile
@karolmajek
karolmajek / intel-nvidia.md
Created June 15, 2019 09:37 — forked from wangruohui/intel-nvidia.md
Intel for display, Nvidia for computing

Intel for display, NVIDIA for computing

This guide will show you how to use Intel graphics for rendering display and NVIDIA graphics for CUDA computing on Ubuntu 18.04 desktop.

I made this work on an ordinary gaming PC with two graphics devices, an Intel UHD Graphics 630 plus an NVIDIA GeForce GTX 1080 Ti. Both of them can be shown via lspci | grep VGA.

00:02.0 VGA compatible controller: Intel Corporation Device 3e92
01:00.0 VGA compatible controller: NVIDIA Corporation GP102 [GeForce GTX 1080 Ti] (rev a1)
import argparse
import base64
from datetime import datetime
import os
import shutil
import numpy as np
import socketio
import eventlet
import eventlet.wsgi
@karolmajek
karolmajek / response.json
Created October 24, 2017 22:06
Google Cloud Platform Vision API - Face Detection - example response
This file has been truncated, but you can view the full file.
{
"responses": [
{
"faceAnnotations": [
{
"boundingPoly": {
"vertices": [
{
"x": 939,
"y": 209