현재로서는 다른 방법이 없습니다. 파일에서 NetParameter
은 다음과 같이 정의됩니다. 여기에는 default_weight_filler
정도의 옵션이 없습니다.
message NetParameter {
optional string name = 1; // consider giving the network a name
// DEPRECATED. See InputParameter. The input blobs to the network.
repeated string input = 3;
// DEPRECATED. See InputParameter. The shape of the input blobs.
repeated BlobShape input_shape = 8;
// 4D input dimensions -- deprecated. Use "input_shape" instead.
// If specified, for each input blob there should be four
// values specifying the num, channels, height and width of the input blob.
// Thus, there should be a total of (4 * #input) numbers.
repeated int32 input_dim = 4;
// Whether the network will force every layer to carry out backward operation.
// If set False, then whether to carry out backward is determined
// automatically according to the net structure and learning rates.
optional bool force_backward = 5 [default = false];
// The current "state" of the network, including the phase, level, and stage.
// Some layers may be included/excluded depending on this state and the states
// specified in the layers' include and exclude fields.
optional NetState state = 6;
// Print debugging information about results while running Net::Forward,
// Net::Backward, and Net::Update.
optional bool debug_info = 7 [default = false];
// The layers that make up the net. Each of their configurations, including
// connectivity and behavior, is specified as a LayerParameter.
repeated LayerParameter layer = 100; // ID 100 so layers are printed last.
// DEPRECATED: use 'layer' instead.
repeated V1LayerParameter layers = 2;
}
넷을 정의하는 더 "기능적인"방식을 원하면'NetSpec()'파이썬 인터페이스를 살펴 봐야합니다. – Shai
@Shai 고마워, 파이어 폭스 인터페이스를 실제로 사용하고 있는데, 필자는 대부분 필자가 "xavier"필러를 사용할 때 대부분 레이어 레이어 대신 어딘지 설정해도 될지 궁금하다. – dontloo