some changes to make it work with cornell cad-120
function to calcualte distribution of actions: compute_frame_prob