Skip to content

Commit 2e03d89

Browse files
TorosFannyshelhamer
authored andcommitted
[example] fix path for diff in net surgery
1 parent ae4a5b1 commit 2e03d89

File tree

1 file changed

+86
-2
lines changed

1 file changed

+86
-2
lines changed

examples/net_surgery.ipynb

+86-2
Original file line numberDiff line numberDiff line change
@@ -5494,12 +5494,96 @@
54945494
"name": "stdout",
54955495
"output_type": "stream",
54965496
"text": [
5497-
"diff: imagenet/bvlc_caffenet_full_conv.prototxt: No such file or directory\r\n"
5497+
"1,2c1\r\n",
5498+
"< # Fully convolutional network version of CaffeNet.\r\n",
5499+
"< name: \"CaffeNetConv\"\r\n",
5500+
"---\r\n",
5501+
"> name: \"CaffeNet\"\r\n",
5502+
"4c3\r\n",
5503+
"< input_dim: 1\r\n",
5504+
"---\r\n",
5505+
"> input_dim: 10\r\n",
5506+
"6,7c5,6\r\n",
5507+
"< input_dim: 451\r\n",
5508+
"< input_dim: 451\r\n",
5509+
"---\r\n",
5510+
"> input_dim: 227\r\n",
5511+
"> input_dim: 227\r\n",
5512+
"152,153c151,152\r\n",
5513+
"< name: \"fc6-conv\"\r\n",
5514+
"< type: \"Convolution\"\r\n",
5515+
"---\r\n",
5516+
"> name: \"fc6\"\r\n",
5517+
"> type: \"InnerProduct\"\r\n",
5518+
"155,156c154,155\r\n",
5519+
"< top: \"fc6-conv\"\r\n",
5520+
"< convolution_param {\r\n",
5521+
"---\r\n",
5522+
"> top: \"fc6\"\r\n",
5523+
"> inner_product_param {\r\n",
5524+
"158d156\r\n",
5525+
"< kernel_size: 6\r\n",
5526+
"164,165c162,163\r\n",
5527+
"< bottom: \"fc6-conv\"\r\n",
5528+
"< top: \"fc6-conv\"\r\n",
5529+
"---\r\n",
5530+
"> bottom: \"fc6\"\r\n",
5531+
"> top: \"fc6\"\r\n",
5532+
"170,171c168,169\r\n",
5533+
"< bottom: \"fc6-conv\"\r\n",
5534+
"< top: \"fc6-conv\"\r\n",
5535+
"---\r\n",
5536+
"> bottom: \"fc6\"\r\n",
5537+
"> top: \"fc6\"\r\n",
5538+
"177,181c175,179\r\n",
5539+
"< name: \"fc7-conv\"\r\n",
5540+
"< type: \"Convolution\"\r\n",
5541+
"< bottom: \"fc6-conv\"\r\n",
5542+
"< top: \"fc7-conv\"\r\n",
5543+
"< convolution_param {\r\n",
5544+
"---\r\n",
5545+
"> name: \"fc7\"\r\n",
5546+
"> type: \"InnerProduct\"\r\n",
5547+
"> bottom: \"fc6\"\r\n",
5548+
"> top: \"fc7\"\r\n",
5549+
"> inner_product_param {\r\n",
5550+
"183d180\r\n",
5551+
"< kernel_size: 1\r\n",
5552+
"189,190c186,187\r\n",
5553+
"< bottom: \"fc7-conv\"\r\n",
5554+
"< top: \"fc7-conv\"\r\n",
5555+
"---\r\n",
5556+
"> bottom: \"fc7\"\r\n",
5557+
"> top: \"fc7\"\r\n",
5558+
"195,196c192,193\r\n",
5559+
"< bottom: \"fc7-conv\"\r\n",
5560+
"< top: \"fc7-conv\"\r\n",
5561+
"---\r\n",
5562+
"> bottom: \"fc7\"\r\n",
5563+
"> top: \"fc7\"\r\n",
5564+
"202,206c199,203\r\n",
5565+
"< name: \"fc8-conv\"\r\n",
5566+
"< type: \"Convolution\"\r\n",
5567+
"< bottom: \"fc7-conv\"\r\n",
5568+
"< top: \"fc8-conv\"\r\n",
5569+
"< convolution_param {\r\n",
5570+
"---\r\n",
5571+
"> name: \"fc8\"\r\n",
5572+
"> type: \"InnerProduct\"\r\n",
5573+
"> bottom: \"fc7\"\r\n",
5574+
"> top: \"fc8\"\r\n",
5575+
"> inner_product_param {\r\n",
5576+
"208d204\r\n",
5577+
"< kernel_size: 1\r\n",
5578+
"214c210\r\n",
5579+
"< bottom: \"fc8-conv\"\r\n",
5580+
"---\r\n",
5581+
"> bottom: \"fc8\"\r\n"
54985582
]
54995583
}
55005584
],
55015585
"source": [
5502-
"!diff imagenet/bvlc_caffenet_full_conv.prototxt ../models/bvlc_reference_caffenet/deploy.prototxt"
5586+
"!diff net_surgery/bvlc_caffenet_full_conv.prototxt ../models/bvlc_reference_caffenet/deploy.prototxt"
55035587
]
55045588
},
55055589
{

0 commit comments

Comments
 (0)