script to compute CNN features