Yeşil çek
Panoya kopyalanan bağlantı

Train Ultralytics YOLO11 using the JupyterLab integration

Explore computer vision model development with the JupyterLab integration. You can train Ultralytics YOLO11 models and test results seamlessly in one workspace.

Working on computer vision models can be exciting, especially when you see your model performing well. Typically, the computer vision development process involves several straightforward steps, like preparing datasets and fine-tuning models, such as Ultralytics YOLO11. However, there are a few parts of this process that can be challenging for beginners like setting up a development environment. That’s exactly why Ultralytics supports integrations like JupyterLab that can make these steps easier.

Specifically, the Jupyterlab integration offers an interactive and user-friendly development environment that makes exploring and experimenting with computer vision models simple. Jupyterlab provides you with an integrated workspace. Using it, you can dive right into exploring and building computer vision models without the distraction of installing and setting up environments. 

For example, JupyterLab delivers tools and features such as notebooks for running code, text editors for creating documentation, and terminals for interacting with the system. In fact, JupyterLab lets you easily experiment with and train Ultralytics YOLO11 models directly on your computer. In this article, we’ll explore its integration with YOLO11, how it works, and the benefits it offers.

What is JupyterLab?

JupyterLab is a web-based tool that helps you write and run code, organize data, and create visual reports all in one place. It’s part of Project Jupyter, which started in 2014 to make coding more interactive and user-friendly. Built as an upgrade to Jupyter Notebook, it was first released in 2018 and is commonly used for tasks like analyzing data, creating charts, and building machine learning models.

JupyterLab lets you work with code and data interactively, making experimenting with and exploring ideas simple. You can also create and share documents that seamlessly combine code, text, and visuals - ideal for collaboration and presentations. On top of that, its flexible interface lets you organize tools like notebooks, text files, and terminals side by side, and plugins can be added to further expand its functionality to fit your project’s needs.

Fig 1. Components of JupyterLab.

Here are some other interesting features of JupyterLab:

  • Easy project creation: JupyterLab makes it easy to create and share projects with visuals like charts, graphs, and dashboards, along with images, videos, and other media. 
  • Collaborate with others: You can easily collaborate with others by sharing notebooks and keeping track of changes using tools like Git. 
  • Great for beginners: It's popular in classrooms for teaching coding and data analysis, in research for testing ideas, and in development for tasks like software testing and managing data workflows.

Using JupyterLab to work on Ultralytics YOLO11 projects

Now that we have a better understanding of what JupyterLab is, let’s explore what exactly the JupyterLab integration encompasses and how you can leverage it when working with YOLO11. 

JupyterLab is a great tool for working on projects with Ultralytics YOLO11 models. It simplifies the development process by providing an all-in-one environment where you can manage tasks and documents without switching between platforms. The interactive interface lets you run code and see results instantly, which is perfect for exploring data or understanding how your YOLO11 model is performing. You can also use extensions like Plotly to create interactive charts that help visualize and refine your YOLO11 models.

For example, let’s say you’re working on an innovative project involving AI in healthcare. You’re planning to custom-train YOLO11 to help doctors with real-time object detection of tumors in X-ray or CT scan images. YOLO11 can be trained using a dataset of labeled medical images that highlight both normal and abnormal areas. With the JupyterLab integration, you can train and fine-tune YOLO11 models directly in a collaborative, code-friendly environment. It also offers tools for managing datasets, running experiments, and validating model accuracy, making it easier and more efficient to adopt Vision AI in healthcare.

How the JupyterLab integration works

Custom-training YOLO11 models on JupyterLab is straightforward. The platform is similar to its predecessor, Jupyter Notebook or Google Colab, and provides a pre-configured environment that makes it easy to get started.

To set up JupyterLab for your YOLO11 project, start by downloading the `tutorial.ipynb` file from the Ultralytics GitHub repository and saving it to your preferred directory. Next, open any code editor or terminal and execute the command `pip install jupyterlab` to install JupyterLab. The platform will automatically open and display the window shown below.

Fig 2. JupyterLab’s initial startup page.

Once the installation is complete, navigate to the directory where you saved the notebook file and run the command `jupyter lab` to launch the platform. This will open JupyterLab in your default web browser, where you can load the `tutorial.ipynb` file and start exploring YOLO11. In this interactive environment, you can run the code in the notebook cell by cell, adjust settings, and see results instantly. JupyterLab makes it easy to view outputs, take notes, and try out different setups all in one place. 

