conpute CNN features script