Update .pre-commit-config.yaml (#1026)

This commit is contained in:
Glenn Jocher
2023-02-17 22:26:40 +01:00
committed by GitHub
parent 9047d737f4
commit edd3ff1669
76 changed files with 928 additions and 935 deletions

View File

@ -55,4 +55,4 @@ download: |
for r in x[images == im]:
w, h = r[6], r[7] # image width, height
xywh = xyxy2xywh(np.array([[r[1] / w, r[2] / h, r[3] / w, r[4] / h]]))[0] # instance
f.write(f"{cls} {xywh[0]:.5f} {xywh[1]:.5f} {xywh[2]:.5f} {xywh[3]:.5f}\n") # write label
f.write(f"{cls} {xywh[0]:.5f} {xywh[1]:.5f} {xywh[2]:.5f} {xywh[3]:.5f}\n") # write label

View File

@ -112,4 +112,4 @@ download: |
urls = ['http://images.cocodataset.org/zips/train2017.zip', # 19G, 118k images
'http://images.cocodataset.org/zips/val2017.zip', # 1G, 5k images
'http://images.cocodataset.org/zips/test2017.zip'] # 7G, 41k images (optional)
download(urls, dir=dir / 'images', threads=3)
download(urls, dir=dir / 'images', threads=3)

View File

@ -98,4 +98,4 @@ names:
# Download script/URL (optional)
download: https://ultralytics.com/assets/coco128-seg.zip
download: https://ultralytics.com/assets/coco128-seg.zip

View File

@ -98,4 +98,4 @@ names:
# Download script/URL (optional)
download: https://ultralytics.com/assets/coco128.zip
download: https://ultralytics.com/assets/coco128.zip

View File

@ -98,4 +98,4 @@ names:
# Download script/URL (optional)
download: https://ultralytics.com/assets/coco8-seg.zip
download: https://ultralytics.com/assets/coco8-seg.zip

View File

@ -98,4 +98,4 @@ names:
# Download script/URL (optional)
download: https://ultralytics.com/assets/coco8.zip
download: https://ultralytics.com/assets/coco8.zip