Codes to obtain CNN features