Fig 3. Opening the YOLO11 tutorial.ipynb notebook in JupyterLab’s interface.

To get a better understanding of the process of training Ultralytics YOLO models and best practices, you can refer to the official Ultralytics documentation

Choosing the Jupyterlab integration: why it stands out

While exploring the Ultralytics integrations documentation, you'll notice there's a wide variety of integrations to choose from. Some of them even offer similar features. For example, the Google Colab integration offers a notebook-style environment that supports training YOLO11, including custom-training a pre-trained model for specific tasks. With so many integrations, it’s important to keep in mind what makes the JupyterLab integration unique. 

One of the key advantages of using the JupyterLab integration is its support for extensions. These extensions can make a substantial difference in your computer vision project and streamline the model development process. For instance, you can use the Git extensions to track your progress, share your work with others, and ensure your code is always well maintained – all without leaving the JupyterLab interface.

Here are some other reasons why the JupyterLab integrations might be a great choice for your project:

  • Easy cell management: Managing different cells in JupyterLab is easy. Instead of the tedious cut-and-paste method, you can drag and drop cells to rearrange them.
  • Cross-notebook cell copying: You can easily copy cells between different notebooks by dragging and dropping cells from one notebook to another.
  • Multiple views: JupyterLab supports multiple views of the same notebook, which is particularly useful for long notebooks. You can open different sections next to each other to compare or explore them, and any changes you make in one view will appear in the other.
  • Easy switch to classic notebook view: For those who are more familiar with the classic Jupyter Notebook interface, JupyterLab offers an easy switch back. You can simply replace “/lab” in the browser link with “/tree” to return to the familiar notebook view.

Applications of the JupyterLab integration and YOLO11

Next, let’s explore some practical applications of working on YOLO11 using the JupyterLab integration.

For instance, a developer working on wildlife monitoring technologies can use the JupyterLab integration to train a YOLO11 model. By custom-training YOLO11, they can build computer vision applications that identify endangered species from drone footage. JupyterLab makes this process easier by providing a single workspace for exploring data, preprocessing, and training models. Developers can run code, test models, and view results all in one place, keeping the workflow simple and organized.

Fig 4. An example of using Ultralytics YOLO models to detect wildlife species.

Beyond wildlife conservation, the reliable combination of YOLO11 and JupyterLab can be used in a variety of real-world applications, such as:

  • Computer vision in agriculture: YOLO11’s support for various computer vision tasks can assist in detecting crop diseases, monitoring plant growth, or identifying weeds from drone or satellite images, with JupyterLab streamlining data analysis and model optimization.
  • Quality control in manufacturing: By analyzing images in real time, YOLO11 can identify defects in products on assembly lines, while JupyterLab provides a centralized environment for refining models and evaluating results.
  • AI in logistics: Tasks like inventory tracking and package scanning can be automated using YOLO11, which detects objects in images and places bounding boxes around them to indicate their locations, while JupyterLab provides tools to efficiently train, validate, and test models using logistics data.

Benefits of the Jupyterlab integration

Here’s a quick glance at some of the unique ways in which the JupyterLab integration benefits vision AI in general:

  • Remote access and scalability: It can run on both cloud platforms and remote servers, allowing access to powerful computing resources and collaborative research.
  • Support for multiple programming languages: While Python is the most commonly used language, JupyterLab supports other languages like R, Julia, and Scala, making it versatile for diverse workflows.
  • Data integration: JupyterLab integrates seamlessly with databases, cloud storage, and data processing tools, making it easier to handle large datasets required for Vision AI training.

Önemli çıkarımlar

The JupyterLab integration is a useful tool that makes working with computer vision models like YOLO11 easier. It gives you a single workspace where you can organize your data, train and test custom models, and work with other developers. With its helpful extensions and add-ons, you can focus on building and improving your models instead of worrying about setting up your work environment. 

Whether you're helping protect wildlife, improving medical scans, or checking product quality in factories, the JupyterLab integration supported by Ultralytics makes the process simpler and more efficient.

Join our community and check out our GitHub repository or guides to learn about AI. You can also explore more applications like computer vision in manufacturing or AI in self-driving cars on our solutions pages.

Facebook logosuTwitter logosuLinkedIn logosuKopya-bağlantı sembolü

Bu kategoride daha fazlasını okuyun

Yapay zekanın gelecekteki
adresini birlikte inşa edelim!

Makine öğreniminin geleceği ile yolculuğunuza başlayın