各ネットワーク入力の初期サイズをcrop_size 128に適合するようにした

This commit is contained in:
lltcggie 2016-07-05 01:48:53 +09:00
parent da773206bb
commit f43c057150
9 changed files with 8 additions and 11 deletions

View File

@ -3,7 +3,7 @@ layer {
name: "input"
type: "Input"
top: "input"
input_param { shape: { dim: 1 dim: 3 dim: 142 dim: 142 } }
input_param { shape: { dim: 1 dim: 3 dim: 156 dim: 156 } }
}
layer {
name: "conv1_layer"

View File

@ -3,7 +3,7 @@ layer {
name: "input"
type: "Input"
top: "input"
input_param { shape: { dim: 1 dim: 3 dim: 142 dim: 142 } }
input_param { shape: { dim: 1 dim: 3 dim: 156 dim: 156 } }
}
layer {
name: "conv1_layer"

View File

@ -3,7 +3,7 @@ layer {
name: "input"
type: "Input"
top: "input"
input_param { shape: { dim: 1 dim: 3 dim: 142 dim: 142 } }
input_param { shape: { dim: 1 dim: 3 dim: 156 dim: 156 } }
}
layer {
name: "conv1_layer"

View File

@ -3,7 +3,7 @@ layer {
name: "input"
type: "Input"
top: "input"
input_param { shape: { dim: 1 dim: 3 dim: 142 dim: 142 } }
input_param { shape: { dim: 1 dim: 3 dim: 156 dim: 156 } }
}
layer {
name: "conv1_layer"

View File

@ -3,7 +3,7 @@ layer {
name: "input"
type: "Input"
top: "input"
input_param { shape: { dim: 1 dim: 3 dim: 142 dim: 142 } }
input_param { shape: { dim: 1 dim: 3 dim: 156 dim: 156 } }
}
layer {
name: "conv1_layer"

View File

@ -3,7 +3,7 @@ layer {
name: "input"
type: "Input"
top: "input"
input_param { shape: { dim: 1 dim: 3 dim: 142 dim: 142 } }
input_param { shape: { dim: 1 dim: 3 dim: 156 dim: 156 } }
}
layer {
name: "conv1_layer"

View File

@ -3,7 +3,7 @@ layer {
name: "input"
type: "Input"
top: "input"
input_param { shape: { dim: 1 dim: 3 dim: 142 dim: 142 } }
input_param { shape: { dim: 1 dim: 3 dim: 156 dim: 156 } }
}
layer {
name: "conv1_layer"

View File

@ -3,7 +3,7 @@ layer {
name: "input"
type: "Input"
top: "input"
input_param { shape: { dim: 1 dim: 3 dim: 142 dim: 142 } }
input_param { shape: { dim: 1 dim: 3 dim: 156 dim: 156 } }
}
layer {
name: "conv1_layer"

View File

@ -349,9 +349,6 @@ Waifu2x::eWaifu2xError cNet::SetParameter(caffe::NetParameter &param, const std:
auto mid = input_layer->mutable_input_param()->mutable_shape();
if (mid->size() != 1 || mid->Mutable(0)->dim_size() != 4)
return Waifu2x::eWaifu2xError_FailedParseModelFile;
mid->Mutable(0)->set_dim(0, 1);
mid->Mutable(0)->set_dim(2, 142);
mid->Mutable(0)->set_dim(3, 142);
}
for (int i = 0; i < param.layer_size(); i++)