Skip to content

Instantly share code, notes, and snippets.

View NguyenNhan1610's full-sized avatar
🎯
Focusing

Nguyen Nhan NguyenNhan1610

🎯
Focusing
  • 14:46 (UTC -12:00)
View GitHub Profile
from graphviz import Digraph
import torch
from torch.autograd import Variable, Function
def iter_graph(root, callback):
queue = [root]
seen = set()
while queue:
fn = queue.pop()
if fn in seen:
@NguyenNhan1610
NguyenNhan1610 / OpenCV-3.1-Ubuntu-16.04-Cuda-8.md
Created September 8, 2017 08:05 — forked from filitchp/OpenCV-3.1-Ubuntu-16.04-Cuda-8.md
Installing OpenCV 3.1 on Ubuntu 16.04 with Cuda 8 support

This is a guide for installing OpenCV 3.1 on Ubuntu 16.04 with Cuda 8 support. This has been tested using a system with a GeForce GTX 1060 and on one with a GeForce GTX 1080.

Nvidia Drivers with Compiz

Install Nvidia drivers

# Start clean
sudo apt purge nvidia-*
# Add the PPA
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
@NguyenNhan1610
NguyenNhan1610 / conv3dnet.py
Created May 5, 2017 08:54 — forked from dansileshi/conv3dnet.py
Example of 3D convolutional network with TensorFlow
import tensorflow as tf
import numpy as np
FC_SIZE = 1024
DTYPE = tf.float32
def _weight_variable(name, shape):
return tf.get_variable(name, shape, DTYPE, tf.truncated_normal_initializer(stddev=0.1))