Use the VM
The easiest way to get going is to install a VM I’ve prepared that is preinstalled.
- Download the VM from my mega.nz share (one drive mirror)
- Use Hyper V Manager in Windows to Import the image contained in the zip.
- Login as username “student” password “password”
- Use a Terminal and type the command ifconfig to see what the VM’s IP Address is.
- Use Windows Remote desktop to connect to this VM.
- Skip down to the Test Install Section
Or Install it on Windows 10 or Linux Ubuntu 16.04
NOTE: Other versions of these OS’s may work, I have not tested any beyond these two.
PRE LAB (Windows) - CNTK Installer
- Install Windows 64 bit CNTK download
- GPU Version = https://cntk.ai/dlwg-2.6.html (mirror) (mirror 2)
- CPU Version = https://cntk.ai/dlwc-2.6.html (mirror) (mirror 2)
- Unzip to CNTK folder
- Run cntk\Scripts\install\windows\install.bat
- Wait a long time!
[collapse]
PRE LAB (Linux) - CNTK Installer
- Install Linux 64 bit CNTK download
- GPU Version = https://cntk.ai/dllg-2.6.html
- CPU Version = https://cntk.ai/dllg-2.6.html
- Unzip to CNTK folder
- Run cntk\Scripts\install\linux\install-cntk.sh
- Wait a long time!
[collapse]
Install GraphViz (Windows)
- Install https://graphviz.gitlab.io/_pages/Download/Download_windows.html
- Download the MSI Version for an easy install
- Add the install folder of graphviz to your system path, by default this is C:\Program Files (x86)\Graphviz2.38\bin (Video Tutorial)
[collapse]
Install GraphViz (Linux)
- sudo apt-get install graphviz
[collapse]
Install Packages
Configure Keras to use CNTK
- At the prompt type the command python -i -c “import keras” (This results in the error “ImportError: No module named ‘tensorflow'” because by default it does not use CNTK)
- Modify the “keras.json” file under %USERPROFILE%/.keras (Windows) ||| ~\.keras (linux)
- Set the “backend” field to “cntk”.
- If you do not have a keras.json, that means you have not run Keras on this machine, Go back to step 1
[collapse]
Test Install
Test Install
Lab Complete!
Extra Credit – Useful info to read while you wait
Spyder IDE documentation
Beginner Tips for Python