#Open vSwitch Lab kaskdaksdkdaks
Get started with Open vSwitch, flows and OpenFlow controllers.
##Pre-reqs
Linux system with OVS installed.
##Setup
#Open vSwitch Lab kaskdaksdkdaks
Get started with Open vSwitch, flows and OpenFlow controllers.
##Pre-reqs
Linux system with OVS installed.
##Setup
| import torch | |
| from torch.autograd import Variable | |
| # new way with `init` module | |
| w = torch.Tensor(3, 5) | |
| torch.nn.init.normal(w) | |
| # work for Variables also | |
| w2 = Variable(w) | |
| torch.nn.init.normal(w2) | |
| # old styled direct access to tensors data attribute |
| # More info: | |
| # https://help.ubuntu.com/lts/serverguide/index.html | |
| # http://do.co/2bwsv2X (Digital Ocean: How To Install LAMP stack on Ubuntu 16.04) | |
| # fetch lists of updates | |
| sudo apt-get update | |
| ###################### | |
| # ESSENTIAL UTILITIES | |
| ###################### |
| # Make sure you have already installed apache and mysql; | |
| # see https://gist.github.com/rotexdegba/d0cab757b5194a58c93db5ab6df7dc67 | |
| # for instructions. | |
| # install rails | |
| # https://help.ubuntu.com/lts/serverguide/ruby-on-rails.html | |
| sudo apt install rails | |
| # install comman dependencies | |
| sudo apt-get install build-essential patch ruby-dev zlib1g-dev liblzma-dev make libmysqlclient-dev imagemagick \ |
| import redis | |
| import cv2 | |
| import numpy as np | |
| import time | |
| import io | |
| from PIL import Image | |
| r = redis.StrictRedis.from_url('redis://:[email protected]:6379/1') | |
| img_path ="image" |
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.
Install Nvidia drivers
# Start clean
sudo apt purge nvidia-*
# Add the PPA
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt updateThe first step is to setup an EC2 Ubuntu 16.04 instance that you can ssh into. I won't go into detail here but you should be able to easily google it.
You can get free AWS credit here https://education.github.com/pack
A better guide w/ pictures is here: https://chrisalbon.com/jupyter/run_project_jupyter_on_amazon_ec2.html (Note this doesn't include LetsEncrypt, so it only has self signed certificates)
Once you've setup an instance and ssh'd in, do the following: