Depthwise separable : separate space from corridor costs
Depthwise separable Volumes are then used as spatial filters, one by one, and one by one.
Learning objectives and first steps2 objectives 2 first fixes
Try to do it after reading
- Multiply the normal volume and separable combination
- Description of low-cost corresponding structural constraints
Suggested first
- Thrust and Matrix Operations
- Basic neural network
Two phases instead of one full-connected roll
Depthwise separable Volumes are then used as spatial filters, one by one, and one by one. (b) The normal volume also learns the space core of each input output channel; Separated structures decomposition the matter, reducing parameters and arithmetic costs, and imposing specific decomposition constraints.
Enter Channel 8, Output 16, Nuclear 3x3, without bias. 8 x 16 x 9 = 1,152 multipliers per position for a normal volume; 8x9=72, pointwise 8x16=128, total 200. The margin value of 200/1152 is about 0.173611 and is not 1/9 of the 3x3 to 1x1.
The number of parameters is also used under the same weight-sharing agreement, but the calculation is multiplied by the output space position. If two phases are not synchronized in length or intermediate size, it cannot simply be multiplied by the same height. The physical network may also be associated with the normalization, activation and expansion of channels.
Decomposition is not a non-destructive replacement
A normal volume of arbitrary weights cannot normally be written directly without loss into this limited combination. The two phases are expressed differently in structure, and the addition of intermediate non-linear is followed by another mapping. The replacement of the old model requires training or decomposition of approximation, and the equivalent value cannot be claimed for the reshape weight alone.
Pointwise may account for most of the costs of the separable combination. Here, 128 is greater than 72, and as the output channel increases, the 1x1 mix becomes more prominent. Therefore, continued reduction of the space core does not necessarily yield the great gains envisaged, and the whole combination of calculations should be looked at rather than just the most visible 3x3.
The speed of operation also depends on computing integration, layout, batching and equipment. The implementation of two paragraphs to increase middle-tension reading and writing does not guarantee that all hardware will be faster with less theoretical multipliers. Performance reports should retain input size versus real delay, and should not compare parameters to direct vomiting.
This section is based on the principles of volume calculation for MobileNet and CS231n, with 1152 and 200 synthesizing structures. Accuracy also needs to be compared with budget and model capacity, rather than simply at arithmetic cost.
Value recovery
ordinary=8*16*9separable=8*9+8*16assert ordinary == 1152 and separable == 2003x3 of 8 to 16 passages can be separated, with how many times each location?
Channel by channel 72 plus pointwise128, total 200; The normal volume is 1152.
Can normal roll weights always be broken into these two stages without loss?
It is not possible to separate the structure from the decomposition constraints and requires an examination of expression capacity and actual training effects.
If there is an expansionary layer in the middle, the costs must be recosted by the extended route. Using a simple combination of 200 items directly for all mobile networks would miss out on the most important route expansion costs, which should be met on a case-by-case basis based on the actual surface.
Sources and reconciliations
Definitions, methods and interfaces are available.
- MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applications
- CS231n — Convolutional Neural Networks
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.