|
Algorithm 1: Algorithm flow of the proposed hierarchical deep fusion framework. |
Input: activity sets ; motion state sets ; correspondence ;
IMU sequence ; single frame or image sequence (corresponding to );
pre-trained (for ); pre-trained ; pre-trained (for );
pre-trained (for ); pre-trained (for );
indicator of the photo stream Ips (H or L)
Output: activity index
|
-
(1)
Input into
-
(2)
Get the grouping index j of with Equation (6)
-
(3)
If Ips==L // Input photo stream is a low-frame-rate photo stream (
corresponds to single frame
)
-
(4)
Input into with //CNN as shown in Figure 6
-
(5)
Get k with Equation (7)
-
(6)
Else // Input photo stream is a high-frame-rate photo stream (
corresponds to image sequence
)
-
(7)
Input into with //CNN+LSTM as shown in Figure 7
-
(8)
Get k with Equation (8)
-
(9)
end If
|