Preparatory Work I Can Not Run ifconfig Successfully Please Check Your System and Try Again
When it comes to working with deep learning + Python I highly recommend that you use a Linux surround.
Deep learning tools can exist more easily configured and installed on Linux, assuasive you to develop and run neural networks quickly.
Of form, configuring your own deep learning + Python + Linux development environment can be quite the tiresome task, specially if you lot are new to Linux, a beginner at working the control line/terminal, or a novice when compiling and installing packages past hand.
In order to assist y'all jump showtime your deep learning + Python education, I have created an Ubuntu virtual car with all necessary deep learning libraries you need to successful (including Keras, TensorFlow, scikit-learn, scikit-image, OpenCV, and others) pre-configured and pre-installed .
This virtual car is function of all three bundles of my book, Deep Learning for Computer Vision with Python. After you lot buy your copy you'll be able to download the virtual machine and get started with deep learning immediately.
In the residual of this tutorial I'll show you:
- How to download and install VirtualBox for managing, creating, and importing virtual machines.
- How to import the pre-configured Ubuntu virtual machine for deep learning.
- How to access the pre-installed deep learning libraries on the virtual auto.
Let's go alee and get started.
Your deep learning + Python virtual car
Your buy of Deep Learning for Computer Vision with Python includes a pre-configured Ubuntu virtual machine for deep learning. In the following sections I'll testify you lot how easy it is to import your Ubuntu deep learning virtual machine.
This tutorial is cleaved downwardly into 3 parts to make it easy to digest and understand:
- Download and install VirtualBox.
- Download and import your pre-configured Ubuntu deep learning virtual car.
- Access the Python development environment inside the deep learning virtual auto.
Footstep #one: Download and install VirtualBox
The first step is to download VirtualBox, a gratis open source platform for managing virtual machines.
VirtualBox will run on macOS , Linux , and Windows .
Nosotros phone call the concrete hardware VirtualBox is running on your host machine . The virtual auto that will be imported into VirtualBox is the guest machine .
To install VirtualBox, showtime visit the downloads page and and so select the appropriate binaries for your operating system:
From there install the software on your system following the provided instructions — I'll exist using macOS in this example, but again, these instructions will also work on Linux and Windows also:
Footstep #two: Download your deep learning virtual automobile
Now that VirtualBox is installed y'all need to download the pre-configured Ubuntu virtual car associated with your purchase of Deep Learning for Computer Vision with Python:
The file is approximately 4GB so depending on your net connection this download make have some time to consummate.
In one case you have downloaded the VirtualMachine.nix file, unarchive it and you'll discover a file named DL4CV Ubuntu VM.ova . I accept placed this file on my Desktop:
This is the bodily file that you lot will be importing into the VirtualBox manager.
Step #3: Import the deep learning virtual auto into VirtualBox
Become ahead and open the VirtualBox manager.
From at that place select File => Import Appliance... :
Once the dialog opens you'll want to navigate to where the DL4CV Ubuntu VM.ova file resides on disk:
Finally, y'all can click "Import" and let the virtual machine to import:
The entire import procedure should accept only a few minutes.
Stride #4: Kick the deep learning virtual machine
At present that the deep learning virtual auto has been imported nosotros demand to kicking it.
From the VirtualBox director select the "DL4CV Ubuntu VM" on the left pane of the window and then click "Start":
Once the virtual machine has booted you tin login using the following credentials:
- Username:
pyimagesearch - Countersign:
deeplearning
Step #five: Admission the deep learning Python virtual environment
The side by side step after logging into the VM is to launch a final:
From there, execute workon dl4cv to access the Python + deep learning development surround:
Notice that my prompt now has the text (dl4cv) preceding it, implying that I am inside the dl4cv Python virtual environment.
You can run pip freeze to see all the Python libraries installed.
I take included a screenshot below demonstrating how to import Keras, TensorFlow, and OpenCV from a Python vanquish:
Stride #vi: (Optional) Install Invitee Additions on virtual auto
An optional stride y'all may wish to perform is installing the VirtualBox Guest Additions on your machine.
The Invitee Additions bundle permit y'all to:
- Copy and paste from the virtual auto to your host (and vice versa)
- Share folders betwixt the virtual machine and host
- Adjust screen resolution
- etc.
Yous tin can install the Invitee Additions by selecting Devices => Install Guest Additions... from the VirtualBox menu at the height of your screen.
Executing code from Deep Learning for Computer Vision with Python on your virtual auto
There are multiple methods to admission the Deep Learning for Computer Vision with Python source code + datasets from your virtual machine.
By far the easiest method is to simply open Firefox and download the .zip archives from the "Your Purchase" page after buying your copy of Deep Learning for Computer Vision with Python. I would recommend forwarding the receipt email to yourself so yous can login to your inbox via Firefox and and so download the code + datasets.
Yous may also use your favorite SFTP/FTP client to transfer the code from your host machine to the virtual machine.
Of course, you can e'er manually write the lawmaking inside Ubuntu virtual machine using the built-in text editor as you follow along with the book.
Tips for using the deep learning virtual car
When using the Ubuntu VirtualBox virtual auto for deep learning I recommend the post-obit:
- Use Sublime Text equally a lightweight code editor. Sublime Text is my favorite code editor for Linux. It'south simple, like shooting fish in a barrel to use, and very lightweight, making it ideal for a virtual machine.
- Employ PyCharm as a full blown IDE. When it comes to Python IDEs, it'south hard to shell PyCharm. I personally don't like using PyCharm inside a virtual car as it's quite resource hungry. You'll besides demand to configure PyCharm to use the
dl4cvPython surround one time installed.
Troubleshooting and FAQ
In this section I item answers to oft asked questions and problems regarding the pre-configured Ubuntu deep learning virtual machine.
How do I kicking my deep learning virtual machine?
Once your VM has been imported, select the "DL4CV Ubuntu VM" on the left-mitt side of the VirtualBox software, then click the "Start" button. Your VM will then boot.
What is the username and countersign for the Ubuntu deep learning virtual car?
The username is pyimagesearch and the password is deeplearning .
The username and password is not working for me.
The keyboard layout chosen for the Ubuntu virtual auto is the standard English layout . If you are using a keyboard in a dissimilar language than English please add the keyboard layout for your specific language.
To accomplish this, first open the arrangement settings application and select "Keyboard". From there, click the "Text Entry" push button at the bottom of the panel:
Lastly, click the "+" icon, select your keyboard layout, and click "Add together":
You may demand to reboot your system for these changes to take effect.
How practice I run Python scripts that access deep learning libraries?
The Deep Learning for Computer Vision with Python virtual automobile uses Python virtual environments to assist organize Python modules and go on them separate from the arrangement install of Python.
To access the virtual environment just execute workon dl4cv from the vanquish. Form there y'all'll have access to deep learning/calculator vision libraries such as TensorFlow, Keras, OpenCV, scikit-learn, scikit-epitome, etc.
How can I access my GPU from the Ubuntu virtual machine?
The short respond is that you cannot access your GPU from the virtual auto.
A virtual machine abstracts your hardware and creates an artificial barrier between your host auto and your invitee machine. Peripherals such as your GPU, USB ports, etc. on your physical computer cannot be accessed by the virtual machine.
If you would like to use your GPU for deep learning I would suggest configuring your native development environment.
I am receiving an error message related to "VT-x/AMD-V hardware acceleration is not bachelor for your system". What do I do?
If you are getting an fault bulletin similar to the following:
And so you likely need to check your BIOS and ensure virtualization is enabled. If you're on Windows you might also need to disable Hyper-V mode.
To resolve the trouble:
- Disable Hyper-V mode from the Windows control panel (if using the Windows operating system). Have a look at the answers to this question, which is the same problem you lot are having. Disabling Hyper-Five is unlike on different Windows versions, merely following the reply to the question above yous should be able to find your solution. That said, also brand sure you exercise step 2 below also.
- Check your BIOS. The next time you kicking your system, get into the BIOS and ensure that Virtualization is enabled (normally it's under some sort of "advanced setting"). If virtualization is not enabled, then the VM will non be able to boot.
What's next? I recommend PyImageSearch University.
Course data:
35+ total classes • 39h 44m video • Last updated: April 2022
★★★★★ iv.84 (128 Ratings) • thirteen,800+ Students Enrolled
I strongly believe that if you had the right teacher you could master estimator vision and deep learning.
Exercise you think learning figurer vision and deep learning has to be time-consuming, overwhelming, and complicated? Or has to involve circuitous mathematics and equations? Or requires a caste in reckoner science?
That'south non the instance.
All yous need to master calculator vision and deep learning is for someone to explain things to you in elementary, intuitive terms. And that'due south exactly what I do. My mission is to change education and how circuitous Artificial Intelligence topics are taught.
If you're serious about learning computer vision, your next stop should be PyImageSearch Academy, the most comprehensive computer vision, deep learning, and OpenCV course online today. Here you'll learn how to successfully and confidently utilize figurer vision to your work, research, and projects. Join me in computer vision mastery.
Within PyImageSearch University you'll find:
- ✓ 35+ courses on essential computer vision, deep learning, and OpenCV topics
- ✓ 35+ Certificates of Completion
- ✓ 39+ hours of on-need video
- ✓ Brand new courses released regularly , ensuring y'all tin proceed up with state-of-the-art techniques
- ✓ Pre-configured Jupyter Notebooks in Google Colab
- ✓ Run all lawmaking examples in your web browser — works on Windows, macOS, and Linux (no dev environment configuration required!)
- ✓ Admission to centralized code repos for all 450+ tutorials on PyImageSearch
- ✓ Easy one-click downloads for code, datasets, pre-trained models, etc.
- ✓ Access on mobile, laptop, desktop, etc.
Click here to join PyImageSearch University
Summary
In today's tutorial I demonstrated:
- How to download and install VirtualBox, the software used to manage virtual machines.
- How to import and launch your Ubuntu deep learning virtual machine.
- How to access the deep learning evolution environment once Ubuntu has booted.
All purchases of my volume, Deep Learning for Computer Vision with Python, include a copy of my pre-configured virtual auto.
This virtual machine is past far the fastest manner to get upward and running with deep learning and computer vision using the Python programming language.
If y'all would like to learn more about my new book (and pick upward a re-create yourself), just click here.
Join the PyImageSearch Newsletter and Grab My Gratuitous 17-folio Resource Guide PDF
Enter your email address below to bring together the PyImageSearch Newsletter and download my FREE 17-page Resource Guide PDF on Calculator Vision, OpenCV, and Deep Learning.
Source: https://pyimagesearch.com/2017/09/22/deep-learning-python-ubuntu-virtual-machine/
Post a Comment for "Preparatory Work I Can Not Run ifconfig Successfully Please Check Your System and Try Again"