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

pull updates from original repo (release v5) + reimplement UI #21

Merged
merged 257 commits into from
May 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
257 commits
Select commit Hold shift + click to select a range
4501169
Update yolo.py with yaml.SafeLoader (#1970)
Anon-Artist Jan 18, 2021
17751b9
Update autoanchor.py with yaml.SafeLoader (#1971)
Anon-Artist Jan 18, 2021
e9941d5
Update train.py with yaml.SafeLoader (#1972)
Anon-Artist Jan 18, 2021
b1cf25d
check_git_status() asserts (#1977)
glenn-jocher Jan 18, 2021
1ca2d26
Update Dockerfile (#1982)
glenn-jocher Jan 19, 2021
d921214
Add xywhn2xyxy() (#1983)
glenn-jocher Jan 19, 2021
046c37e
verbose on final_epoch (#1997)
glenn-jocher Jan 21, 2021
1445ab2
check_git_status() Windows fix (#2015)
glenn-jocher Jan 22, 2021
8dc68fc
Update Dockerfile (#2016)
glenn-jocher Jan 22, 2021
77fd832
Update google_utils.py (#2017)
glenn-jocher Jan 22, 2021
85b75d6
Update ci-testing.yml (#2018)
glenn-jocher Jan 22, 2021
aac33f8
Update inference multiple-counting (#2019)
glenn-jocher Jan 22, 2021
3b7feea
Update general.py check_git_status() fix (#2020)
glenn-jocher Jan 22, 2021
2fc4760
Update autoshape .print() and .save() (#2022)
glenn-jocher Jan 23, 2021
9a3da79
Update requirements.txt (#2021)
glenn-jocher Jan 23, 2021
c76c607
PyYAML==5.4.1 (#2030)
glenn-jocher Jan 24, 2021
3551b07
Docker pyYAML>=5.3.1 fix (#2031)
glenn-jocher Jan 24, 2021
a41d910
data-autodownload background tasks (#2034)
glenn-jocher Jan 25, 2021
8fcbe43
Check im.format during dataset caching (#2042)
glenn-jocher Jan 26, 2021
d68afed
Confusion matrix native image-space fix (#2046)
ramonhollands Jan 26, 2021
08d3119
Add histogram equalization fcn (#2049)
glenn-jocher Jan 27, 2021
59c21c7
W&B log epoch (#1946)
glenn-jocher Jan 27, 2021
f59f801
Add 'exclude' tuple to check_requirements() (#2041)
glenn-jocher Jan 27, 2021
2a835c7
Update run-once lines (#2058)
glenn-jocher Jan 28, 2021
f639e14
Metric-Confidence plots feature addition (#2057)
glenn-jocher Jan 28, 2021
630ec06
Update to colors.TABLEAU_COLORS (#2069)
glenn-jocher Jan 28, 2021
2acbe96
W&B epoch logging update (#2073)
glenn-jocher Jan 29, 2021
6bfa9c2
GhostConv update (#2082)
glenn-jocher Jan 29, 2021
6e6f77b
Add YOLOv5-P6 models (#2083)
glenn-jocher Jan 29, 2021
64628d6
Update tutorial.ipynb
glenn-jocher Jan 29, 2021
170d12e
Add Amazon Deep Learning AMI environment (#2085)
glenn-jocher Jan 29, 2021
eeb2bbf
Add Kaggle badge (#2090)
glenn-jocher Jan 30, 2021
aa02b94
Add Kaggle badge (#2090)
glenn-jocher Jan 30, 2021
a18efc3
Add variable-stride inference support (#2091)
glenn-jocher Jan 30, 2021
be9edff
Update test.py --task speed and study (#2099)
glenn-jocher Jan 31, 2021
9646ca4
Update plot_study() (#2112)
glenn-jocher Feb 1, 2021
73a0669
Start setup for improved W&B integration (#1948)
AyushExel Feb 2, 2021
4bdc5a3
LoadImages() pathlib update (#2140)
glenn-jocher Feb 5, 2021
e9b3de4
Unique *.cache filenames fix (#2134)
train255 Feb 5, 2021
86897e3
Update train.py test batch_size (#2148)
glenn-jocher Feb 6, 2021
ad839ed
Update train.py (#2149)
glenn-jocher Feb 6, 2021
6b634c6
Linear LR scheduler option (#2150)
glenn-jocher Feb 6, 2021
a5359f6
Update data-autodownload background tasks (#2154)
glenn-jocher Feb 7, 2021
c32b0af
Update detect.py (#2167)
ab-101 Feb 9, 2021
ace3e02
Update requirements.txt (#2173)
glenn-jocher Feb 10, 2021
c9bda11
Update utils/datasets.py to support .webp files (#2174)
Transigent Feb 10, 2021
a5d5f92
Changed socket port and added timeout (#2176)
NanoCode012 Feb 10, 2021
404749a
PyTorch Hub results.save('path/to/dir') (#2179)
glenn-jocher Feb 11, 2021
bdd88e1
YOLOv5 Segmentation Dataloader Updates (#2188)
glenn-jocher Feb 12, 2021
17ac94b
Created using Colaboratory
glenn-jocher Feb 12, 2021
3e560e2
YOLOv5 PyTorch Hub results.save() method retains filenames (#2194)
dan0nchik Feb 12, 2021
3ff783c
TTA augument boxes one pixel shifted in de-flip ud and lr (#2219)
VdLMV Feb 15, 2021
7b833e3
LoadStreams() frame loss bug fix (#2222)
glenn-jocher Feb 15, 2021
f8464b4
Update yolo.py channel array (#2223)
glenn-jocher Feb 16, 2021
26c2e54
Add check_imshow() (#2231)
glenn-jocher Feb 16, 2021
5a40ce6
Update CI badge (#2230)
glenn-jocher Feb 16, 2021
d2e754b
Add isdocker() (#2232)
glenn-jocher Feb 16, 2021
9d87307
YOLOv5 Hub URL inference bug fix (#2250)
glenn-jocher Feb 19, 2021
db28ce6
Improved hubconf.py CI tests (#2251)
glenn-jocher Feb 19, 2021
5f42643
Unified hub and detect.py box and labels plotting (#2243)
kinoute Feb 19, 2021
47faf95
reset head
glenn-jocher Feb 19, 2021
ab2da5e
Merge remote-tracking branch 'origin/master'
glenn-jocher Feb 19, 2021
c09964c
Update inference default to multi_label=False (#2252)
glenn-jocher Feb 19, 2021
6f5d6fc
Robust objectness loss balancing (#2256)
glenn-jocher Feb 20, 2021
095d2c1
Created using Colaboratory
glenn-jocher Feb 20, 2021
e27ca0d
Update minimum stride to 32 (#2266)
glenn-jocher Feb 22, 2021
95aefea
Dynamic ONNX engine generation (#2208)
aditya-dl Feb 22, 2021
32dd161
Update greetings.yml for auto-rebase on PR (#2272)
glenn-jocher Feb 23, 2021
cc79f3a
Update Dockerfile with apt install zip (#2274)
glenn-jocher Feb 23, 2021
83dc1b4
FLOPS min stride 32 (#2276)
xiaowo1996 Feb 23, 2021
7a6870b
Update README.md
glenn-jocher Feb 23, 2021
d5d275b
Amazon AWS EC2 startup and re-startup scripts (#2185)
glenn-jocher Feb 24, 2021
0070995
Amazon AWS EC2 startup and re-startup scripts (#2282)
glenn-jocher Feb 24, 2021
ca5b10b
Update train.py (#2290)
glenn-jocher Feb 24, 2021
ec1d849
Improved model+EMA checkpointing (#2292)
glenn-jocher Feb 25, 2021
71dd276
Improved model+EMA checkpointing 2 (#2295)
glenn-jocher Feb 25, 2021
a82dce7
Fix labels being missed when image extension appears twice in filenam…
idenc Feb 26, 2021
efa4946
W&B entity support (#2298)
toretak Feb 26, 2021
cbd55da
Update yolo.py (#2120)
olehb Feb 26, 2021
dfeec19
final_epoch EMA bug fix (#2317)
glenn-jocher Feb 27, 2021
cd30d83
Update test.py (#2319)
glenn-jocher Feb 27, 2021
c2026a5
Update Dockerfile install htop (#2320)
glenn-jocher Feb 27, 2021
fd96810
remove TTA 1 pixel offset (#2325)
glenn-jocher Mar 1, 2021
fab5085
EMA bug fix 2 (#2330)
glenn-jocher Mar 2, 2021
ab86cec
FROM nvcr.io/nvidia/pytorch:21.02-py3 (#2341)
glenn-jocher Mar 2, 2021
2c56ad5
Confusion matrix background axis swap (#2114)
rbavery Mar 3, 2021
fe6ebb9
Created using Colaboratory
glenn-jocher Mar 3, 2021
a3ecf0f
Anchor override (#2350)
glenn-jocher Mar 3, 2021
e931b9d
Resume with custom anchors fix (#2361)
glenn-jocher Mar 4, 2021
300d518
Faster random index generator for mosaic augmentation (#2345)
developer0hye Mar 5, 2021
692e1f3
--no-cache notebook (#2381)
glenn-jocher Mar 5, 2021
c64fe21
ENV HOME=/usr/src/app (#2382)
glenn-jocher Mar 5, 2021
cd8ed35
image weights compatible faster random index generator v2 for mosaic …
developer0hye Mar 6, 2021
7a0a81f
GPU export options (#2297)
toretak Mar 6, 2021
ba18528
bbox_iou() stability and speed improvements (#2385)
glenn-jocher Mar 6, 2021
7c2c957
AWS wait && echo "All tasks done." (#2391)
glenn-jocher Mar 8, 2021
e8a2b83
GCP sudo docker userdata.sh (#2393)
glenn-jocher Mar 8, 2021
c51dfec
CVPR 2021 Argoverse-HD dataset autodownload support (#2400)
karthiksharma98 Mar 10, 2021
d5ca8ca
CVPR 2021 Argoverse-HD autodownload fix (#2418)
glenn-jocher Mar 10, 2021
886f1c0
DDP after autoanchor reorder (#2421)
glenn-jocher Mar 10, 2021
f01f322
Integer printout (#2450)
glenn-jocher Mar 12, 2021
f419721
Update test.py --task train val study (#2453)
glenn-jocher Mar 13, 2021
08d4918
labels.jpg class names (#2454)
glenn-jocher Mar 13, 2021
747c265
CVPR 2021 Argoverse-HD autodownload curl (#2455)
glenn-jocher Mar 13, 2021
569757e
Add autoShape() speed profiling (#2459)
glenn-jocher Mar 14, 2021
f813f6d
autoShape() speed profiling update (#2460)
glenn-jocher Mar 14, 2021
20d879d
Update tutorial.ipynb
glenn-jocher Mar 14, 2021
6f718ce
Created using Colaboratory
glenn-jocher Mar 14, 2021
38ff499
Update autosplit() with annotated_only option (#2466)
kinoute Mar 15, 2021
2d41e70
Scipy kmeans-robust autoanchor update (#2470)
glenn-jocher Mar 15, 2021
9b11f0c
PyTorch Hub models default to CUDA:0 if available (#2472)
glenn-jocher Mar 15, 2021
ed2c742
Created using Colaboratory
glenn-jocher Mar 15, 2021
e8fc97a
Improved W&B integration (#2125)
AyushExel Mar 22, 2021
1c132a1
Update Detections() times=None (#2570)
glenn-jocher Mar 23, 2021
0d891c6
check_requirements() exclude pycocotools, thop (#2571)
glenn-jocher Mar 23, 2021
1bf9365
W&B DDP fix (#2574)
AyushExel Mar 23, 2021
2b329b0
Enhanced check_requirements() with auto-install (#2575)
glenn-jocher Mar 24, 2021
e5b0200
Update tensorboard>=2.4.1 (#2576)
glenn-jocher Mar 24, 2021
2bcc89d
YOLOv5 PyTorch Hub models >> check_requirements() (#2577)
glenn-jocher Mar 24, 2021
9f98201
W&B DDP fix 2 (#2587)
glenn-jocher Mar 24, 2021
8ace1b1
YOLOv5 PyTorch Hub models >> check_requirements() (#2588)
glenn-jocher Mar 24, 2021
75feeb7
YOLOv5 PyTorch Hub models >> check_requirements() (#2591)
glenn-jocher Mar 24, 2021
333ccc5
YOLOv5 PyTorch Hub models >> check_requirements() (#2592)
glenn-jocher Mar 24, 2021
1620669
Supervisely Ecosystem (#2519)
mkolomeychenko Mar 24, 2021
ad05e37
Save webcam results, add --nosave option (#2598)
glenn-jocher Mar 25, 2021
d4456e4
Update segment2box() comment (#2600)
glenn-jocher Mar 25, 2021
3bb4148
resume.py typo (#2603)
glenn-jocher Mar 25, 2021
fca16dc
Remove Cython from requirements.txt (#2604)
glenn-jocher Mar 25, 2021
77415a4
Update git_describe() for remote dir usage (#2606)
glenn-jocher Mar 26, 2021
196bf10
Add '*.mpo' to supported image formats (#2615)
maxupp Mar 26, 2021
0ff5aec
Create date_modified() (#2616)
glenn-jocher Mar 26, 2021
a57f23d
Update detections() self.t = tuple() (#2617)
glenn-jocher Mar 26, 2021
8f6e447
Fix Indentation in test.py (#2614)
AyushExel Mar 26, 2021
005d7a8
Update Detections() self.n comment (#2620)
glenn-jocher Mar 26, 2021
2dfe320
Remove conflicting nvidia-tensorboard package (#2622)
glenn-jocher Mar 27, 2021
9b92d3e
FROM nvcr.io/nvidia/pytorch:21.03-py3 (#2623)
glenn-jocher Mar 27, 2021
6e8c5b7
Improve git_describe() (#2633)
glenn-jocher Mar 28, 2021
dc51e80
Fix: evolve with wandb (#2634)
AyushExel Mar 28, 2021
518c095
W&B resume ddp from run link fix (#2579)
AyushExel Mar 28, 2021
2e95cf3
Improve git_describe() fix 1 (#2635)
glenn-jocher Mar 28, 2021
ee16983
PyTorch Hub custom model to CUDA device fix (#2636)
glenn-jocher Mar 28, 2021
2bf34f5
PyTorch Hub amp.autocast() inference (#2641)
glenn-jocher Mar 28, 2021
1e8ab3f
Add tqdm pbar.close() (#2644)
zzttqu Mar 29, 2021
866bc7d
Speed profiling improvements (#2648)
glenn-jocher Mar 29, 2021
1b100cd
Created using Colaboratory (#2649)
glenn-jocher Mar 29, 2021
7cdc516
Update requirements.txt (#2564)
youngjinshin Mar 29, 2021
fd16799
add option to disable half precision in test.py (#2507)
bfineran Mar 29, 2021
9c803f2
Add --label-smoothing eps argument to train.py (default 0.0) (#2344)
ptran1203 Mar 29, 2021
1b475c1
Created using Colaboratory
glenn-jocher Mar 30, 2021
2a28ef3
Set resume flag to false (#2657)
AyushExel Mar 31, 2021
51cc096
Update README.md
glenn-jocher Apr 1, 2021
877b826
Created using Colaboratory
glenn-jocher Apr 1, 2021
b8b8629
Update README with Tips for Best Results tutorial (#2682)
glenn-jocher Apr 1, 2021
1148e2e
Add TransformerLayer, TransformerBlock, C3TR modules (#2333)
dingyiwei Apr 1, 2021
514ebcd
Fix: #2674 (#2683)
AyushExel Apr 2, 2021
2af059c
PyTorch Hub model.save() increment as runs/hub/exp (#2684)
glenn-jocher Apr 2, 2021
17300a4
autoShape forward im = np.asarray(im) # to numpy (#2689)
glenn-jocher Apr 2, 2021
9ccfa85
pip install coremltools onnx (#2690)
glenn-jocher Apr 2, 2021
74276d5
Updated filename attributes for YOLOv5 Hub results (#2708)
glenn-jocher Apr 5, 2021
ec8979f
Updated filename attributes for YOLOv5 Hub BytesIO (#2718)
glenn-jocher Apr 6, 2021
3067429
Add support for list-of-directory data format for wandb (#2719)
AyushExel Apr 6, 2021
c8c8da6
Update README with collapsable notes (#2721)
glenn-jocher Apr 6, 2021
c03d590
Add Hub results.pandas() method (#2725)
glenn-jocher Apr 7, 2021
fca5e2a
autocast enable=torch.cuda.is_available() (#2748)
glenn-jocher Apr 9, 2021
b5de52c
torch.cuda.amp bug fix (#2750)
glenn-jocher Apr 9, 2021
0cae757
utils/wandb_logging PEP8 reformat (#2755)
glenn-jocher Apr 10, 2021
6dd1083
Tensorboard model visualization bug fix (#2758)
glenn-jocher Apr 10, 2021
9029759
Created using Colaboratory
glenn-jocher Apr 11, 2021
e2b7bc0
YouTube Livestream Detection (#2752)
Apr 11, 2021
f5b8f7d
YOLOv5 v5.0 Release (#2762)
glenn-jocher Apr 11, 2021
0f395b3
YOLOv5 v5.0 Release patch 1 (#2764)
glenn-jocher Apr 11, 2021
54d6516
Update tutorial.ipynb
glenn-jocher Apr 12, 2021
6b718e9
Created using Colaboratory
glenn-jocher Apr 12, 2021
2eab46e
Update tutorial.ipynb
glenn-jocher Apr 12, 2021
cac8a76
Created using Colaboratory
glenn-jocher Apr 12, 2021
860ca98
Created using Colaboratory
glenn-jocher Apr 12, 2021
1487bc8
Update README.md
glenn-jocher Apr 12, 2021
1479737
Flask REST API Example (#2732)
robmarkcole Apr 15, 2021
e5d7122
Update README.md
glenn-jocher Apr 15, 2021
1f3e482
ONNX Simplifier (#2815)
glenn-jocher Apr 16, 2021
aff03be
YouTube Bug Fix (#2818)
glenn-jocher Apr 16, 2021
c15e25c
PyTorch Hub cv2 .save() .show() bug fix (#2831)
glenn-jocher Apr 18, 2021
803f51b
Create FUNDING.yml (#2832)
glenn-jocher Apr 18, 2021
238583b
Update FUNDING.yml (#2833)
glenn-jocher Apr 18, 2021
1df8c6c
Fix ONNX dynamic axes export support with onnx simplifier, make onnx …
timstokman Apr 20, 2021
c5c647e
Update increment_path() to handle file paths (#2867)
glenn-jocher Apr 20, 2021
c949fc8
Detection cropping+saving feature addition for detect.py and PyTorch …
burhr2 Apr 20, 2021
f7bc685
Implement yaml.safe_load() (#2876)
glenn-jocher Apr 21, 2021
5f7d39f
Cleanup load_image() (#2871)
JoshSong Apr 21, 2021
d48a34d
bug fix: switched rows and cols for correct detections in confusion m…
MichHeilig Apr 21, 2021
78fd077
VisDrone2019-DET Dataset Auto-Download (#2882)
glenn-jocher Apr 22, 2021
0395e39
Uppercase model filenames enabled (#2890)
r-blmnr Apr 22, 2021
264d860
ACON activation function (#2893)
glenn-jocher Apr 22, 2021
b40dd99
Explicit opt function arguments (#2817)
fcakyon Apr 22, 2021
cdb678f
Update yolo.py (#2899)
glenn-jocher Apr 22, 2021
14d2d2d
Update google_utils.py (#2900)
glenn-jocher Apr 22, 2021
f662c18
Add detect.py --hide-conf --hide-labels --line-thickness options (#2658)
Ashafix Apr 23, 2021
28db237
Default optimize_for_mobile() on TorchScript models (#2908)
glenn-jocher Apr 23, 2021
a2a514d
Update export.py (#2909)
glenn-jocher Apr 23, 2021
646386f
Update export.py for 2 dry runs (#2910)
glenn-jocher Apr 23, 2021
1b1ab4c
Add file_size() function (#2911)
glenn-jocher Apr 23, 2021
45632b2
Update download() for tar.gz files (#2919)
glenn-jocher Apr 24, 2021
de19d39
Update visdrone.yaml (#2921)
glenn-jocher Apr 24, 2021
eae28a9
Change default value of hide label argument to False (#2923)
albinxavi Apr 24, 2021
aa78069
Change default value of hide-conf argument to false (#2925)
albinxavi Apr 25, 2021
3665c0f
test.py native --single-cls (#2928)
glenn-jocher Apr 25, 2021
c0d3f80
Add verbose option to pytorch hub models (#2926)
NanoCode012 Apr 25, 2021
9c7bb5a
ACON Activation batch-size 1 bug patch (#2901)
glenn-jocher Apr 25, 2021
1849916
Check_requirements() enclosing apostrophe bug fix (#2929)
glenn-jocher Apr 25, 2021
6c1290f
Update README.md (#2934)
Apr 26, 2021
4890499
Improved yolo.py profiling (#2940)
glenn-jocher Apr 26, 2021
4200674
Add yolov5/ to sys.path() for *.py subdir exec (#2949)
glenn-jocher Apr 27, 2021
b37531b
merge latest version done, not tested
mkolomeychenko Apr 28, 2021
cb425b0
update UI + latest yolov5 sources (#15)
mkolomeychenko May 7, 2021
fb5235a
update SDK version
mkolomeychenko May 7, 2021
3c5350a
fix imports
mkolomeychenko May 7, 2021
07872fc
change imports
mkolomeychenko May 7, 2021
6a8599e
change imports
mkolomeychenko May 7, 2021
da24644
add UI sources directory to sys.path
mkolomeychenko May 7, 2021
9407b98
new SDK version
mkolomeychenko May 7, 2021
14dbc34
new SDK version
mkolomeychenko May 7, 2021
78d9bec
fix GIoU smoothing
mkolomeychenko May 7, 2021
ef0e0d7
update smoothing
mkolomeychenko May 7, 2021
9f34e7e
send metrics for the last epoch
mkolomeychenko May 7, 2021
381d431
save link to app UI
mkolomeychenko May 7, 2021
1394349
todo
mkolomeychenko May 7, 2021
d207aac
log train/val size
mkolomeychenko May 11, 2021
a55ee16
sly-to-yolov5 format: fix same names in different datasets
mkolomeychenko May 11, 2021
e036c79
fix inference
mkolomeychenko May 11, 2021
72cb08f
serve not tested
mkolomeychenko May 11, 2021
152b906
[serve] modal table stat
mkolomeychenko May 11, 2021
86a634d
[serve] modal tabs
mkolomeychenko May 11, 2021
bf3180f
[serve] modal tabs
mkolomeychenko May 11, 2021
63e011f
[serve] modal width
mkolomeychenko May 11, 2021
111485f
[serve] modal tabs style
mkolomeychenko May 11, 2021
2086939
[serve] fix pretrained weights URL
mkolomeychenko May 11, 2021
fb5eeed
[serve] add stride to serv
mkolomeychenko May 11, 2021
8c7a8ba
[train] readme wip
mkolomeychenko May 11, 2021
48d4eeb
[train] readme wip
mkolomeychenko May 11, 2021
16b5c20
[train] readme wip
mkolomeychenko May 11, 2021
7c0e7c7
[serve] change inference_image_id to work with remote storages (s3, a…
mkolomeychenko May 13, 2021
1ac6bed
[serve] fix stride initialization
mkolomeychenko May 13, 2021
f92ed93
[serve] yolov5 serve - fixed
mkolomeychenko May 13, 2021
7603c86
add additional info logs
mkolomeychenko May 14, 2021
70dc0c2
add additional info logs
mkolomeychenko May 14, 2021
e7955d8
[serve] todo
mkolomeychenko May 17, 2021
22d48c2
[train] splits - hide notice1
mkolomeychenko May 17, 2021
e16acdb
fix collections readme
mkolomeychenko May 17, 2021
6318b1c
train readme - new screenshot
mkolomeychenko May 17, 2021
aa60ea4
train readme
mkolomeychenko May 17, 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
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
9 changes: 5 additions & 4 deletions .github/workflows/ci-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,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 weights/${{ matrix.model }}.pt --cfg models/${{ matrix.model }}.yaml --epochs 1 --device $di
# detect
python detect.py --weights weights/${{ matrix.model }}.pt --device $di
python detect.py --weights runs/train/exp/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/train/exp/weights/last.pt --device $di
python test.py --img 128 --batch 16 --weights weights/${{ matrix.model }}.pt --device $di
python test.py --img 128 --batch 16 --weights runs/train/exp/weights/last.pt --device $di

python hubconf.py # hub
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 models/export.py --img 128 --batch 1 --weights weights/${{ matrix.model }}.pt # export
shell: bash
11 changes: 6 additions & 5 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
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:
- ✅ 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
Expand Down Expand Up @@ -42,10 +42,11 @@ jobs:

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 Notebook** 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>
- **Kaggle Notebook** with free GPU: [https://www.kaggle.com/ultralytics/yolov5](https://www.kaggle.com/ultralytics/yolov5)
- **Google Cloud** Deep Learning VM. See [GCP Quickstart Guide](https://github.com/ultralytics/yolov5/wiki/GCP-Quickstart)
- **Docker Image** https://hub.docker.com/r/ultralytics/yolov5. See [Docker Quickstart Guide](https://github.com/ultralytics/yolov5/wiki/Docker-Quickstart) ![Docker Pulls](https://img.shields.io/docker/pulls/ultralytics/yolov5?logo=docker)
- **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>


## Status

Expand Down
23 changes: 10 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# Start FROM Nvidia PyTorch image https://ngc.nvidia.com/catalog/containers/nvidia:pytorch
FROM nvcr.io/nvidia/pytorch:20.12-py3
FROM nvcr.io/nvidia/pytorch:21.03-py3

# Install linux packages
RUN apt update && apt install -y screen libgl1-mesa-glx
RUN apt update && apt install -y zip htop screen libgl1-mesa-glx

# Install python dependencies
RUN pip install --upgrade pip
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN pip install gsutil
RUN python -m pip install --upgrade pip
RUN pip uninstall -y nvidia-tensorboard nvidia-tensorboard-plugin-dlprof
RUN pip install --no-cache -r requirements.txt coremltools onnx gsutil notebook

# Create working directory
RUN mkdir -p /usr/src/app
Expand All @@ -17,11 +17,8 @@ WORKDIR /usr/src/app
# Copy contents
COPY . /usr/src/app

# Copy weights
#RUN python3 -c "from models import *; \
#attempt_download('weights/yolov5s.pt'); \
#attempt_download('weights/yolov5m.pt'); \
#attempt_download('weights/yolov5l.pt')"
# Set environment variables
ENV HOME=/usr/src/app


# --------------------------------------------------- Extras Below ---------------------------------------------------
Expand All @@ -40,13 +37,13 @@ COPY . /usr/src/app
# sudo docker kill $(sudo docker ps -q)

# Kill all image-based
# sudo docker kill $(sudo docker ps -a -q --filter ancestor=ultralytics/yolov5:latest)
# sudo docker kill $(sudo docker ps -qa --filter ancestor=ultralytics/yolov5:latest)

# Bash into running container
# sudo docker container exec -it ba65811811ab bash
# sudo docker exec -it 5a9b5863d93d bash

# Bash into stopped container
# sudo docker commit 092b16b25c5b usr/resume && sudo docker run -it --gpus all --ipc=host -v "$(pwd)"/coco:/usr/src/coco --entrypoint=sh usr/resume
# id=$(sudo docker ps -qa) && sudo docker start $id && sudo docker exec -it $id bash

# Send weights to GCP
# python -c "from utils.general import *; strip_optimizer('runs/train/exp0_*/weights/best.pt', 'tmp.pt')" && gsutil cp tmp.pt gs://*.pt
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ YOLOv5 is one of the best available detectors. And we are proud to announce its

# For Developers
- you can use sources of [Serve YOLOv5 app](https://github.com/supervisely-ecosystem/yolov5/tree/master/supervisely/serve) as example of how to prepare weights, initialize model and apply it to a folder with images (or to images URLs)
- This apps collection is based on the original YOLOv5 [release v4.0](https://github.com/ultralytics/yolov5/releases/tag/v4.0). Once a next official release is available, all apps will be synchronized with it and also released with the new versions. Before running any app you can choose what version to use. Also Supervisely Team will pull updates from original master branch from time to time.
- This apps collection is based on the original YOLOv5 [release v5.0](https://github.com/ultralytics/yolov5/releases/tag/v5.0). Once a next official release is available, all apps will be synchronized with it and also released with the new versions. Before running any app you can choose what version to use. Also Supervisely Team will pull updates from original master branch from time to time.

# Contact & Questions & Suggestions

Expand Down
21 changes: 21 additions & 0 deletions data/argoverse_hd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Argoverse-HD dataset (ring-front-center camera) http://www.cs.cmu.edu/~mengtial/proj/streaming/
# Train command: python train.py --data argoverse_hd.yaml
# Default dataset location is next to YOLOv5:
# /parent_folder
# /argoverse
# /yolov5


# download command/URL (optional)
download: bash data/scripts/get_argoverse_hd.sh

# train and val data as 1) directory: path/images/, 2) file: path/images.txt, or 3) list: [path1/images/, path2/images/]
train: ../argoverse/Argoverse-1.1/images/train/ # 39384 images
val: ../argoverse/Argoverse-1.1/images/val/ # 15062 iamges
test: ../argoverse/Argoverse-1.1/images/test/ # Submit to: https://eval.ai/web/challenges/challenge-page/800/overview

# number of classes
nc: 8

# class names
names: [ 'person', 'bicycle', 'car', 'motorcycle', 'bus', 'truck', 'traffic_light', 'stop_sign' ]
4 changes: 2 additions & 2 deletions data/coco.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# COCO 2017 dataset http://cocodataset.org
# Train command: python train.py --data coco.yaml
# Default dataset location is next to /yolov5:
# Default dataset location is next to YOLOv5:
# /parent_folder
# /coco
# /yolov5
Expand Down Expand Up @@ -30,6 +30,6 @@ names: [ 'person', 'bicycle', 'car', 'motorcycle', 'airplane', 'bus', 'train', '

# Print classes
# with open('data/coco.yaml') as f:
# d = yaml.load(f, Loader=yaml.FullLoader) # dict
# d = yaml.safe_load(f) # dict
# for i, x in enumerate(d['names']):
# print(i, x)
2 changes: 1 addition & 1 deletion data/coco128.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# COCO 2017 dataset http://cocodataset.org - first 128 training images
# Train command: python train.py --data coco128.yaml
# Default dataset location is next to /yolov5:
# Default dataset location is next to YOLOv5:
# /parent_folder
# /coco128
# /yolov5
Expand Down
62 changes: 62 additions & 0 deletions data/scripts/get_argoverse_hd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/bin/bash
# Argoverse-HD dataset (ring-front-center camera) http://www.cs.cmu.edu/~mengtial/proj/streaming/
# Download command: bash data/scripts/get_argoverse_hd.sh
# Train command: python train.py --data argoverse_hd.yaml
# Default dataset location is next to YOLOv5:
# /parent_folder
# /argoverse
# /yolov5

# Download/unzip images
d='../argoverse/' # unzip directory
mkdir $d
url=https://argoverse-hd.s3.us-east-2.amazonaws.com/
f=Argoverse-HD-Full.zip
curl -L $url$f -o $f && unzip -q $f -d $d && rm $f &# download, unzip, remove in background
wait # finish background tasks

cd ../argoverse/Argoverse-1.1/
ln -s tracking images

cd ../Argoverse-HD/annotations/

python3 - "$@" <<END
import json
from pathlib import Path

annotation_files = ["train.json", "val.json"]
print("Converting annotations to YOLOv5 format...")

for val in annotation_files:
a = json.load(open(val, "rb"))

label_dict = {}
for annot in a['annotations']:
img_id = annot['image_id']
img_name = a['images'][img_id]['name']
img_label_name = img_name[:-3] + "txt"

obj_class = annot['category_id']
x_center, y_center, width, height = annot['bbox']
x_center = (x_center + width / 2) / 1920. # offset and scale
y_center = (y_center + height / 2) / 1200. # offset and scale
width /= 1920. # scale
height /= 1200. # scale

img_dir = "./labels/" + a['seq_dirs'][a['images'][annot['image_id']]['sid']]

Path(img_dir).mkdir(parents=True, exist_ok=True)

if img_dir + "/" + img_label_name not in label_dict:
label_dict[img_dir + "/" + img_label_name] = []

label_dict[img_dir + "/" + img_label_name].append(f"{obj_class} {x_center} {y_center} {width} {height}\n")

for filename in label_dict:
with open(filename, "w") as file:
for string in label_dict[filename]:
file.write(string)

END

mv ./labels ../../Argoverse-1.1/
11 changes: 7 additions & 4 deletions data/scripts/get_coco.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,17 @@
# COCO 2017 dataset http://cocodataset.org
# Download command: bash data/scripts/get_coco.sh
# Train command: python train.py --data coco.yaml
# Default dataset location is next to /yolov5:
# Default dataset location is next to YOLOv5:
# /parent_folder
# /coco
# /yolov5

# Download/unzip labels
d='../' # unzip directory
url=https://github.com/ultralytics/yolov5/releases/download/v1.0/
f='coco2017labels.zip' # 68 MB
echo 'Downloading' $url$f ' ...' && curl -L $url$f -o $f && unzip -q $f -d $d && rm $f # download, unzip, remove
f='coco2017labels.zip' # or 'coco2017labels-segments.zip', 68 MB
echo 'Downloading' $url$f ' ...'
curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background

# Download/unzip images
d='../coco/images' # unzip directory
Expand All @@ -20,5 +21,7 @@ f1='train2017.zip' # 19G, 118k images
f2='val2017.zip' # 1G, 5k images
f3='test2017.zip' # 7G, 41k images (optional)
for f in $f1 $f2; do
echo 'Downloading' $url$f ' ...' && curl -L $url$f -o $f && unzip -q $f -d $d && rm $f # download, unzip, remove
echo 'Downloading' $url$f '...'
curl -L $url$f -o $f && unzip -q $f -d $d && rm $f & # download, unzip, remove in background
done
wait # finish background tasks
Loading