This file contains 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: "CaffeNet" | |
force_backward: true | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 224 | |
input_dim: 224 | |
layer { | |
name: "conv1_1" | |
type: "Convolution" |
This file contains 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
#https://github.com/jcjohnson/neural-style/wiki/Using-Other-Neural-Models | |
#All of the alternate models are easily downloaded by pasting this into the terminal/command prompt. | |
cd ~ | |
cd neural-style | |
cd models | |
#NIN-Imagenet by ImageNet project | |
wget https://www.dropbox.com/s/cphemjekve3d80n/nin_imagenet.caffemodel |
This file contains 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
$ ./build/tools/caffe time --model=models/NIN/train_val.prototxt | |
Check failed: status.ok() Failed to open leveldb cifar-train-leveldb | |
Invalid argument: cifar-train-leveldb: does not exist (create_if_missing is false) | |
*** Check failure stack trace: *** |
This file contains 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
`simon1.tar.gz` 586 images (only colored) | 184 MB | |
`simon2.tar.gz` 725 images (including uncolored sketches and photos of sketches) | 282 MB | |
None of the images have been resized or cropped yet. A txt file called "filelist.txt" lists every image's name, so all you need to do is add the category and path for use in Caffe. |
This file contains 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
`simon1.tar.gz` 586 images (only colored) | 184 MB | |
`simon2.tar.gz` 725 images (including uncolored sketches and photos of sketches) | 282 MB | |
None of the images have been resized or cropped yet. | |
A txt file called "filelist.txt" lists every image's name, | |
so all you need to do is add the category value and the paths | |
for use in Caffe when making your train.txt and val.txt files. |
This file contains 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: "Resnet_50_1by2" | |
force_backward: true | |
# Note - replace below layer with your data layer | |
layer { | |
name: "data" | |
type: "MemoryData" | |
top: "data" | |
top: "label" | |
transform_param { | |
crop_size: 224 |
This file contains 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
Datasts: | |
https://github.com/ChristosChristofidis/awesome-deep-learning#datasets | |
Style Transfer Projects: | |
https://github.com/jcjohnson/neural-style/wiki/Similar-to-Neural-Style | |
This file contains 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: "VGG16_SOD_finetune" | |
layer { | |
name: "data" | |
type: "Data" | |
top: "data" | |
top: "label" | |
include { | |
phase: TRAIN | |
} | |
transform_param { |
This file contains 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 tensorflow as tf | |
# Creates a graph. | |
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a') | |
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b') | |
c = tf.matmul(a, b) | |
# Creates a session with log_device_placement set to True. | |
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True)) | |
# Runs the op. | |
print sess.run(c) |
This file contains 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
require 'torch' | |
require 'nn' | |
require 'image' | |
require 'optim' | |
require 'loadcaffe' | |
local cmd = torch.CmdLine() |
OlderNewer