Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v5 2 #5

Merged
merged 765 commits into from
Sep 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
765 commits
Select commit Hold shift + click to select a range
e8c5237
ConfusionMatrix `normalize=True` fix (#3587)
glenn-jocher Jun 11, 2021
4984cf5
train.py GPU memory fix (#3590)
glenn-jocher Jun 11, 2021
53d4fc2
W&B: Allow changed in config variable #3588
AyushExel Jun 11, 2021
7a565f1
Update `dataset_stats()` (#3593)
glenn-jocher Jun 12, 2021
88b1945
Delete __init__.py (#3596)
glenn-jocher Jun 12, 2021
3133607
Simplify README.md (#3530)
kalenmike Jun 13, 2021
f8adee1
merge develop
glenn-jocher Jun 14, 2021
6062319
Update datasets.py (#3591)
masoodazhar Jun 14, 2021
239a11c
Download COCO and VOC by default (#3608)
glenn-jocher Jun 14, 2021
daab682
Suppress wandb images size mismatch warning (#3611)
AyushExel Jun 14, 2021
4c5d9bf
Fix incorrect end epoch comment (#3612)
wq9 Jun 15, 2021
7d3686a
Update `check_file()` (#3622)
glenn-jocher Jun 15, 2021
30e4c4f
Update README.md (#3624)
glenn-jocher Jun 15, 2021
de56813
FROM nvcr.io/nvidia/pytorch:21.05-py3 (#3633)
glenn-jocher Jun 16, 2021
65f81bf
Add `**/*.torchscript.pt` (#3634)
glenn-jocher Jun 16, 2021
6c0e1d9
Update `verify_image_label()` (#3635)
glenn-jocher Jun 16, 2021
bb79e13
RUN pip install --no-cache -U torch torchvision (#3637)
glenn-jocher Jun 16, 2021
d808855
Assert non-premature end of JPEG images (#3638)
xiaowk5516 Jun 16, 2021
3ce0db8
Update CONTRIBUTING.md (#3645)
glenn-jocher Jun 16, 2021
6187edc
Update CONTRIBUTING.md (#3647)
glenn-jocher Jun 16, 2021
fa29125
`is_coco` list fix (#3646)
thanhminhmr Jun 16, 2021
df7706d
Update README.md (#3650)
SpongeBab Jun 17, 2021
9b6dba6
Update `dataset_stats()` to list of dicts (#3657)
glenn-jocher Jun 17, 2021
2754ada
Remove `/weights` directory (#3659)
glenn-jocher Jun 17, 2021
ac34834
Update download_weights.sh comment (#3662)
glenn-jocher Jun 17, 2021
6d6e2ca
Update train.py (#3667)
glenn-jocher Jun 17, 2021
fa201f9
Update `train(hyp, *args)` to accept `hyp` file or dict (#3668)
glenn-jocher Jun 17, 2021
045d5d8
Update TensorBoard (#3669)
glenn-jocher Jun 17, 2021
2296f15
Update `WORLD_SIZE` and `RANK` retrieval (#3670)
glenn-jocher Jun 17, 2021
f527704
Cache v0.3: improved corrupt image/label reporting (#3676)
glenn-jocher Jun 18, 2021
2729761
EMA changes for pre-model's batch_size (#3681)
ZouJiu1 Jun 18, 2021
463628a
Update README.md (#3684)
glenn-jocher Jun 18, 2021
814806c
Update cache check (#3691)
glenn-jocher Jun 19, 2021
bf209f6
Skip HSV augmentation when hyperparameters are [0, 0, 0] (#3686)
thanhminhmr Jun 19, 2021
bfb2276
Slightly modify CLI execution (#3687)
lb-desupervised Jun 19, 2021
5bab9a2
Reformat (#3694)
glenn-jocher Jun 19, 2021
fad27c0
Update DDP for `torch.distributed.run` with `gloo` backend (#3680)
glenn-jocher Jun 19, 2021
b3e2f4e
Eliminate `total_batch_size` variable (#3697)
glenn-jocher Jun 19, 2021
c1af67d
Add torch DP warning (#3698)
glenn-jocher Jun 19, 2021
fbf41e0
Add `train.run()` method (#3700)
glenn-jocher Jun 20, 2021
e8810a5
Update DDP backend `if dist.is_nccl_available()` (#3705)
glenn-jocher Jun 20, 2021
75c0ff4
[x]W&B: Don't resume transfer learning runs (#3604)
AyushExel Jun 21, 2021
1f69d12
Update 4 main ops for paths and .run() (#3715)
glenn-jocher Jun 21, 2021
b83e1a4
Fix `img2label_paths()` order (#3720)
glenn-jocher Jun 21, 2021
0e2d0d5
Fix typo (#3729)
fcakyon Jun 22, 2021
9ac7d38
Backwards compatible cache version checks (#3730)
glenn-jocher Jun 22, 2021
dfc5a52
Merge remote-tracking branch 'upstream/master' into update-to-v5-2
robinmaillot Jun 22, 2021
3182e4b
Update readme.
robinmaillot Jun 22, 2021
6306091
Update `check_datasets()` for dynamic unzip path (#3732)
glenn-jocher Jun 22, 2021
fdc2239
Create `data/hyps` directory (#3747)
glenn-jocher Jun 23, 2021
ae4261c
Force non-zero hyp evolution weights `w` (#3748)
glenn-jocher Jun 23, 2021
417a2f4
Edit comment (#3759)
developer0hye Jun 24, 2021
f79d747
Add optional dataset.yaml `path` attribute (#3753)
glenn-jocher Jun 24, 2021
03281f8
COCO annotations JSON fix (#3764)
glenn-jocher Jun 24, 2021
3749573
Add `xyxy2xywhn()` (#3765)
developer0hye Jun 25, 2021
f2d97eb
Remove DDP MultiHeadAttention fix (#3768)
glenn-jocher Jun 25, 2021
09246a5
fix/incorrect_fitness_import (#3770)
SkalskiP Jun 25, 2021
ffb6e11
W&B: Update Tables API and comply with new dataset_check (#3772)
AyushExel Jun 25, 2021
f899417
NGA xView 2018 Dataset Auto-Download (#3775)
glenn-jocher Jun 25, 2021
9dc5d35
Update README.md fix banner width (#3785)
glenn-jocher Jun 26, 2021
157aa2f
Objectness IoU Sort (#3610)
glenn-jocher Jun 26, 2021
8035b61
Update objectness IoU sort (#3786)
glenn-jocher Jun 26, 2021
bd581b3
Create hyp.scratch-p6.yaml (#3787)
glenn-jocher Jun 26, 2021
8e7f285
Fix datasets for aws and get_coco.sh (#3788)
glenn-jocher Jun 26, 2021
92d49fd
Update seeds for single-GPU reproducibility (#3789)
glenn-jocher Jun 26, 2021
07166ba
Update Usage examples (#3790)
glenn-jocher Jun 26, 2021
96c87f1
nvcr.io/nvidia/pytorch:21.06-py3 (#3791)
glenn-jocher Jun 26, 2021
5e6886c
Update Dockerfile (#3792)
glenn-jocher Jun 26, 2021
47543f9
FROM nvcr.io/nvidia/pytorch:21.05-py3 (#3794)
glenn-jocher Jun 26, 2021
5e976a2
Fix competition link (#3799)
batrlatom Jun 27, 2021
3974d72
Fix warmup `accumulate` (#3722)
yellowdolphin Jun 28, 2021
20d45aa
Add feature map visualization (#3804)
Zigars Jun 28, 2021
02719dd
Update `feature_visualization()` (#3807)
glenn-jocher Jun 28, 2021
3213d87
Fix for `dataset_stats()` with updated data.yaml (#3819)
glenn-jocher Jun 29, 2021
5ea771d
Move IoU functions to metrics.py (#3820)
glenn-jocher Jun 29, 2021
57c5d02
Concise `TransformerBlock()` (#3821)
glenn-jocher Jun 29, 2021
00fcfb5
Update setup.py to use utf8 everywhere.
robinmaillot Jun 29, 2021
0e5b5cb
Update setup.py to use utf8 everywhere again.
robinmaillot Jun 29, 2021
7d6af69
Fix `LoadStreams()` dataloader frame skip issue (#3833)
feras-oughali Jun 30, 2021
25d1f29
Plot `AutoShape()` detections in ascending order (#3843)
glenn-jocher Jun 30, 2021
c6c88dc
Copy-Paste augmentation for YOLOv5 (#3845)
glenn-jocher Jun 30, 2021
b686338
Created using Colaboratory
glenn-jocher Jul 2, 2021
4717a3b
Created using Colaboratory
glenn-jocher Jul 2, 2021
831773f
Add EXIF rotation to YOLOv5 Hub inference (#3852)
vaaliferov Jul 2, 2021
d3e9d69
`--evolve 300` generations CLI argument (#3863)
san-soucie Jul 4, 2021
9d86b54
Add multi-stream saving feature (#3864)
ketan-b Jul 4, 2021
bd88e7f
Created using Colaboratory
glenn-jocher Jul 4, 2021
81b3182
Models `*.yaml` reformat (#3875)
glenn-jocher Jul 4, 2021
9e8fb9f
Create `utils/augmentations.py` (#3877)
glenn-jocher Jul 4, 2021
3c3f8fb
Improved BGR2RGB speeds (#3880)
glenn-jocher Jul 4, 2021
8930e22
Evolution commented `hyp['anchors']` fix (#3887)
glenn-jocher Jul 5, 2021
6a3ee7c
Hub models `map_location=device` (#3894)
glenn-jocher Jul 5, 2021
33202b7
YOLOv5 + Albumentations integration (#3882)
glenn-jocher Jul 5, 2021
61047a2
Save PyTorch Hub models to `/root/hub/cache/dir` (#3904)
johnohagan Jul 7, 2021
87b094b
Feature visualization update (#3920)
glenn-jocher Jul 7, 2021
411842e
Fix `torch.hub.list('ultralytics/yolov5')` pathlib bug (#3921)
glenn-jocher Jul 7, 2021
588094e
Update `setattr()` default for Hub PIL images (#3923)
jmiranda-laplateforme Jul 7, 2021
850970e
`feature_visualization()` CUDA fix (#3925)
glenn-jocher Jul 7, 2021
8c6f9e1
Update `dataset_stats()` for zipped datasets (#3926)
glenn-jocher Jul 8, 2021
e7888af
Fix inconsistent NMS IoU value for COCO (#3934)
eldarkurtic Jul 8, 2021
dabad57
Created using Colaboratory
glenn-jocher Jul 8, 2021
248504c
Feature visualization improvements 32 (#3947)
glenn-jocher Jul 9, 2021
a26e7de
Update augmentations.py (#3948)
glenn-jocher Jul 9, 2021
443af8b
Cache v0.4 update (#3954)
glenn-jocher Jul 10, 2021
80299a5
Numerical stability fix for Albumentations (#3958)
glenn-jocher Jul 10, 2021
8298ce5
Update `albumentations>=1.0.2` (#3966)
glenn-jocher Jul 11, 2021
90e60b4
Update `np.random.random()` to `random.random()` (#3967)
glenn-jocher Jul 11, 2021
a544d59
Update requirements.txt `albumentations>=1.0.2` (#3972)
glenn-jocher Jul 11, 2021
647223a
`Ensemble()` visualize fix (#3973)
seven320 Jul 11, 2021
41fdf9f
Created using Colaboratory
glenn-jocher Jul 12, 2021
b3dabdc
Update `probability` to `p` (#3980)
glenn-jocher Jul 12, 2021
d204a61
Alert (no detections) (#3984)
glenn-jocher Jul 12, 2021
8ee9fd1
Update README.md (#3996)
glenn-jocher Jul 13, 2021
720aaa6
Rename `test.py` to `val.py` (#4000)
glenn-jocher Jul 14, 2021
62409ee
W&B sweeps support (#3938)
AyushExel Jul 14, 2021
b7e985e
Update greetings.yml (#4024)
glenn-jocher Jul 16, 2021
951922c
Add `--sync-bn` known issue (#4032)
glenn-jocher Jul 17, 2021
0067d95
Update greetings.yml (#4037)
glenn-jocher Jul 17, 2021
dd62e2d
Update README.md (#4041)
glenn-jocher Jul 17, 2021
9dd33fd
AutoShape PosixPath support (#4047)
glenn-jocher Jul 18, 2021
f7d8562
`val.py` refactor (#4053)
glenn-jocher Jul 19, 2021
b1be685
Module `super().__init__()` (#4065)
glenn-jocher Jul 19, 2021
c8a98cb
Missing `nc` and `names` handling in check_dataset() (#4066)
glenn-jocher Jul 19, 2021
ee76a68
Created using Colaboratory
glenn-jocher Jul 19, 2021
7fdcc77
Albumentations >= 1.0.3 (#4068)
glenn-jocher Jul 19, 2021
0cc7c58
W&B: fix refactor bugs (#4069)
AyushExel Jul 19, 2021
442a7ab
Refactor `export.py` (#4080)
glenn-jocher Jul 20, 2021
3bef77f
Addition refactor `export.py` (#4089)
glenn-jocher Jul 20, 2021
2c073cd
Add train.py ``--img-size` floor (#4099)
glenn-jocher Jul 21, 2021
4bad914
Update resume.py (#4115)
glenn-jocher Jul 22, 2021
4495e00
Fix indentation in `log_training_progress()` (#4126)
imyhxy Jul 23, 2021
39ef6c7
Update README.md (#4134)
glenn-jocher Jul 24, 2021
2e53844
ONNX inference update (#4073)
glenn-jocher Jul 24, 2021
264be1a
Rename `opset_version` to `opset` (#4135)
glenn-jocher Jul 24, 2021
63dd65e
Update train.py (#4136)
glenn-jocher Jul 24, 2021
efe60b5
Refactor train.py and val.py `loggers` (#4137)
glenn-jocher Jul 24, 2021
d17b45e
Update README.md (#4143)
glenn-jocher Jul 24, 2021
6e4358f
Add `export.py` ONNX inference suggestion (#4146)
glenn-jocher Jul 25, 2021
3764277
Created using Colaboratory
glenn-jocher Jul 25, 2021
96e36a7
New CSV Logger (#4148)
glenn-jocher Jul 25, 2021
8acb573
Created using Colaboratory
glenn-jocher Jul 25, 2021
f8e1148
Update dataset headers (#4162)
glenn-jocher Jul 26, 2021
0ad6301
Update script headers (#4163)
glenn-jocher Jul 26, 2021
63a1971
Improve docstrings and run names (#4174)
AyushExel Jul 27, 2021
3fef117
Update comments header (#4184)
glenn-jocher Jul 27, 2021
5d66e48
Train from `--data path/to/dataset.zip` feature (#4185)
glenn-jocher Jul 28, 2021
a8d3d5e
Merge remote-tracking branch 'upstream/master' into update-to-v5-2
robinmaillot Jul 28, 2021
1f31b7c
Create yolov5-bifpn.yaml (#4195)
glenn-jocher Jul 28, 2021
2683b18
Update Hub Path inputs (#4200)
glenn-jocher Jul 28, 2021
e88e8f7
W&B: Restructure code to support the new dataset_check() feature (#4197)
AyushExel Jul 28, 2021
e016b15
Update yolov5-bifpn.yaml (#4208)
glenn-jocher Jul 28, 2021
750465e
W&B: More improvements and refactoring (#4205)
AyushExel Jul 28, 2021
b60b62e
PyCharm reformat (#4209)
glenn-jocher Jul 28, 2021
7820614
Add `@try_except` decorator (#4224)
glenn-jocher Jul 29, 2021
c2c958c
Explicit `requirements.txt` location (#4225)
glenn-jocher Jul 29, 2021
18f6ba7
Suppress torch 1.9.0 max_pool2d() warning (#4227)
glenn-jocher Jul 29, 2021
083c13d
Created using Colaboratory
glenn-jocher Jul 29, 2021
1a10b0e
Created using Colaboratory
glenn-jocher Jul 29, 2021
8d3c3ef
Fix weight decay comment (#4228)
glenn-jocher Jul 29, 2021
9468657
Update profiler (#4236)
glenn-jocher Jul 30, 2021
bceb57b
Add `python train.py --freeze N` argument (#4238)
IneovaAI Jul 30, 2021
d8f1883
Update `profile()` for CUDA Memory allocation (#4239)
glenn-jocher Jul 30, 2021
b74929c
Add `train.py` and `val.py` callbacks (#4220)
kalenmike Jul 31, 2021
cd540d8
W&B: suppress warnings (#4257)
AyushExel Aug 1, 2021
53bfcbe
Update AP calculation (#4260)
glenn-jocher Aug 1, 2021
306fc01
Update Autoshape forward header (#4271)
glenn-jocher Aug 2, 2021
9c6732f
Update variables (#4273)
glenn-jocher Aug 2, 2021
587c4b4
Add `DWConvClass()` (#4274)
glenn-jocher Aug 2, 2021
388016e
Update 'results saved to' string (#4275)
glenn-jocher Aug 2, 2021
621caea
W&B: Fix sweep bug (#4276)
AyushExel Aug 2, 2021
2d99063
Feature `python train.py --cache disk` (#4049)
junjihashimoto Aug 2, 2021
771ac6c
Fixed logging level in distributed mode (#4284)
imyhxy Aug 3, 2021
4103ce9
Simplify callbacks (#4289)
glenn-jocher Aug 4, 2021
e78aeac
Evolve in CSV format (#4307)
glenn-jocher Aug 4, 2021
86c7150
Update newline (#4308)
glenn-jocher Aug 4, 2021
f409d8e
Update README.md (#4309)
Justsubh01 Aug 4, 2021
e96c74b
Simpler code for DWConvClass (#4310)
developer0hye Aug 5, 2021
ce7deec
`int(mlc)` (#4385)
glenn-jocher Aug 11, 2021
e7fc274
Fix module count in parse_model (#4379)
orangeccc Aug 11, 2021
b27f69f
Created using Colaboratory
glenn-jocher Aug 11, 2021
11e4aeb
Update README.md (#4387)
glenn-jocher Aug 11, 2021
75d323d
W&B: Add advanced features tutorial (#4384)
AyushExel Aug 11, 2021
a4e4553
W&B: Fix for 4360 (#4388)
AyushExel Aug 11, 2021
3e7c59a
Fix rename `utils.google_utils` to `utils.downloads` (#4393)
glenn-jocher Aug 11, 2021
57c342a
Simplify ONNX inference command (#4405)
glenn-jocher Aug 13, 2021
d9f23ed
No cache option for reading datasets (#4376)
ahmadmustafaanis Aug 13, 2021
e086347
Update plots.py (#4407)
glenn-jocher Aug 14, 2021
4e8c81a
Add `yolov5s-ghost.yaml` (#4412)
glenn-jocher Aug 14, 2021
63e09fd
Remove `encoding='ascii'` (#4413)
glenn-jocher Aug 14, 2021
2da4e7a
Merge PIL and OpenCV in `plot_one_box(use_pil=False)` (#4416)
glenn-jocher Aug 14, 2021
bb0aed1
Created using Colaboratory
glenn-jocher Aug 14, 2021
24bea5e
Standardize headers and docstrings (#4417)
glenn-jocher Aug 14, 2021
01cdb76
Add `SPPF()` layer (#4420)
glenn-jocher Aug 15, 2021
4e65052
Created using Colaboratory
glenn-jocher Aug 15, 2021
19d03a9
Remove DDP process group timeout (#4422)
glenn-jocher Aug 15, 2021
dbc06ce
Update hubconf.py attempt_load import (#4428)
OmidSa75 Aug 16, 2021
f3e3f76
TFLite prep (#4436)
glenn-jocher Aug 16, 2021
808bcad
Add TensorFlow and TFLite export (#1127)
zldrobit Aug 17, 2021
6dd7dd8
Fix default `--weights yolov5s.pt` (#4458)
glenn-jocher Aug 17, 2021
1d65e81
Fix missing labels after albumentations (#4455)
huuquan1994 Aug 18, 2021
d1182c4
`check_requirements(('coremltools',))` (#4478)
glenn-jocher Aug 18, 2021
7316b78
W&B: Refactor the wandb_utils.py file (#4496)
AyushExel Aug 23, 2021
7b1643b
Add `install=True` argument to `check_requirements` (#4512)
glenn-jocher Aug 23, 2021
79af114
Automatic TFLite uint8 determination (#4515)
glenn-jocher Aug 23, 2021
2da6444
Fix for `python models/yolo.py --profile` (#4541)
glenn-jocher Aug 25, 2021
11f85e7
Auto-fix corrupt JPEGs (#4548)
glenn-jocher Aug 26, 2021
e899d6e
Fix for corrupt JPEGs auto-fix PR (#4560)
glenn-jocher Aug 27, 2021
8ac96b7
Fix for AP calculation limits 0.0 - 1.0 (#4563)
glenn-jocher Aug 27, 2021
8b18b66
ONNX opset 13 (#4566)
glenn-jocher Aug 27, 2021
93cc015
Add EarlyStopping feature (#4576)
glenn-jocher Aug 28, 2021
d7aa3f1
Remove `image_weights` DDP code (#4579)
glenn-jocher Aug 28, 2021
bbfafea
Add `Profile()` profiler (#4587)
glenn-jocher Aug 29, 2021
7b35971
Fix bug in `plot_one_box` when label is `None` (#4588)
karasawatakumi Aug 29, 2021
de44376
Create `Annotator()` class (#4591)
glenn-jocher Aug 29, 2021
e5e5ebc
Auto-UTF handling (#4594)
glenn-jocher Aug 29, 2021
dbbc6b5
Re-order `plots.py` to class-first (#4595)
glenn-jocher Aug 29, 2021
bfad364
Created using Colaboratory
glenn-jocher Aug 29, 2021
b894e69
Update mosaic plots font size (#4596)
glenn-jocher Aug 29, 2021
dc13820
TensorBoard `on_train_end()` speed improvements (#4605)
glenn-jocher Aug 30, 2021
bb4da08
Created using Colaboratory
glenn-jocher Aug 30, 2021
e7d1842
Auto-download Arial.ttf on init (#4606)
glenn-jocher Aug 30, 2021
35fe031
Fix: add P2 layer 21 to yolov5-p2.yaml `Detect()` inputs (#4608)
YukunXia Aug 30, 2021
3a72d4a
Update `check_git_status()` warning (#4610)
glenn-jocher Aug 30, 2021
11e7c7b
W&B: Don't log models in evolve operation (#4611)
AyushExel Aug 30, 2021
bb5ebc2
Close `matplotlib` plots after opening (#4612)
glenn-jocher Aug 30, 2021
50a9828
DDP `torch.jit.trace()` `--sync-bn` fix (#4615)
glenn-jocher Aug 30, 2021
ba0f808
Fix for Arial.ttf redownloads with hub inference (#4627)
glenn-jocher Aug 31, 2021
a4e8f78
Fix 2 for Arial.ttf redownloads with hub inference (#4628)
glenn-jocher Aug 31, 2021
de534e9
Fix 3 for Arial.ttf redownloads with hub inference (#4629)
glenn-jocher Aug 31, 2021
fda85a5
Checkpoint code.
robinmaillot Sep 1, 2021
234e8ae
Fix for `plot_evolve()` string argument (#4639)
glenn-jocher Sep 1, 2021
fad57c2
Fix `is_coco` on missing `data['val']` key (#4642)
glenn-jocher Sep 1, 2021
c610bc4
Fix workers to 1 for windows and fix issue with image_size not being …
robinmaillot Sep 2, 2021
730970b
Merge branch 'master' into modify_wandb
robinmaillot Sep 2, 2021
c0ee52e
Merge branch 'modify_wandb' into update-to-v5-2
robinmaillot Sep 2, 2021
aa2432f
Remove mojo files.
robinmaillot Sep 2, 2021
b20b128
Add mojo_test.py and update gitignore.
robinmaillot Sep 2, 2021
d16ac8f
Move entity and project to variables.
robinmaillot Sep 2, 2021
4e0abe6
Update installation of dependencies to only if needed and make whl se…
robinmaillot Sep 2, 2021
87fc7ff
Fix missing parameter in _find_module_wheel_path.
robinmaillot Sep 2, 2021
0195cbc
Remove extra prints.
robinmaillot Sep 3, 2021
c379794
Fix weights download bug and pretraining always using yolov5s weights.
robinmaillot Sep 3, 2021
4e5279e
Update code to work with Ultralytics YOLOv5:4 env.
robinmaillot Sep 3, 2021
8b16998
Add confidence threshold plot
vnoblet-nanovare Sep 14, 2021
c16dad8
Minor cleanup of azure_wrapper.
robinmaillot Sep 20, 2021
a114edc
Merge branch 'update-to-v5-2' of https://github.com/robin-maillot/yol…
vnoblet-nanovare Sep 20, 2021
1b9d689
Fix click/typer incompatibility before 4.0.0
robinmaillot Sep 20, 2021
066de6e
Merge branch 'update-to-v5-2' of https://github.com/robin-maillot/yol…
robinmaillot Sep 20, 2021
2c35fc5
Restore gitignore and remove wrong error import print in Azure wrapper.
robinmaillot Sep 21, 2021
de2e75c
Fix wrong typer version in requirements.
robinmaillot Sep 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ output
coco
storage.googleapis.com

*.ttf
data/samples/*
**/results*.txt
**/results*.csv
*.jpg

# Neural Network weights -----------------------------------------------------------------------------------------------
**/*.weights
**/*.pt
**/*.pth
**/*.onnx
**/*.mlmodel
**/*.torchscript
**/*.torchscript.pt


# Below Copied From .gitignore -----------------------------------------------------------------------------------------
Expand Down Expand Up @@ -49,6 +50,7 @@ sdist/
var/
wheels/
*.egg-info/
# wandb/
.installed.cfg
*.egg

Expand Down
5 changes: 5 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These are supported funding model platforms

github: glenn-jocher
patreon: ultralytics
open_collective: ultralytics
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
---
name: "\U0001F41BBug report"
name: "🐛 Bug report"
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

Before submitting a bug report, please be aware that your issue **must be reproducible** with all of the following, otherwise it is non-actionable, and we can not help you:
- **Current repo**: run `git fetch && git status -uno` to check and `git pull` to update repo
- **Common dataset**: coco.yaml or coco128.yaml
- **Common environment**: Colab, Google Cloud, or Docker image. See https://github.com/ultralytics/yolov5#environments

If this is a custom dataset/training question you **must include** your `train*.jpg`, `test*.jpg` and `results.png` figures, or we can not help you. You can generate these with `utils.plot_results()`.
Before submitting a bug report, please be aware that your issue **must be reproducible** with all of the following,
otherwise it is non-actionable, and we can not help you:

- **Current repo**: run `git fetch && git status -uno` to check and `git pull` to update repo
- **Common dataset**: coco.yaml or coco128.yaml
- **Common environment**: Colab, Google Cloud, or Docker image. See https://github.com/ultralytics/yolov5#environments

If this is a custom dataset/training question you **must include** your `train*.jpg`, `val*.jpg` and `results.png`
figures, or we can not help you. You can generate these with `utils.plot_results()`.

## 🐛 Bug
A clear and concise description of what the bug is.

A clear and concise description of what the bug is.

## To Reproduce (REQUIRED)

Input:

```
import torch

Expand All @@ -30,6 +33,7 @@ c = a / 0
```

Output:

```
Traceback (most recent call last):
File "/Users/glennjocher/opt/anaconda3/envs/env1/lib/python3.7/site-packages/IPython/core/interactiveshell.py", line 3331, in run_code
Expand All @@ -39,17 +43,17 @@ Traceback (most recent call last):
RuntimeError: ZeroDivisionError
```


## Expected behavior
A clear and concise description of what you expected to happen.

A clear and concise description of what you expected to happen.

## Environment
If applicable, add screenshots to help explain your problem.

- OS: [e.g. Ubuntu]
- GPU [e.g. 2080 Ti]
If applicable, add screenshots to help explain your problem.

- OS: [e.g. Ubuntu]
- GPU [e.g. 2080 Ti]

## Additional context

Add any other context about the problem here.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: "\U0001F680Feature request"
name: "🚀 Feature request"
about: Suggest an idea for this project
title: ''
labels: enhancement
Expand All @@ -8,11 +8,13 @@ assignees: ''
---

## 🚀 Feature

<!-- A clear and concise description of the feature proposal -->

## Motivation

<!-- Please outline the motivation for the proposal. Is your feature request related to a problem? e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->
<!-- Please outline the motivation for the proposal. Is your feature request related to a problem?
e.g., I'm always frustrated when [...]. If this is related to another GitHub issue, please link here too -->

## Pitch

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ assignees: ''

## ❔Question


## Additional context
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: pip
directory: "/"
schedule:
interval: weekly
time: "04:00"
open-pull-requests-limit: 10
reviewers:
- glenn-jocher
labels:
- dependencies
28 changes: 16 additions & 12 deletions .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license

name: CI CPU testing

on: # https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # https://help.github.com/en/actions/reference/events-that-trigger-workflows
push:
branches: [master, develop]
pull_request:
schedule:
- cron: "0 0 * * *"
# The branches below must be a subset of the branches above
branches: [master, develop]

jobs:
cpu-tests:
Expand Down Expand Up @@ -45,7 +48,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -qr requirements.txt -f https://download.pytorch.org/whl/cpu/torch_stable.html
pip install -q onnx
pip install -q onnx onnx-simplifier coremltools # for export
python --version
pip --version
pip list
Expand All @@ -63,14 +66,15 @@ jobs:
di=cpu # inference devices # define device

# train
python train.py --img 256 --batch 8 --weights weights/${{ matrix.model }}.pt --cfg models/${{ matrix.model }}.yaml --epochs 1 --device $di
python train.py --img 128 --batch 16 --weights ${{ matrix.model }}.pt --cfg ${{ matrix.model }}.yaml --epochs 1 --device $di
# detect
python detect.py --weights weights/${{ matrix.model }}.pt --device $di
python detect.py --weights runs/exp0/weights/last.pt --device $di
# test
python test.py --img 256 --batch 8 --weights weights/${{ matrix.model }}.pt --device $di
python test.py --img 256 --batch 8 --weights runs/exp0/weights/last.pt --device $di
python detect.py --weights ${{ matrix.model }}.pt --device $di
python detect.py --weights runs/train/exp/weights/last.pt --device $di
# val
python val.py --img 128 --batch 16 --weights ${{ matrix.model }}.pt --device $di
python val.py --img 128 --batch 16 --weights runs/train/exp/weights/last.pt --device $di

python models/yolo.py --cfg models/${{ matrix.model }}.yaml # inspect
python models/export.py --img 256 --batch 1 --weights weights/${{ matrix.model }}.pt # export
python hubconf.py # hub
python models/yolo.py --cfg ${{ matrix.model }}.yaml # inspect
python export.py --img 128 --batch 1 --weights ${{ matrix.model }}.pt --include onnx torchscript # export
shell: bash
54 changes: 54 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This action runs GitHub's industry-leading static analysis engine, CodeQL, against a repository's source code to find security vulnerabilities.
# https://github.com/github/codeql-action

name: "CodeQL"

on:
schedule:
- cron: '0 0 1 * *' # Runs at 00:00 UTC on the 1st of every month

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
language: ['python']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
# Learn more:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
47 changes: 36 additions & 11 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license

name: Greetings

on: [pull_request_target, issues]
Expand All @@ -10,26 +12,49 @@ jobs:
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
pr-message: |
Hello @${{ github.actor }}, thank you for submitting a PR! To allow your work to be integrated as seamlessly as possible, we advise you to:
- Verify your PR is **up-to-date with origin/master.** If your PR is behind origin/master update by running the following, replacing 'feature' with the name of your local branch:
👋 Hello @${{ github.actor }}, thank you for submitting a 🚀 PR! To allow your work to be integrated as seamlessly as possible, we advise you to:
- Verify your PR is **up-to-date with origin/master.** If your PR is behind origin/master an automatic [GitHub actions](https://github.com/ultralytics/yolov5/blob/master/.github/workflows/rebase.yml) rebase may be attempted by including the /rebase command in a comment body, or by running the following code, replacing 'feature' with the name of your local branch:
```bash
git remote add upstream https://github.com/ultralytics/yolov5.git
git fetch upstream
git checkout feature # <----- replace 'feature' with local branch name
git rebase upstream/master
git push -u origin -f
```
- Verify all Continuous Integration (CI) **checks are passing**.
- Reduce changes to the absolute **minimum** required for your bug fix or feature addition. _"It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is."_ -Bruce Lee
- Verify all Continuous Integration (CI) **checks are passing**.
- Reduce changes to the absolute **minimum** required for your bug fix or feature addition. _"It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is."_ -Bruce Lee

issue-message: |
Hello @${{ github.actor }}, thank you for your interest in our work! Please visit our [Custom Training Tutorial](https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data) to get started, and see our [Jupyter Notebook](https://github.com/ultralytics/yolov5/blob/master/tutorial.ipynb) <a href="https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a>, [Docker Image](https://hub.docker.com/r/ultralytics/yolov5), and [Google Cloud Quickstart Guide](https://github.com/ultralytics/yolov5/wiki/GCP-Quickstart) for example environments.
👋 Hello @${{ github.actor }}, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ [Tutorials](https://github.com/ultralytics/yolov5/wiki#tutorials) to get started, where you can find quickstart guides for simple tasks like [Custom Data Training](https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data) all the way to advanced concepts like [Hyperparameter Evolution](https://github.com/ultralytics/yolov5/issues/607).

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](https://github.com/ultralytics/yolov5/wiki/Train-Custom-Data#visualize) if available.

For business inquiries or professional support requests please visit https://ultralytics.com or email Glenn Jocher at [email protected].

## Requirements

[**Python>=3.6.0**](https://www.python.org/) with all [requirements.txt](https://github.com/ultralytics/yolov5/blob/master/requirements.txt) installed including [**PyTorch>=1.7**](https://pytorch.org/get-started/locally/). To get started:
```bash
$ git clone https://github.com/ultralytics/yolov5
$ cd yolov5
$ pip install -r requirements.txt
```

## Environments

YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including [CUDA](https://developer.nvidia.com/cuda)/[CUDNN](https://developer.nvidia.com/cudnn), [Python](https://www.python.org/) and [PyTorch](https://pytorch.org/) preinstalled):

- **Google Colab and Kaggle** notebooks with free GPU: <a href="https://colab.research.google.com/github/ultralytics/yolov5/blob/master/tutorial.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> <a href="https://www.kaggle.com/ultralytics/yolov5"><img src="https://kaggle.com/static/images/open-in-kaggle.svg" alt="Open In Kaggle"></a>
- **Google Cloud** Deep Learning VM. See [GCP Quickstart Guide](https://github.com/ultralytics/yolov5/wiki/GCP-Quickstart)
- **Amazon** Deep Learning AMI. See [AWS Quickstart Guide](https://github.com/ultralytics/yolov5/wiki/AWS-Quickstart)
- **Docker Image**. See [Docker Quickstart Guide](https://github.com/ultralytics/yolov5/wiki/Docker-Quickstart) <a href="https://hub.docker.com/r/ultralytics/yolov5"><img src="https://img.shields.io/docker/pulls/ultralytics/yolov5?logo=docker" alt="Docker Pulls"></a>


If this is a bug report, please provide screenshots and **minimum viable code to reproduce your issue**, otherwise we can not help you.
## Status

If this is a custom model or data training question, please note Ultralytics does **not** provide free personal support. As a leader in vision ML and AI, we do offer professional consulting, from simple expert advice up to delivery of fully customized, end-to-end production solutions for our clients, such as:
- **Cloud-based AI** systems operating on **hundreds of HD video streams in realtime.**
- **Edge AI** integrated into custom iOS and Android apps for realtime **30 FPS video inference.**
- **Custom data training**, hyperparameter evolution, and model exportation to any destination.
![CI CPU testing](https://github.com/ultralytics/yolov5/workflows/CI%20CPU%20testing/badge.svg)

For more information please visit https://www.ultralytics.com.
If this badge is green, all [YOLOv5 GitHub Actions](https://github.com/ultralytics/yolov5/actions) Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training ([train.py](https://github.com/ultralytics/yolov5/blob/master/train.py)), validation ([val.py](https://github.com/ultralytics/yolov5/blob/master/val.py)), inference ([detect.py](https://github.com/ultralytics/yolov5/blob/master/detect.py)) and export ([export.py](https://github.com/ultralytics/yolov5/blob/master/export.py)) on MacOS, Windows, and Ubuntu every 24 hours and on every commit.

26 changes: 23 additions & 3 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license

name: Close stale issues
on:
schedule:
Expand All @@ -7,11 +9,29 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v1
- uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
stale-pr-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
stale-issue-message: |
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional [YOLOv5](https://ultralytics.com/yolov5) 🚀 resources:
- **Wiki** – https://github.com/ultralytics/yolov5/wiki
- **Tutorials** – https://github.com/ultralytics/yolov5#tutorials
- **Docs** – https://docs.ultralytics.com

Access additional [Ultralytics](https://ultralytics.com) ⚡ resources:
- **Ultralytics HUB** – https://ultralytics.com
- **Vision API** – https://ultralytics.com/yolov5
- **About Us** – https://ultralytics.com/about
- **Join Our Team** – https://ultralytics.com/work
- **Contact Us** – https://ultralytics.com/contact

Feel free to inform us of any other **issues** you discover or **feature requests** that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐!

stale-pr-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions YOLOv5 🚀 and Vision AI ⭐.'
days-before-stale: 30
days-before-close: 5
exempt-issue-labels: 'documentation,tutorial'
Expand Down
Loading