Created
October 28, 2017 07:35
-
-
Save helloworld/9dd175692b5e7cb088bd5f3cf0ad30f9 to your computer and use it in GitHub Desktop.
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
ubuntu@ip-172-31-71-84:~/lapstyle$ th lap_style.lua -style_image images/flowers.png -content_image images/megan.png -output_image output/megan_flowers20_100.png -content_weight 20 -lap_layers 2 -lap_weights 100 | |
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:537] Reading dangerously large protocol message. If the message turns out to be larger than 1073741824 bytes, parsing will be halted for security reasons. To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h. | |
[libprotobuf WARNING google/protobuf/io/coded_stream.cc:78] The total number of bytes read was 574671192 | |
Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel | |
conv1_1: 64 3 3 3 | |
conv1_2: 64 64 3 3 | |
conv2_1: 128 64 3 3 | |
conv2_2: 128 128 3 3 | |
conv3_1: 256 128 3 3 | |
conv3_2: 256 256 3 3 | |
conv3_3: 256 256 3 3 | |
conv3_4: 256 256 3 3 | |
conv4_1: 512 256 3 3 | |
conv4_2: 512 512 3 3 | |
conv4_3: 512 512 3 3 | |
conv4_4: 512 512 3 3 | |
conv5_1: 512 512 3 3 | |
conv5_2: 512 512 3 3 | |
conv5_3: 512 512 3 3 | |
conv5_4: 512 512 3 3 | |
fc6: 1 1 25088 4096 | |
fc7: 1 1 4096 4096 | |
fc8: 1 1 4096 1000 | |
Setting up style layer 2 : relu1_1 | |
Setting up style layer 7 : relu2_1 | |
Setting up style layer 12 : relu3_1 | |
Setting up style layer 21 : relu4_1 | |
Setting up content layer 23 : relu4_2 | |
Setting up style layer 30 : relu5_1 | |
Capturing content targets | |
nn.ConcatTable { | |
input | |
|`-> (1): nn.Sequential { | |
| [input -> (1) -> (2) -> (3) -> (4) -> (5) -> (6) -> (7) -> (8) -> (9) -> (10) -> (11) -> (12) -> (13) -> (14) -> (15) -> (16) -> (17) -> (18) -> (19) -> (20) -> (21) -> (22) -> (23) -> (24) -> (25) -> (26) -> (27) -> (28) -> (29) -> (30) -> (31) -> (32) -> (33) -> (34) -> (35) -> (36) -> (37) -> output] | |
| (1): nn.TVLoss | |
| (2): nn.SpatialConvolution(3 -> 64, 3x3, 1,1, 1,1) | |
| (3): nn.ReLU | |
| (4): nn.StyleLoss | |
| (5): nn.SpatialConvolution(64 -> 64, 3x3, 1,1, 1,1) | |
| (6): nn.ReLU | |
| (7): nn.SpatialMaxPooling(2x2, 2,2) | |
| (8): nn.SpatialConvolution(64 -> 128, 3x3, 1,1, 1,1) | |
| (9): nn.ReLU | |
| (10): nn.StyleLoss | |
| (11): nn.SpatialConvolution(128 -> 128, 3x3, 1,1, 1,1) | |
| (12): nn.ReLU | |
| (13): nn.SpatialMaxPooling(2x2, 2,2) | |
| (14): nn.SpatialConvolution(128 -> 256, 3x3, 1,1, 1,1) | |
| (15): nn.ReLU | |
| (16): nn.StyleLoss | |
| (17): nn.SpatialConvolution(256 -> 256, 3x3, 1,1, 1,1) | |
| (18): nn.ReLU | |
| (19): nn.SpatialConvolution(256 -> 256, 3x3, 1,1, 1,1) | |
| (20): nn.ReLU | |
| (21): nn.SpatialConvolution(256 -> 256, 3x3, 1,1, 1,1) | |
| (22): nn.ReLU | |
| (23): nn.SpatialMaxPooling(2x2, 2,2) | |
| (24): nn.SpatialConvolution(256 -> 512, 3x3, 1,1, 1,1) | |
| (25): nn.ReLU | |
| (26): nn.StyleLoss | |
| (27): nn.SpatialConvolution(512 -> 512, 3x3, 1,1, 1,1) | |
| (28): nn.ReLU | |
| (29): nn.ContentLoss | |
| (30): nn.SpatialConvolution(512 -> 512, 3x3, 1,1, 1,1) | |
| (31): nn.ReLU | |
| (32): nn.SpatialConvolution(512 -> 512, 3x3, 1,1, 1,1) | |
| (33): nn.ReLU | |
| (34): nn.SpatialMaxPooling(2x2, 2,2) | |
| (35): nn.SpatialConvolution(512 -> 512, 3x3, 1,1, 1,1) | |
| (36): nn.ReLU | |
| (37): nn.StyleLoss | |
| } | |
`-> (2): nn.Sequential { | |
[input -> (1) -> (2) -> (3) -> output] | |
(1): nn.SpatialAveragePooling(4x4, 4,4) | |
(2): nn.SpatialConvolution(3 -> 1, 3x3) | |
(3): nn.ContentLoss | |
} | |
... -> output | |
} | |
THCudaCheck FAIL file=/home/ubuntu/src/torch/extra/cutorch/lib/THC/generic/THCStorage.cu line=66 error=2 : out of memory | |
/home/ubuntu/src/torch/install/bin/luajit: .../ubuntu/src/torch/install/share/lua/5.1/nn/Container.lua:67: | |
In 1 module of nn.ConcatTable: | |
In 17 module of nn.Sequential: | |
/home/ubuntu/src/torch/install/share/lua/5.1/nn/THNN.lua:110: cuda runtime error (2) : out of memory at /home/ubuntu/src/torch/extra/cutorch/lib/THC/generic/THCStorage.cu:66 | |
stack traceback: | |
[C]: in function 'v' | |
/home/ubuntu/src/torch/install/share/lua/5.1/nn/THNN.lua:110: in function 'SpatialConvolutionMM_updateOutput' | |
...rc/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:79: in function <...rc/torch/install/share/lua/5.1/nn/SpatialConvolution.lua:76> | |
[C]: in function 'xpcall' | |
.../ubuntu/src/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors' | |
...ubuntu/src/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function <...ubuntu/src/torch/install/share/lua/5.1/nn/Sequential.lua:41> | |
[C]: in function 'xpcall' | |
.../ubuntu/src/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors' | |
...buntu/src/torch/install/share/lua/5.1/nn/ConcatTable.lua:11: in function 'forward' | |
lap_style.lua:240: in function 'main' | |
lap_style.lua:689: in main chunk | |
[C]: in function 'dofile' | |
.../src/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk | |
[C]: at 0x00405d50 | |
WARNING: If you see a stack trace below, it doesn't point to the place where this error occurred. Please use only the one above. | |
stack traceback: | |
[C]: in function 'error' | |
.../ubuntu/src/torch/install/share/lua/5.1/nn/Container.lua:67: in function 'rethrowErrors' | |
...buntu/src/torch/install/share/lua/5.1/nn/ConcatTable.lua:11: in function 'forward' | |
lap_style.lua:240: in function 'main' | |
lap_style.lua:689: in main chunk | |
[C]: in function 'dofile' | |
.../src/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk | |
[C]: at 0x00405d50 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment