MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
Specifies the parameters for the ResizeParameter for use with SSD. More...
Public Types | |
enum | ResizeMode { WARP = 1 , FIT_SMALL_SIZE = 2 , FIT_LARGE_SIZE_AND_PAD = 3 } |
Defines the resizing mode. More... | |
enum | PadMode { CONSTANT = 1 , MIRRORED = 2 , REPEAT_NEAREST = 3 } |
Defines the padding mode. More... | |
enum | InterpMode { LINEAR = 1 , AREA = 2 , NEAREST = 3 , CUBIC = 4 , LANCZOS4 = 5 } |
Defines the interpolation mode. More... | |
Public Member Functions | |
ResizeParameter (bool bActive) | |
The constructor. More... | |
ResizeParameter | Load (BinaryReader br, bool bNewInstance=true) |
Load the and return a new ResizeParameter. More... | |
override void | Copy (OptionalParameter src) |
Copy the source object. More... | |
ResizeParameter | Clone () |
Return a copy of this object. More... | |
override RawProto | ToProto (string strName) |
Convert this object to a raw proto. More... | |
Public Member Functions inherited from MyCaffe.param.OptionalParameter | |
OptionalParameter (bool bActive=false) | |
The constructor. More... | |
Static Public Member Functions | |
static new ResizeParameter | FromProto (RawProto rp) |
Parses the parameter from a RawProto. More... | |
Static Public Member Functions inherited from MyCaffe.param.OptionalParameter | |
static OptionalParameter | FromProto (RawProto rp) |
Parses the parameter from a RawProto. More... | |
Properties | |
float | prob [getset] |
Get/set probability of using this resize policy. More... | |
ResizeMode | resize_mode [getset] |
Get/set the resizing mode. More... | |
uint | height [getset] |
Get/set the resizing height. More... | |
uint | width [getset] |
Get/set the resizing width. More... | |
uint | height_scale [getset] |
Get/set the resizing height scale used with FIT_SMALL_SIZE mode. More... | |
uint | width_scale [getset] |
Get/set the resizing width scale used with FIT_SMALL_SIZE_mode. More... | |
PadMode | pad_mode [getset] |
Get/set the pad mode for FIT_LARGE_SIZE_AND_PAD mode. More... | |
List< float > | pad_value [getset] |
Get/set the pad value which is repeated once for all channels, or provided one pad value per channel. More... | |
List< InterpMode > | interp_mode [getset] |
Get/set the interp mode which is repeated once for all channels, or provided once per channel. More... | |
Properties inherited from MyCaffe.param.OptionalParameter | |
bool | Active [getset] |
When active, the parameter is used, otherwise it is ignored. More... | |
Specifies the parameters for the ResizeParameter for use with SSD.
Definition at line 21 of file ResizeParameter.cs.
Defines the interpolation mode.
Enumerator | |
---|---|
LINEAR | Use linear interpolation. |
AREA | Use area interpolation. |
NEAREST | Use nearest neighbor interpolation. |
CUBIC | Use cubic interpolation. |
LANCZOS4 | Use LanCZos4 interpolation. |
Definition at line 74 of file ResizeParameter.cs.
Defines the padding mode.
Enumerator | |
---|---|
CONSTANT | Use constant padding. |
MIRRORED | Use mirrored padding. |
REPEAT_NEAREST | Repeat the nearest padding. |
Definition at line 55 of file ResizeParameter.cs.
Defines the resizing mode.
Enumerator | |
---|---|
WARP | Specifies to warp the sizing. |
FIT_SMALL_SIZE | Specifies to fit into a small size. |
FIT_LARGE_SIZE_AND_PAD | Specifies to fit into a large padded size. |
Definition at line 36 of file ResizeParameter.cs.
MyCaffe.param.ssd.ResizeParameter.ResizeParameter | ( | bool | bActive | ) |
The constructor.
bActive | Specifies whether or not the parameter is active or not. |
Definition at line 102 of file ResizeParameter.cs.
ResizeParameter MyCaffe.param.ssd.ResizeParameter.Clone | ( | ) |
Return a copy of this object.
Definition at line 252 of file ResizeParameter.cs.
|
virtual |
Copy the source object.
src | Specifies the source data. |
Reimplemented from MyCaffe.param.OptionalParameter.
Definition at line 218 of file ResizeParameter.cs.
|
static |
Parses the parameter from a RawProto.
rp | Specifies the RawProto to parse. |
Definition at line 297 of file ResizeParameter.cs.
ResizeParameter MyCaffe.param.ssd.ResizeParameter.Load | ( | BinaryReader | br, |
bool | bNewInstance = true |
||
) |
Load the and return a new ResizeParameter.
br | |
bNewInstance |
Definition at line 203 of file ResizeParameter.cs.
|
virtual |
Convert this object to a raw proto.
strName | Specifies the name of the proto. |
Reimplemented from MyCaffe.param.OptionalParameter.
Definition at line 264 of file ResizeParameter.cs.
|
getset |
Get/set the resizing height.
Definition at line 130 of file ResizeParameter.cs.
|
getset |
Get/set the resizing height scale used with FIT_SMALL_SIZE mode.
Definition at line 150 of file ResizeParameter.cs.
|
getset |
Get/set the interp mode which is repeated once for all channels, or provided once per channel.
Definition at line 190 of file ResizeParameter.cs.
|
getset |
Get/set the pad mode for FIT_LARGE_SIZE_AND_PAD mode.
Definition at line 170 of file ResizeParameter.cs.
|
getset |
Get/set the pad value which is repeated once for all channels, or provided one pad value per channel.
Definition at line 180 of file ResizeParameter.cs.
|
getset |
Get/set probability of using this resize policy.
Definition at line 110 of file ResizeParameter.cs.
|
getset |
Get/set the resizing mode.
Definition at line 120 of file ResizeParameter.cs.
|
getset |
Get/set the resizing width.
Definition at line 140 of file ResizeParameter.cs.
|
getset |
Get/set the resizing width scale used with FIT_SMALL_SIZE_mode.
Definition at line 160 of file ResizeParameter.cs.