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>
57 lines
1.5 KiB
Bash
Executable File
57 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
# YOLOv5 🚀 by Ultralytics, AGPL-3.0 license
|
|
# Download COCO 2017 dataset http://cocodataset.org
|
|
# Example usage: bash data/scripts/get_coco.sh
|
|
# parent
|
|
# ├── yolov5
|
|
# └── datasets
|
|
# └── coco ← downloads here
|
|
|
|
# Arguments (optional) Usage: bash data/scripts/get_coco.sh --train --val --test --segments
|
|
if [ "$#" -gt 0 ]; then
|
|
for opt in "$@"; do
|
|
case "${opt}" in
|
|
--train) train=true ;;
|
|
--val) val=true ;;
|
|
--test) test=true ;;
|
|
--segments) segments=true ;;
|
|
esac
|
|
done
|
|
else
|
|
train=true
|
|
val=true
|
|
test=false
|
|
segments=false
|
|
fi
|
|
|
|
# Download/unzip labels
|
|
d='../datasets' # unzip directory
|
|
url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
|
|
if [ "$segments" == "true" ]; then
|
|
f='coco2017labels-segments.zip' # 168 MB
|
|
else
|
|
f='coco2017labels.zip' # 46 MB
|
|
fi
|
|
echo 'Downloading' $url$f ' ...'
|
|
curl -L $url$f -o $f -# && unzip -q $f -d $d && rm $f &
|
|
|
|
# Download/unzip images
|
|
d='../datasets/coco/images' # unzip directory
|
|
url=http://images.cocodataset.org/zips/
|
|
if [ "$train" == "true" ]; then
|
|
f='train2017.zip' # 19G, 118k images
|
|
echo 'Downloading' $url$f '...'
|
|
curl -L $url$f -o $f -# && unzip -q $f -d $d && rm $f &
|
|
fi
|
|
if [ "$val" == "true" ]; then
|
|
f='val2017.zip' # 1G, 5k images
|
|
echo 'Downloading' $url$f '...'
|
|
curl -L $url$f -o $f -# && unzip -q $f -d $d && rm $f &
|
|
fi
|
|
if [ "$test" == "true" ]; then
|
|
f='test2017.zip' # 7G, 41k images (optional)
|
|
echo 'Downloading' $url$f '...'
|
|
curl -L $url$f -o $f -# && unzip -q $f -d $d && rm $f &
|
|
fi
|
|
wait # finish background tasks
|