mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
* Update LICENSE to AGPL-3.0 This pull request updates the license of the YOLOv5 project from GNU General Public License v3.0 (GPL-3.0) to GNU Affero General Public License v3.0 (AGPL-3.0). We at Ultralytics have decided to make this change in order to better protect our intellectual property and ensure that any modifications made to the YOLOv5 source code will be shared back with the community when used over a network. AGPL-3.0 is very similar to GPL-3.0, but with an additional clause to address the use of software over a network. This change ensures that if someone modifies YOLOv5 and provides it as a service over a network (e.g., through a web application or API), they must also make the source code of their modified version available to users of the service. This update includes the following changes: - Replace the `LICENSE` file with the AGPL-3.0 license text - Update the license reference in the `README.md` file - Update the license headers in source code files We believe that this change will promote a more collaborative environment and help drive further innovation within the YOLOv5 community. Please review the changes and let us know if you have any questions or concerns. Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Update headers to AGPL-3.0 --------- Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
52 lines
1.6 KiB
Bash
Executable File
52 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
# YOLOv5 🚀 by Ultralytics, AGPL-3.0 license
|
|
# Download ILSVRC2012 ImageNet dataset https://image-net.org
|
|
# Example usage: bash data/scripts/get_imagenet.sh
|
|
# parent
|
|
# ├── yolov5
|
|
# └── datasets
|
|
# └── imagenet ← downloads here
|
|
|
|
# Arguments (optional) Usage: bash data/scripts/get_imagenet.sh --train --val
|
|
if [ "$#" -gt 0 ]; then
|
|
for opt in "$@"; do
|
|
case "${opt}" in
|
|
--train) train=true ;;
|
|
--val) val=true ;;
|
|
esac
|
|
done
|
|
else
|
|
train=true
|
|
val=true
|
|
fi
|
|
|
|
# Make dir
|
|
d='../datasets/imagenet' # unzip directory
|
|
mkdir -p $d && cd $d
|
|
|
|
# Download/unzip train
|
|
if [ "$train" == "true" ]; then
|
|
wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_train.tar # download 138G, 1281167 images
|
|
mkdir train && mv ILSVRC2012_img_train.tar train/ && cd train
|
|
tar -xf ILSVRC2012_img_train.tar && rm -f ILSVRC2012_img_train.tar
|
|
find . -name "*.tar" | while read NAME; do
|
|
mkdir -p "${NAME%.tar}"
|
|
tar -xf "${NAME}" -C "${NAME%.tar}"
|
|
rm -f "${NAME}"
|
|
done
|
|
cd ..
|
|
fi
|
|
|
|
# Download/unzip val
|
|
if [ "$val" == "true" ]; then
|
|
wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_val.tar # download 6.3G, 50000 images
|
|
mkdir val && mv ILSVRC2012_img_val.tar val/ && cd val && tar -xf ILSVRC2012_img_val.tar
|
|
wget -qO- https://raw.githubusercontent.com/soumith/imagenetloader.torch/master/valprep.sh | bash # move into subdirs
|
|
fi
|
|
|
|
# Delete corrupted image (optional: PNG under JPEG name that may cause dataloaders to fail)
|
|
# rm train/n04266014/n04266014_10835.JPEG
|
|
|
|
# TFRecords (optional)
|
|
# wget https://raw.githubusercontent.com/tensorflow/models/master/research/slim/datasets/imagenet_lsvrc_2015_synsets.txt
|