Click to toggle contents of `code`
CODE!
CODE!
対応バージョン: 3.7.2218.55
import numpy as np | |
from keras import backend as K | |
from keras.models import Sequential | |
from keras.layers.core import Dense, Dropout, Activation, Flatten | |
from keras.layers.convolutional import Convolution2D, MaxPooling2D | |
from keras.preprocessing.image import ImageDataGenerator | |
from sklearn.metrics import classification_report, confusion_matrix | |
#Start | |
train_data_path = 'F://data//Train' |
""" | |
for Ubuntu 14.04, CUDA8.0 | |
I checked that this is woking on 10/31/2017 in JST | |
someday it will not... | |
""" | |
# Set repository, suck the official. | |
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo apt-get update | |
# Select latest nvidia driver [ex. nvidia-381], not nvidia-#-dev |
#!/bin/bash | |
### steps #### | |
# Verify the system has a cuda-capable gpu | |
# Download and install the nvidia cuda toolkit and cudnn | |
# Setup environmental variables | |
# Verify the installation | |
### | |
### to verify your gpu is cuda enable check |