Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

get_imagenet10.sh 758 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  1. #!/bin/bash
  2. # Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
  3. # Download ILSVRC2012 ImageNet dataset https://image-net.org
  4. # Example usage: bash data/scripts/get_imagenet.sh
  5. # parent
  6. # ├── yolov5
  7. # └── datasets
  8. # └── imagenet ← downloads here
  9. # Arguments (optional) Usage: bash data/scripts/get_imagenet.sh --train --val
  10. if [ "$#" -gt 0 ]; then
  11. for opt in "$@"; do
  12. case "${opt}" in
  13. --train) train=true ;;
  14. --val) val=true ;;
  15. esac
  16. done
  17. else
  18. train=true
  19. val=true
  20. fi
  21. # Make dir
  22. d='../datasets/imagenet10' # unzip directory
  23. mkdir -p $d && cd $d
  24. # Download/unzip train
  25. wget https://github.com/ultralytics/yolov5/releases/download/v1.0/imagenet10.zip
  26. unzip imagenet10.zip && rm imagenet10.zip
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...