This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import caffe | |
| import cv2 | |
| import Image | |
| import numpy as np | |
| from scipy.misc import imresize | |
| caffe_root = "/home/simon/Workspaces/caffe/" | |
| #MODEL_FILE = caffe_root + 'models/placesCNN/places205CNN_deploy.prototxt' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import caffe | |
| import cv2 | |
| import Image | |
| import numpy as np | |
| from scipy.misc import imresize | |
| caffe_root = "/home/simon/Workspaces/caffe/" | |
| #MODEL_FILE = caffe_root + 'models/placesCNN/places205CNN_deploy.prototxt' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "AlexNet" | |
| input: "data" | |
| input_shape { | |
| dim: 10 | |
| dim: 3 | |
| dim: 227 | |
| dim: 227 | |
| } | |
| layer { | |
| name: "conv1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import caffe | |
| import cv2 | |
| import Image | |
| import numpy as np | |
| from scipy.misc import imresize | |
| caffe_root = "/home/simon/caffe/" | |
| #MODEL_FILE = caffe_root + 'models/placesCNN/places205CNN_deploy.prototxt' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>net.dersmon</groupId> | |
| <artifactId>neural-network-training</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <name>neural-network-training</name> | |
| <url>http://maven.apache.org</url> | |
| <packaging>jar</packaging> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>net.dersmon</groupId> | |
| <artifactId>dl4j-imagepipeline-tutorial</artifactId> | |
| <version>0.0.1-SNAPSHOT</version> | |
| <name>dl4j-imagepipeline-tutorial</name> | |
| <url>http://maven.apache.org</url> | |
| <packaging>jar</packaging> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.canova.api.records.reader.RecordReader; | |
| import org.canova.api.split.FileSplit; | |
| import org.canova.image.recordreader.ImageRecordReader; | |
| import org.deeplearning4j.datasets.canova.RecordReaderDataSetIterator; | |
| import org.deeplearning4j.datasets.fetchers.LFWDataFetcher; | |
| import org.deeplearning4j.datasets.iterator.DataSetIterator; | |
| import org.deeplearning4j.datasets.iterator.impl.LFWDataSetIterator; | |
| import org.deeplearning4j.eval.Evaluation; | |
| import org.deeplearning4j.nn.api.OptimizationAlgorithm; | |
| import org.deeplearning4j.nn.conf.MultiLayerConfiguration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PROTOC src/caffe/proto/caffe.proto | |
| CXX .build_release/src/caffe/proto/caffe.pb.cc | |
| CXX src/caffe/parallel.cpp | |
| CXX src/caffe/solver.cpp | |
| CXX src/caffe/layer.cpp | |
| CXX src/caffe/util/signal_handler.cpp | |
| CXX src/caffe/util/db_lmdb.cpp | |
| CXX src/caffe/util/blocking_queue.cpp | |
| CXX src/caffe/util/io.cpp | |
| CXX src/caffe/util/math_functions.cpp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // this | |
| String labeledPath = System.getProperty("user.home") + "/Pictures/labeled_faces_in_the_wild"; | |
| List<String> labels = new ArrayList<>(); | |
| for (File f : new File(labeledPath).listFiles()) { | |
| labels.add(f.getName()); | |
| } | |
| RecordReader recordReader = new ImageRecordReader(28, 28, true, labels); | |
| recordReader.initialize(new FileSplit(new File(labeledPath))); |