Open glenn-jocher opened 3 years ago
š Hello @glenn-jocher, thank you for your interest in š YOLOv5! Please visit our āļø Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution.
If this is a š Bug Report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.
If this is a custom training ā Question, please provide as much information as possible, including dataset images, training logs, screenshots, and a public link to online W&B logging if available.
For business inquiries or professional support requests please visit https://www.ultralytics.com.
Python 3.8 or later with all requirements.txt dependencies installed, including torch>=1.7
. To install run:
$ pip install -r requirements.txt
YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.
Hello, Thank you for this tutoriel, I'm using [Amazon EC2 P2 Instances], but the training is being done on CPU instead of GPU, I've activated the Pytorch environment,but the issue is still the same,can you help me with this please ?
@ghost hello,
Make sure you have PyTorch installed with GPU support (torch.cuda.is_available()
) and that your pytorch version matches your CUDA version. If that's the case, try adding --device 0
when running train.py to ensure training on the GPU.
For any additional issues, please consult the Ultralytics YOLOv5 documentation.
Best of luck!
This quickstart guide helps new users run YOLOv5 š on an Amazon Web Services (AWS) Deep Learning instance ā. AWS offers a Free Tier and a credit program to get started quickly and affordably. Other quickstart options for YOLOv5 include our Colab Notebook , GCP Deep Learning VM and our Docker image at https://hub.docker.com/r/ultralytics/yolov5 .
1. Console Sign-in
Create and account or sign-in to the AWS console at https://aws.amazon.com/console/ and then select the EC2 service.
2. Launch Instance
In the EC2 part of the AWS console, click the Launch instance button.
Choose an Amazon Machine Image (AMI)
Enter 'Deep Learning' in the search field and select the most recent Ubuntu Deep Learning AMI (recommended), or select an alternative Deep Learning AMI. See Choosing Your DLAMI for more information on selecting an AMI.
Select an Instance Type
A GPU instance is recommended for most deep learning purposes. Training new models will be faster on a GPU instance than a CPU instance. You can scale sub-linearly when you have multi-GPU instances or if you use distributed training across many instances with GPUs. To set up distributed training, seeĀ Distrbuted Training.
Note: The size of your model should be a factor in selecting an instance. If your model exceeds an instance's available RAM, select a different instance type with enough memory for your application.
Check outĀ EC2 Instance TypesĀ and choose Accelerated Computing to see the different GPU instance options.
DLAMI instances provide tooling to monitor and optimize your GPU processes. For more information on overseeing your GPU processes, seeĀ GPU Monitoring and Optimization. For pricing see On Demand Pricing and Spot Pricing.
Configure Instance Details
Amazon EC2 Spot Instances let you take advantage of unused EC2 capacity in the AWS cloud. Spot Instances are available at up to a 70% discount compared to On-Demand prices. We recommend a persistent spot instance, which will save your data and restart automatically when spot instance availability returns after spot instance termination. For full-price On-Demand instances leave these settings to their default values.
Complete Steps 4-7 to finalize your instance hardware and security settings and then launch the instance.
3. Connect to Instance
Select the check box next to your running instance, and then click connect. You can copy paste the SSH terminal command into a terminal of your choice to connect to your instance.
4. Run YOLOv5 š
Once you have logged in to your instance, clone this repo and install requirements.txt dependencies, including Python>=3.8 and PyTorch>=1.7.
Then get started training, testing and detecting!
Optional Extras
Add 64GB of swap memory (to
--cache
large datasets).