Hands-On with the Intel Ncs2

게시자

If you need to add machine learning capabilities to your next project, one option is the Intel Neural Compute Stick 2 (Intel NcsCS2). This device acts as a plug-in AI accelerator and compares most closely with the Google Coral TPU Edge Accelerator. Both devices connect to the host computer via USB ports and are specialized for machine learning.

We'll focus on how to set up the device and get it running for the first time. As noted on the startup page, the Intel Ncs2 can run under:

The Coral USB accelerator runs on Linux/Raspbian and Macintosh, so your OS capability and preferences may dictate which device is right for you. Notably, the Neural Compute Stick requires an x86-64 computer on which to run, so I didn't attempt it on my aging x86-32 Ubuntu laptop. Instead, I opted to use my other laptop, a Windows 10 machine built in the last two years.

Downloads and Yak Shaving

In addition to the OpenVINO toolkit required for the Intel Ncs2, you'll need several weighty dependencies. For now, however, navigate to the OpenVINO download page and select the OS you'll be using. After entering your email address and other info, your browser should automatically navigate you to the "download" button. The browser didn't work correctly for me when I clicked through, but I used a confirmation email successfully instead. Download your preferred version, which will likely be the latest.

Intel Nueral Compute Stick Image 2

Open the downloaded file and follow the installation instructions, noting any missing dependencies, such as:

  • Cmake version 3.4 or higher
  • Microsoft Visual Studio 2015, 2017, or 2019
  • Python 64-bit version 3.6 or higher

In my case, I already had Python installed, so that wasn't listed.

Intel Neural Compute Stick Image 3

Once the installation is complete, follow the instructions under item two to install the dependencies software you need. You can choose from several options, but the default selections will probably suffice.

Downloading and installing the files takes time, but I was pleased that everything installed on my system without issue. One thing to remember when installing CMake is to "Add CMake to the system PATH for all users."

Intel Nueral Compute Stick Image 4

Plug in and Run First Example

With the four necessary programs installed, it's time to run your example.

  1. Plug in the Intel Neural Compute Stick to a USB drive.
  2. Open up a command prompt, and navigate to the directory C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\demo.
  3. Run the command: .\demo_squeezenet_download_convert_run.bat –d MYRIAD.

If successful, you'll see a display showing classid, probability, and label, "Sports car, sport car" should be listed in the first row. Congratulations, your device is working.

Intel Nueral Compute Stick Image 5

License Plate Identification

If generating a bunch of text isn't exciting enough for you, you can also visually identify cars and read their license plates.

  1. Navigate to the same demo directory as before, then input: .\demo_security_barrier_camera.bat -d MYRIAD.
  2. This command will identify a car in a car_1.bmp file stored in this directory and read its license plate.
  3. Another window will pop up with the image, and the demo will be complete when you close it.

Intel Nueral Compute Stick Image 6

More Automotive Tests

To test the device's ability a bit further, I navigated to this directory in the program manager, then replaced the car_1.bmp file with another image I found on Wikimedia (converted to a bitmap—BMP format in Photoshop Elements). You'll need to provide administrator permission to change the names around, and I suggest also renaming the original image so you can find it later. Once complete, I reran the program, generating the following image:

I had assumed the device wouldn't struggle with this image, but perhaps it didn't like the straight-on view or the car's classic lines. For whatever reason, it did not recognize this as a car, nor did it see the license plate. Perhaps the demo needs modifications for different angles, car styles, or license plates.

Intel Nueral Compute Stick Image 7

I did throw in one image that I expected it to miss completely: a toy Minnie Mouse car with a "license plate" that I made out of a Post-it note. Interestingly, it did recognize the image as a car, though the NCS2 apparently didn't appreciate my attempt at a very shoddy plate. It would seem the mouse-mobile is safe from surveillance, at least for now.

Intel Neural Compute Stick Image 8

Conclusion

After getting my hands on an Intel Ncs2, it's a brilliant-looking device that, unlike the Google Coral TPU, runs on Windows. Installation and setup take time, but the process went smoothly enough for me. The demos are also straightforward, though running them on images I provided doesn't seem to work as well as I'd hoped.

Regardless, with some tweaking, it might be just what you need—and seems to be just about the only option in this class of device if you need to work with Windows. In addition to their documentation, the NCS2 has a series of three videos to help you through this process, all of which are available on Intel's "Getting Started." I found the Windows version quite helpful when setting everything up.

최신 뉴스

Sorry, your filter selection returned no results.

개인정보 보호정책이 업데이트되었습니다. 잠시 시간을 내어 변경사항을 검토하시기 바랍니다. 동의를 클릭하면 Arrow Electronics 개인정보 보호정책 및 이용 조건에 동의하는 것입니다.

당사의 웹사이트에서는 사용자의 경험 향상과 사이트 개선을 위해 사용자의 기기에 쿠키를 저장합니다. 당사에서 사용하는 쿠키 및 쿠키 비활성화 방법에 대해 자세히 알아보십시오. 쿠키와 추적 기술은 마케팅 목적으로 사용될 수 있습니다. '동의'를 클릭하면 기기에 쿠키를 배치하고 추적 기술을 사용하는 데 동의하는 것입니다. 쿠키 및 추적 기술을 해제하는 방법에 대한 자세한 내용과 지침을 알아보려면 아래의 '자세히 알아보기'를 클릭하십시오. 쿠키 및 추적 기술 수락은 사용자의 자발적 선택이지만, 웹사이트가 제대로 작동하지 않을 수 있으며 사용자와 관련이 적은 광고가 표시될 수 있습니다. Arrow는 사용자의 개인정보를 존중합니다. 여기에서 당사의 개인정보 보호정책을 읽을 수 있습니다.