mirror of
https://github.com/CTCaer/waifu2x-caffe.git
synced 2025-03-01 06:15:27 +00:00
各ネットワーク入力の初期サイズをcrop_size 128に適合するようにした
This commit is contained in:
parent
da773206bb
commit
f43c057150
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -349,9 +349,6 @@ Waifu2x::eWaifu2xError cNet::SetParameter(caffe::NetParameter ¶m, 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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user