wangjin0928
4e2b9024f3
Merge branch 'master' of http://192.168.11.14:51037/zjc/yolov5
2022-11-16 13:52:29 +08:00
wangjin0928
276220e142
111
2022-11-16 13:35:24 +08:00
wangjin0928
6eb4f995ed
111
2022-08-06 09:54:33 +08:00
Glenn Jocher
898332433a
Update cache comments ( #8414 )
...
* Update cache comments
For better readability
* Update dataloaders.py
2022-06-30 16:19:22 +02:00
Amir Pourmand
e50dc38d36
Improve `--local_rank` arg comment ( #8409 )
...
* add more docs
* add more docs
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update train.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-06-30 15:01:31 +02:00
Giacomo Guiduzzi
6935a54e60
Implementation of Early Stopping for DDP training ( #8345 )
...
* Implementation of Early Stopping for DDP training
This edit correctly uses the broadcast_object_list() function to send slave processes a boolean so to end the training phase if the variable is True, thus allowing the master process to destroy the process group and terminate.
* Update train.py
* Update train.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update train.py
* Update train.py
* Update train.py
* Further cleanup
This cleans up the definition of broadcast_list and removes the requirement for clear() afterward.
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-29 12:41:46 +02:00
Glenn Jocher
f76a78e707
Update tutorial.ipynb ( #8380 )
2022-06-28 17:34:24 +02:00
Glenn Jocher
0c1324067c
Fix ONNX `--dynamic` export on GPU ( #8378 )
...
* Fix ONNX `--dynamic` export on GPU
Patch forces --dynamic export model and image to CPU. Resolves bug raised in https://github.com/ultralytics/yolov5/issues/8377
* Update export.py
2022-06-28 15:22:15 +02:00
dependabot[bot]
50ff6eee31
Update protobuf requirement from <=3.20.1 to <4.21.3 ( #8346 )
...
Updates the requirements on [protobuf](https://github.com/protocolbuffers/protobuf ) to permit the latest version.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases )
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py )
- [Commits](https://github.com/protocolbuffers/protobuf/commits )
---
updated-dependencies:
- dependency-name: protobuf
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-06-28 12:04:58 +02:00
Glenn Jocher
34df5032a7
Add File Size (MB) column to benchmarks ( #8359 )
...
* Add filesize to benchmarks.py
* Add filesize to benchmarks.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-27 17:46:49 +02:00
Glenn Jocher
8ebf569d14
Fix bias warmup LR init ( #8356 )
...
Per https://github.com/ultralytics/yolov5/issues/8352
2022-06-27 16:11:24 +02:00
Zhiqiang Wang
b0814c9521
Revamp Chinese docs ( #8350 )
...
Revamp Chines docs
2022-06-27 13:10:30 +02:00
Nicholas Zolton
0537e8dd13
Allow detect.py to use video size for initial window size ( #8330 )
...
* fixed initial window size of detect.py being tiny
* cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-06-27 00:04:11 +02:00
Glenn Jocher
5c990e3674
Create README_cn.md ( #8344 )
...
* Create README_cn.md
Add mandarin version of README
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update README.md
* fix link
* fix english link
* remove line
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update .pre-commit-config.yaml
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update README_cn.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update .pre-commit-config.yaml
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update README_cn.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update .pre-commit-config.yaml
* Update README.md
* Update README_cn.md
* Kiera fix
* Update README_cn.md
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-26 17:46:39 +02:00
Ryan Hirasaki
19f33cbae2
Allow preview resize in detect.py ( #8318 )
...
* Initial implementation of --viewsz
* use mouse resize
* Add comment
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-06-24 15:30:44 +02:00
Glenn Jocher
724d5b21b7
`device_name="MYRIAD" for Intel NCS2` comment ( #8327 )
...
Display device_name="MYRIAD" for Intel NCS2 option per user question in https://github.com/ultralytics/yolov5/issues/8154
2022-06-24 14:18:58 +02:00
Glenn Jocher
a2a1ed201d
`logging.ERROR` on `RANK` not in (0, 1) ( #8284 )
...
Improve DDP console response in https://github.com/ultralytics/yolov5/issues/8283
2022-06-21 17:41:14 +02:00
Glenn Jocher
1156a323f8
Created using Colaboratory ( #8255 )
...
* Created using Colaboratory
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-18 14:29:32 +02:00
Glenn Jocher
669f707d62
`process_batch()` as numpy arrays ( #8254 )
...
Avoid potential issues with deterministic ops.
[ ] - verify for identical mAP to master
2022-06-18 13:54:55 +02:00
Glenn Jocher
d6051382f1
HUB dataset_stats() error reporting ( #8192 )
...
* HUB dataset_stats() error reporting
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update dataloaders.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-17 18:37:08 +02:00
Glenn Jocher
303f3785ae
Prefer MPS over CPU if available ( #8210 )
...
* Prefer MPS over CPU if available
* Update torch_utils.py
2022-06-17 18:28:29 +02:00
Glenn Jocher
86e6add07b
Remove streaming source sleep period ( #8243 )
...
Negatively impacts YouTube inference but removes any lag on webcams/RTSP/RTMP etc.
Resolves https://github.com/ultralytics/yolov5/issues/4465
2022-06-17 17:59:27 +02:00
Glenn Jocher
75bbaa8f44
Reject webcam inference on Colab/Kaggle ( #8209 )
...
* Reject webcam inference on Colab/Kaggle
Improve user error understanding for https://github.com/ultralytics/yolov5/issues/8180
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* cleanup
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-14 14:28:21 +02:00
dependabot[bot]
6a67594cbf
Bump actions/setup-python from 3 to 4 ( #8186 )
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 12:16:55 +02:00
Glenn Jocher
c23a441c9d
Improved `dataset_stats()` YAML checks ( #8125 )
...
* Update dataloaders.py
* Update dataloaders.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-06-11 19:30:54 +02:00
Glenn Jocher
6adc53ba5f
Docker GPU pip install `opencv-python<4.6.0.66` ( #8164 )
...
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
2022-06-09 22:45:49 +02:00
Glenn Jocher
7c2691f9dc
FROM nvcr.io/nvidia/pytorch:22.05-py3 ( #8162 )
2022-06-09 22:06:33 +02:00
Glenn Jocher
6e4661773e
AutoBatch checks against failed solutions ( #8159 )
...
* AutoBatch checks against failed solutions
@kalenmike this is a simple improvement to AutoBatch to verify that returned solutions have not already failed, i.e. return batch-size 8 when 8 already produced CUDA out of memory.
This is a halfway fix until I can implement a 'final solution' that will actively verify the solved-for batch size rather than passively assume it works.
* Update autobatch.py
* Update autobatch.py
2022-06-09 17:15:49 +02:00
HRan2004
cf298fb72f
fix(utils): missing edge when resample segments ( #8092 )
...
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-06-09 10:52:05 +02:00
pre-commit-ci[bot]
2dd3db0050
[pre-commit.ci] pre-commit suggestions ( #8119 )
...
updates:
- [github.com/asottile/pyupgrade: v2.32.0 → v2.32.1](https://github.com/asottile/pyupgrade/compare/v2.32.0...v2.32.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-06-07 00:04:11 +02:00
Glenn Jocher
18674e2f03
experimental.py Apple MPS device fix ( #8121 )
...
* experimental.py Apple MPS fix
May resolve https://github.com/ultralytics/yolov5/issues/8102
* Update experimental.py
* Update experimental.py
2022-06-06 23:58:50 +02:00
Glenn Jocher
47233e1698
Improved dataset error introspection ( #8091 )
...
* Improved dataset error introspection
Intended to help https://github.com/ultralytics/yolov5/issues/8090
* Update general.py
2022-06-03 12:45:51 +02:00
Glenn Jocher
7cef03dddd
Fix torch `long` to `float` tensor on HUB macOS ( #8067 )
2022-06-01 17:34:46 +02:00
Glenn Jocher
a80dd66efe
Update stale.yml to 300 ops per run ( #8061 )
2022-05-31 20:18:40 +02:00
Glenn Jocher
7d87b9eae8
Make Docker actions conditional on `ultralytics/yolov5` repo ( #8060 )
...
* Update ci-testing.yml
* Update ci-testing.yml
* Update ci-testing.yml
* Update docker.yml
2022-05-31 16:36:57 +02:00
Sahil Chachra
6dd6aea086
Fix FP32 TensorRT model export ( #8046 )
...
Fixed FP32 TRT model export
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-05-31 12:41:09 +02:00
Glenn Jocher
487edd5609
Dataset autodownload fstring updates
2022-05-31 12:36:20 +02:00
Glenn Jocher
258f4c6438
`attempt_load()` deserialize fix ( #8051 )
2022-05-31 10:55:14 +02:00
tcmyxc
50b886ddc6
`.detach()` on bias init ( #8044 )
...
make init bias better,
I think `detach` is more safer than `data`
2022-05-31 09:53:36 +02:00
Glenn Jocher
dcf8073881
Simplify and fix `--save-period` epoch 0 ( #8042 )
...
Simplify and update `--save-period` epoch 0
2022-05-30 12:42:12 +02:00
Glenn Jocher
632559b1e6
Add Dockerfile descriptions ( #8031 )
2022-05-29 20:43:01 +02:00
Glenn Jocher
d490bdd7d6
Add best.pt PyTorch Hub inference to CI ( #8024 )
2022-05-28 22:55:03 +02:00
Glenn Jocher
7433d3829a
Add requirements.txt `protobuf<=3.20.1` ( #8017 )
...
* Pin `protobuf==3.20.1`
* Update requirements.txt
* Update ci-testing.yml
2022-05-28 12:12:27 +02:00
Glenn Jocher
5580b27daf
`check_requirements()` "" Windows double quote ( #8016 )
2022-05-28 11:13:44 +02:00
Glenn Jocher
07e84370ac
Pin CI `protobuf==3.20.1` ( #8015 )
...
Pin protobuf==3.20.1
Resolve protobuf 4 issues.
2022-05-28 10:53:44 +02:00
Glenn Jocher
bf1a6dda7b
Update CI benchmarks to ONNX autoinstall ( #8008 )
...
Avoids openvino-dev conflicts
2022-05-27 16:54:18 +02:00
Glenn Jocher
09ba6f6eec
Add warning emoji ⚠️ on `--conf > 0.001` ( #8005 )
...
* Add warning emoji on `--conf > 0.001`
* Update val.py
2022-05-27 11:49:30 +02:00
Glenn Jocher
2373c507b0
Update and add benchmarks to ci-testing.yml ( #7996 )
...
* Update and rename ci-testing.yml to ci.yml
* Update ci.yml
* Update ci.yml
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update and rename ci.yml to ci-tests.yml
* Update ci-tests.yml
* Update ci-tests.yml
* Rename ci-tests.yml to ci-testing.yml
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-27 11:46:55 +02:00
Glenn Jocher
a6e99e4d66
cURL download double quotes ( #7999 )
...
Attempt to resolve Windows issues
2022-05-26 20:37:48 +02:00
Glenn Jocher
980aace209
Add `psutil` and `ipython` to requirements.txt ( #7998 )
...
* Add `psutil` and `ipython` to requirements.txt
Lightweight packages used by YOLOv5 for system utilization (psutil) and interactive notebooks (IPython)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* sort alphabetically
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-26 19:12:19 +02:00
Glenn Jocher
cd71aa3515
`check_requirements()` Windows fix ( #7997 )
2022-05-26 19:01:46 +02:00
Glenn Jocher
945579699a
Remove `formats` variable to avoid `pd` conflict ( #7993 )
...
* Remove `formats` variable to avoid `pd` conflict
* Update export.py
2022-05-26 16:07:58 +02:00
Glenn Jocher
1dcb774998
Update requirements.txt with Usage example ( #7966 )
...
Update requirements.txt
2022-05-25 01:40:17 +02:00
Glenn Jocher
5d6fbb1e25
Update greetings.yml ( #7965 )
2022-05-24 23:32:21 +02:00
Glenn Jocher
d07f9ce0ea
AMP check improvements backup YOLOv5n pretrained ( #7959 )
...
* Reduce AMP check to detections verification
More robust and faster
* Update general.py
* Update general.py
2022-05-24 15:33:35 +02:00
Glenn Jocher
68ff6c9c08
Increase NMS fixed time limit 300ms + 30ms/img ( #7957 )
...
* Increase NMS fixed time limit to 200ms
* Update general.py
2022-05-24 14:11:03 +02:00
Glenn Jocher
b5ebd47d64
Increase NMS time limit to 50 ms/img ( #7956 )
2022-05-24 13:58:10 +02:00
Glenn Jocher
c215878f11
YOLOv5 Apple Metal Performance Shader (MPS) support ( #7878 )
...
* Apple Metal Performance Shader (MPS) device support
Following https://pytorch.org/blog/introducing-accelerated-pytorch-training-on-mac/
Should work with Apple M1 devices with PyTorch nightly installed with command `--device mps`. Usage examples:
```bash
python train.py --device mps
python detect.py --device mps
python val.py --device mps
```
* Update device strategy to fix MPS issue
2022-05-24 13:34:32 +02:00
xylieong
27911dc824
OpenVINO metadata fix2 ( #7954 )
...
* Bug Fixed: OpenVINO metadata
* Bug Fixed: OpenVINO metadata
* Update export.py
* Update export.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-05-24 13:19:25 +02:00
Glenn Jocher
0dd66e2dc7
OpenVINO metadata fix ( #7952 )
...
* Rename OpenVINO meta.yaml to model name
* Rename OpenVINO meta.yaml to model name
* Rename OpenVINO meta.yaml to model name
* fix
2022-05-24 11:59:59 +02:00
xylieong
a3a652c933
Add OpenVINO metadata to export ( #7947 )
...
* Write .yaml file when exporting model to openvino
Write .yaml file automatically when exporting model to openvino to be used during inference
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update export.py
* Update export.py
* Load metadata on inference
* Update common.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-05-24 11:30:36 +02:00
Glenn Jocher
541a5b72bb
Windows `check_file()` fix ( #7938 )
...
Resolves Ultralytics HUB CI errors.
2022-05-23 16:15:38 +02:00
Glenn Jocher
9b4e05439c
Fix AMP check tolerance ( #7937 )
...
Adjust to 5%, fixes failing Colab AMP check with V100 (1.5% different) with 200% safety margin.
2022-05-23 15:57:16 +02:00
Glenn Jocher
cf3fb58522
AMP check image download backup ( #7936 )
...
Resolves https://github.com/ultralytics/yolov5/discussions/7931
2022-05-23 15:31:54 +02:00
Glenn Jocher
cee5959c74
Code refactor ( #7923 )
...
* Code refactor for general.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update restapi.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-22 15:24:08 +02:00
Glenn Jocher
eb1217f3ac
Add PyTorch AMP check ( #7917 )
...
* Add PyTorch AMP check
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
* Cleanup
* Cleanup
* Robust for DDP
* Fixes
* Add amp enabled boolean to check_train_batch_size
* Simplify
* space to prefix
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-22 13:41:18 +02:00
Glenn Jocher
547c89b3a0
Add `--keras` argument for TF exports ( #7921 )
...
Resolves https://github.com/ultralytics/yolov5/issues/7911#issuecomment-1133671255
2022-05-22 13:33:36 +02:00
Glenn Jocher
15057d2a34
Add `check_yaml()` to benchmarks.py ( #7916 )
...
Locate file in subdirectories.
2022-05-21 19:39:19 +02:00
Glenn Jocher
5774a1514d
Add `DWConvTranspose2d()` module ( #7881 )
...
* Add DWConvTranspose2d() module
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add DWConvTranspose2d() module
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix
* Fix
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-20 16:13:40 +02:00
Glenn Jocher
a9a92aec5c
`cv2.resize` interpolation fix ( #7903 )
...
Fix for https://github.com/ultralytics/yolov5/discussions/7901
2022-05-20 12:59:05 +02:00
Anton Lebedev
43569d53da
Bug fix mAP0.5-0.95 ( #6787 )
...
* Improve mAP0.5-0.95
Two changes provided
1. Added limit on the maximum number of detections for each image likewise pycocotools
2. Rework process_batch function
Changes #2 solved issue #4251
I also independently encountered the problem described in issue #4251 that the values for the same thresholds do not match when changing the limits in the torch.linspace function.
These changes solve this problem.
Currently during validation yolov5x.pt model the following results were obtained:
from yolov5 validation
Class Images Labels P R mAP@.5 mAP@.5:.95: 100%|██████████| 157/157 [01:07<00:00, 2.33it/s]
all 5000 36335 0.743 0.626 0.682 0.506
from pycocotools
Average Precision (AP) @[ IoU=0.50:0.95 | area= all | maxDets=100 ] = 0.505
Average Precision (AP) @[ IoU=0.50 | area= all | maxDets=100 ] = 0.685
These results are very close, although not completely pass the competition issue #2258 .
I think it's problem with false positive bboxes matched ignored criteria, but this is not actual for custom datasets and does not require an additional solution.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Remove line to retain pycocotools results
* Update val.py
* Update val.py
* Remove to device op
* Higher precision int conversion
* Update val.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-20 11:33:10 +02:00
xylieong
f43cd53d44
Added Windows cmd to count GPU devices ( #7891 )
...
* Added Windows cmd to count GPU devices
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-05-19 15:48:44 +02:00
Jaewon Lee
fe1b503cbb
Removed shell=True from subprocess commands that require user inputs ( #7875 )
...
* Removed shell=True from subprocess commands that require user inputs. Also removed unused arguments
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Added check=True
* Revert line add
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-05-19 11:49:13 +02:00
Glenn Jocher
7d46c69235
Invert Docker Image publishing order ( #7877 )
...
To appear on Docker Hub in top down order:
- latest
- latest-cpu
- latest-arm64
2022-05-18 17:23:42 +02:00
Glenn Jocher
9a7f289eed
Update Dockerfile-arm64 ( #7860 )
...
* Update Dockerfile-arm64
* Update docker.yml
2022-05-17 16:35:12 +02:00
Glenn Jocher
1b8e70f037
Add TFDWConv() `depth_multiplier` ( #7858 )
...
Enabled grouped non c1 == c2 convolutions in TF YOLOv5 models.
2022-05-17 15:42:36 +02:00
Glenn Jocher
91c82d8f92
Update Dockerfile-cpu install `libpython3.8-dev` ( #7857 )
...
* Update Dockerfile-cpu install `libpython3.8-dev`
Fix OpenVINO export
* Update Dockerfile-arm64
2022-05-17 15:09:10 +02:00
Glenn Jocher
d7d2b10f69
Create docker.yml ( #7856 )
...
* Create docker.yml
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update docker.yml
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update docker.yml
* Update docker.yml
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
* Cleanup2
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-17 14:11:38 +02:00
Glenn Jocher
e4d82c1951
Update CI CPU badge ( #7855 )
...
* Update README.md
* Update greetings.yml
2022-05-17 13:01:18 +02:00
Glenn Jocher
614ef110b3
Update Dockerfile `--no-install-recommends` ( #7846 )
...
* Update Dockerfile-cpu `--no-install-recommends`
Per https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends
* Update Dockerfile-M1
* Update Dockerfile
* Update Dockerfile-M1
* Update Dockerfile-cpu
2022-05-17 01:29:23 +02:00
Glenn Jocher
b52fd48b4a
TFDWConv() `depthwise_initializer` fix ( #7845 )
2022-05-16 23:37:38 +02:00
Nanohana
05d4fc9db4
Replace `openvino-dev` with OpenVINO Runtime inference ( #7843 )
...
* Uses OpenVINO runtime instead of openvino-dev
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* export with openvino package
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Revert export.py
* Update common.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-05-16 21:03:02 +02:00
Glenn Jocher
2b64b45cd8
Fix TFDWConv() `c1 == c2` check ( #7842 )
2022-05-16 18:06:46 +02:00
Glenn Jocher
fb7fa5be8b
New TensorFlow `TFCrossConv()` module ( #7827 )
...
* New TensorFlow `TFCrossConv()` module
* Move from experimental to common
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add C3x
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add to C3x to yolo.py
* Add to C3x to tf.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* TFC3x bug fix
* TFC3x bug fix
* TFC3x bug fix
* Add TFDWConv g==c1==c2 check
* Add comment
* Update tf.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-16 17:02:16 +02:00
dependabot[bot]
d29df68299
Bump cirrus-actions/rebase from 1.6 to 1.7 ( #7831 )
...
Bumps [cirrus-actions/rebase](https://github.com/cirrus-actions/rebase ) from 1.6 to 1.7.
- [Release notes](https://github.com/cirrus-actions/rebase/releases )
- [Commits](https://github.com/cirrus-actions/rebase/compare/1.6...1.7 )
---
updated-dependencies:
- dependency-name: cirrus-actions/rebase
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-16 10:48:51 +02:00
Glenn Jocher
4d59f65db5
New TensorFlow `TFDWConv()` module ( #7824 )
...
* New TensorFlow `TFDWConv()` module
Analog to DWConv() module:
8aa2085a7e/models/common.py (L53-L57)
* Fix and new activations() function
* Update tf.py
2022-05-16 01:04:16 +02:00
Glenn Jocher
1e112ced79
YOLOv5 OpenVINO PyTorch Hub inference fix ( #7826 )
...
Resolves bug report #7817
2022-05-16 00:56:44 +02:00
Glenn Jocher
8aa2085a7e
Refactor modules ( #7823 )
2022-05-15 19:44:16 +02:00
Glenn Jocher
f00071416f
Refactor collections and fstrings ( #7821 )
...
* Update torch_utils.py
* Additional code refactoring
* tuples to sets
* Cleanup
2022-05-15 16:38:26 +02:00
Glenn Jocher
3356f2609c
Add Python version output ( #7814 )
2022-05-14 18:30:47 +02:00
Glenn Jocher
4a295b1a89
Add `@threaded` decorator ( #7813 )
...
* Add `@threaded` decorator
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-14 16:12:08 +02:00
Glenn Jocher
9d8ed37df7
Rename `utils/datasets.py` > `utils/dataloaders.py` ( #7799 )
2022-05-13 14:34:16 +02:00
Yonghye Kwon
5a1ef32553
Add random interpolation method augmentation ( #6826 )
...
* add random_interpolation option to make model robust to interpolation methods
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix precommit error
* Update augmentations.py
* Update augmentations.py
* Update augmentations.py
* Update datasets.py
* Update datasets.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-05-13 14:26:11 +02:00
Glenn Jocher
5e077bfd39
Add Dockerfile-M1 ( #7720 )
...
* Add Dockerfile-M1
* Update
* Update
* Update Dockerfile-M1
2022-05-13 14:15:21 +02:00
Glenn Jocher
8a4175cde0
Add smoothing to curve plots and max F1 index ( #7798 )
...
@sergiossm
2022-05-13 13:53:21 +02:00
Glenn Jocher
d95a728f55
Implement DDP `static_graph=True` ( #6940 )
...
* Implement DDP `static_graph=True`
Experimental implementation of new PyTorch 1.11.0 DDP feature.
* Add 1.11.0 check
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-13 12:32:47 +02:00
Glenn Jocher
f3fecf94a9
Pin downloads to release version ( #7790 )
...
* Pin downloads to release version
Fixes a release version to avoid forward-compatibility issues in future releases.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-13 00:24:53 +02:00
Cristi Fati
4870064629
Ability to dowlnoad older assets ( #7767 )
...
* Ability to dowlnoad older assets
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
* Cleanup2
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-05-11 12:52:10 +02:00
Glenn Jocher
d059d1da03
Report fused model summary by default ( #7722 )
2022-05-06 23:51:59 -07:00
Glenn Jocher
aa7a0e91b1
Update `on_train_end` callback ( #7716 )
2022-05-05 21:25:13 -07:00
Glenn Jocher
1d0a0944c1
Update tutorial.ipynb ( #7715 )
...
* Update tutorial.ipynb
* Created using Colaboratory
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-05 20:55:52 -07:00
Glenn Jocher
c4cb7c684a
Update README.md ( #7686 )
2022-05-03 15:18:01 -07:00
Glenn Jocher
d4ea61e043
FROM nvcr.io/nvidia/pytorch:22.04-py3 ( #7680 )
...
* FROM nvcr.io/nvidia/pytorch:22.04-py3
* Update Docker
* Update Docker
* Update Docker
* Update Docker
* Update TRT auto-install
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
* Cleanup
* Cleanup cpu
* Cleanup cpu
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-05-03 13:47:30 -07:00
Glenn Jocher
e305aba686
Pin Docker-cpu `FROM ubuntu:20.04` ( #7677 )
2022-05-02 23:27:24 -07:00
Glenn Jocher
c4862fcd31
Update Dockerfile-cpu to force python3.9 ( #7675 )
...
* Update
* Update
* Do not install torch
* Pillow>9.1
* Update Dockerfile-cpu
* Update Dockerfile-cpu
* Update Dockerfile-cpu
* Update Dockerfile-cpu
* Update Dockerfile-cpu
* Update Dockerfile-cpu
* Update Dockerfile-cpu
* Update Dockerfile-cpu
* Update Dockerfile-cpu
* Update Dockerfile
* fix emoji
* reduce scipy
* add libpython3.9
* Update Dockerfile
2022-05-02 20:53:02 -07:00
David Matos
bff6e51bc4
Disallow `--dynamic` when `--half` is passed ( #7669 )
...
* disallow dynamic arg when half is given
* Update export.py
Co-authored-by: David Matos <david@track32.nl>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-05-02 09:00:24 -07:00
dependabot[bot]
1994ad93e4
Bump github/codeql-action from 1 to 2 ( #7665 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-01 22:25:00 -07:00
SylvanDing
5743deb9df
Update plot.py ( #7654 )
...
fix bug in issue #7650
2022-04-30 20:01:21 -07:00
Glenn Jocher
488fb0a36a
Bump `scipy>=1.5` to meet numpy constraints ( #7646 )
...
Resolves https://github.com/ultralytics/yolov5/issues/7638
2022-04-29 12:00:30 -07:00
Glenn Jocher
b24a576823
Reduce `opencv-python>=4.1.1` for Jetson Nano ( #7645 )
...
May help https://github.com/ultralytics/yolov5/issues/7631#issuecomment-1113007451
2022-04-29 11:50:30 -07:00
Glenn Jocher
1a3ecb8b38
`increment_path()` robustness improvements ( #7628 )
...
Improved robustness to filename edge cases like `data/images/zidane.23.jpg` that currently fail. May resolve https://github.com/ultralytics/yolov5/issues/7432
2022-04-28 14:00:43 -07:00
Duncan Moss
177da7f348
Add `--half` support for OpenVINO exports ( #7615 )
...
* feature(export): add half support for openvino models
* Update export.py
* Update export.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-27 17:29:59 -07:00
Glenn Jocher
b53917de8d
Remove `tqdm.auto` ( #7599 )
2022-04-26 15:00:01 -07:00
Jack Liu
2611477d2e
Fix `from yolov5 import utils` statement ( #7578 )
2022-04-25 21:05:48 -07:00
Glenn Jocher
e54e758cfb
Add PyTorch-only benchmark arg ( #7564 )
...
Usage:
```
python utils/benchmarks.py --weights yolov5s.pt --img 640 --pt-only
```
2022-04-24 20:03:23 -07:00
Glenn Jocher
950a85d9f6
TensorRT PyTorch Hub inference fix ( #7560 )
...
Solution proposed in https://github.com/ultralytics/yolov5/issues/7128 to TRT PyTorch Hub CUDA illegal memory errors.
2022-04-24 12:45:56 -07:00
Glenn Jocher
c16671fc74
Add `print(results)` override for PyTorch Hub results ( #7559 )
2022-04-24 12:07:05 -07:00
Glenn Jocher
be67572279
Enable `results.print()` when `_verbose=False` ( #7558 )
...
Follows implementation of _verbose flag for PyTorch Hub models. Currently these are so silent that result.print() does nothing 😂
2022-04-24 11:30:40 -07:00
Glenn Jocher
7043872f25
PyTorch Hub `_verbose=False` fix2 ( #7550 )
...
* PyTorch Hub `_verbose=False` fix2
* Update downloads.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update hubconf.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-23 11:26:25 -07:00
Glenn Jocher
1f1ec1c3e7
Restrict TRT autoinstall to Linux-only ( #7549 )
...
May partially resolve concerns in https://github.com/ultralytics/yolov5/pull/7537#discussion_r856843711
2022-04-23 09:36:36 -07:00
Glenn Jocher
404b4fefbe
Update restapi.py ( #7309 )
...
* Update restapi.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update restapi.py
* Update restapi.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update restapi.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-22 16:19:21 -07:00
Glenn Jocher
3a89377c04
Improve availability of YOLOv5 in Russia ( #7545 )
...
* Add redundant weights download mirrors
This PR seeks to improve access worldwide to YOLOv5 weights. Universal access to AI for all is our core value, and we are against any censorship or restriction efforts.
I've uploaded the official YOLOv5 v6.1 weights to a primary backup bucket on GCP and to secondary backup on Google Drive at https://drive.google.com/drive/folders/1EFQTEUeXWSFww0luse2jB9M1QNZQGwNl . Autodownload with try the first two locations (GitHuB release assets and GCP bucket), and point users to the Google Drive folder if the first two fail.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-22 16:07:33 -07:00
Ayush Chaurasia
4cac1cfc8f
Add `--noplots` flag to suppress figures and images logging ( #7534 )
...
* support nomedia
* support nomedia for validation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update train.py
* Revert no plot evolve
evolve plots do not contain any images
* Revert plot_results
contains no media
* Update wandb_utils.py
* sync-bn cleanup
* Cleanup
* Rename nomedia -> noplots
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-22 15:04:08 -07:00
Glenn Jocher
f62609eb52
Update check_requirements() with `cmds=()` argument ( #7543 )
2022-04-22 14:31:05 -07:00
Powercube7
4b284a12c7
Update downloads.py current release ( #7541 )
...
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-22 13:44:54 -07:00
Glenn Jocher
e04d8b1cb0
Update precommit monthly python 3.7+ ( #7542 )
2022-04-22 13:43:50 -07:00
Zengyf-CVer
c264795f50
Add mdformat to precommit checks and update other version ( #7529 )
...
* Update .pre-commit-config.yaml
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update .pre-commit-config.yaml
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update CONTRIBUTING.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update README.md
* Update README.md
* Update README.md
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-22 13:36:27 -07:00
Glenn Jocher
cc1d7df03c
Autoinstall TensorRT if missing ( #7537 )
...
* Autoinstall TensorRT if missing
May resolve https://github.com/ultralytics/yolov5/issues/7464
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update export.py
* Update export.py
* Update export.py
* Update export.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-22 12:31:33 -07:00
Glenn Jocher
813eba85b2
Empty val batch CUDA device fix ( #7539 )
...
Verified fix for https://github.com/ultralytics/yolov5/pull/7525#issuecomment-1106081123
2022-04-22 12:01:14 -07:00
Glenn Jocher
b804b36bc4
Add Docker `--file` argument to build ( #7527 )
2022-04-21 20:31:26 -07:00
Glenn Jocher
d2e698c75c
Reduce val device transfers ( #7525 )
2022-04-21 20:06:57 -07:00
Glenn Jocher
23718df1c6
Fix val `plots=plots` ( #7524 )
2022-04-21 18:21:01 -07:00
Zengyf-CVer
6ea81bb3a9
Add yesqa to precommit checks ( #7511 )
...
* Update .pre-commit-config.yaml
* Update .pre-commit-config.yaml
2022-04-20 18:44:52 -07:00
Glenn Jocher
918d7b2b3f
Refactor Dockerfiles to `utils/docker` ( #7510 )
...
* Refactor Docker files
* Refactor Docker files
* Update Dockerfile
2022-04-20 14:23:55 -07:00
Joseph Kocherhans
b77c8d9d72
Added `YOLOv5_AUTOINSTALL` environment variable ( #7505 )
...
* Added a way to skip dependency auto-installation.
Setting the environment variable `YOLOv5_AUTOINSTALL=False` will
skip installing any missing dependencies as if the user had passed
`install=False` to `check_requirements`.
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-20 12:08:22 -07:00
Glenn Jocher
3f3852e2ff
Fix val.py Ensemble() ( #7490 )
2022-04-19 21:15:04 -07:00
Glenn Jocher
ab5b917494
`check_fonts()` download to `CONFIG_DIR` fix ( #7489 )
...
Follows https://github.com/ultralytics/yolov5/pull/7488 . Correct bug where fonts were downloading to current working directory rather than global CONFIG_DIR
2022-04-19 17:50:02 -07:00
Glenn Jocher
c9042dc2ad
Improved non-latin `Annotator()` plotting ( #7488 )
...
* Improved non-latin labels Annotator plotting
May resolve https://github.com/ultralytics/yolov5/issues/7460
* Update train.py
* Update train.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* add progress arg
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-19 17:32:15 -07:00
HERIUN
d876caab4d
Update val.py ( #7478 )
...
* Update val.py
is_coco doesn't work!! '/' -> os.sep!!
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
* fix
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-19 15:40:06 -07:00
dependabot[bot]
3a25e81b30
Bump cirrus-actions/rebase from 1.5 to 1.6 ( #7462 )
...
Bumps [cirrus-actions/rebase](https://github.com/cirrus-actions/rebase ) from 1.5 to 1.6.
- [Release notes](https://github.com/cirrus-actions/rebase/releases )
- [Commits](https://github.com/cirrus-actions/rebase/compare/1.5...1.6 )
---
updated-dependencies:
- dependency-name: cirrus-actions/rebase
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-19 15:07:05 -07:00
Cedric Perauer
7926afccde
Add `--half` support for FP16 CoreML exports with ( #7446 )
...
* add fp16 for coreml using --half
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix
* Cleanup
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update export.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-16 18:00:50 +02:00
Glenn Jocher
c9a3b14a74
Disable `pbar` for DDP ranks > 0 ( #7440 )
2022-04-16 15:12:38 +02:00
Glenn Jocher
3eefab1bb1
Remove `tensorrt` pip install check ( #7439 )
2022-04-15 21:48:52 +02:00
Glenn Jocher
014acde79d
Update `git_describe()` ( #7402 )
...
* Update `git_describe()`
Add .git path check to avoid `fatal: not a git repository (or any of the parent directories): .git` printout
* Update general.py
2022-04-12 17:26:53 +02:00
Glenn Jocher
2da2466168
Fix EdgeTPU output directory ( #7399 )
...
* Fix EdgeTPU output directory
Outputs to same directory as --weights
* Update export.py
2022-04-12 15:08:53 +02:00
Glenn Jocher
5333b55e74
Remove OpenVINO ONNX `opset<=12` check ( #7398 )
...
No longer needed.
2022-04-12 14:57:50 +02:00
Ayush Chaurasia
74aaab3312
Add version warning for wandb ( #7385 )
...
* add version warning
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update __init__.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-12 11:46:56 +02:00
Glenn Jocher
4bb7eb8b84
Dynamic normalization layer selection ( #7392 )
...
* Dynamic normalization layer selection
Based on actual available layers. Torch 1.7 compatible, resolves https://github.com/ultralytics/yolov5/issues/7381
* Update train.py
2022-04-12 11:02:11 +02:00
Vardan Agarwal
fa569cdae5
Add support for different normalization layers ( #7377 )
...
* Add support for different normalization layers.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-11 14:04:22 +02:00
Glenn Jocher
bd2dda8e64
Update optimizer param group strategy ( #7376 )
...
* Update optimizer param group strategy
Avoid empty lists on missing BathNorm2d models as in https://github.com/ultralytics/yolov5/issues/7375
* fix init
2022-04-11 12:34:35 +02:00
dependabot[bot]
71685cbf91
Bump actions/stale from 4 to 5 ( #7371 )
...
Bumps [actions/stale](https://github.com/actions/stale ) from 4 to 5.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-11 10:26:13 +02:00
Glenn Jocher
8c420c4c1f
Update ci-testing.yml ( #7365 )
...
Remove keras==2.6.0 patch
2022-04-10 15:17:25 +02:00
Glenn Jocher
b8d4f2bf74
Replace Slack with Community Forum in issues ( #7364 )
2022-04-10 14:50:01 +02:00
Glenn Jocher
db36f13c7a
Delete FUNDING.yml ( #7363 )
...
Deleting as redundant with FUNDING.yml present in organization repo at https://github.com/ultralytics/.github
2022-04-10 14:40:33 +02:00
Glenn Jocher
1993efd59e
Swap `unsafe_chunk()` for `chunk()` ( #7362 )
...
Eliminates all unsafe function in YOLOv5 out of an abundance of caution.
2022-04-10 13:53:28 +02:00
Glenn Jocher
406ee528f0
Loss and IoU speed improvements ( #7361 )
...
* Loss speed improvements
* bbox_iou speed improvements
* bbox_ioa speed improvements
* box_iou speed improvements
* box_iou speed improvements
2022-04-10 13:46:07 +02:00
rglkt
aa542ce6a6
DetectMultiBackend() default `stride=32` ( #7342 )
...
* set common default stride as 32
* restore default stride, and set it on argument optional
* fix wrong use of opt
* fix missing parameter of stride
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix format of parameters
* Update val.py
* Update common.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-09 19:11:55 +02:00
Glenn Jocher
3bb233a7fb
Add ONNX export metadata ( #7353 )
2022-04-09 13:27:49 +02:00
Glenn Jocher
698a5d7f26
Add `python benchmarks.py --test` for export-only ( #7350 )
...
* Test exports
* Fix precommit
2022-04-09 01:32:16 +02:00
Glenn Jocher
446e6f563a
Rename 'MacOS' to 'macOS' ( #7349 )
2022-04-08 23:05:15 +02:00
Glenn Jocher
302b00b5f4
Update `_make_grid()` ( #7346 )
2022-04-08 12:55:16 +02:00
Glenn Jocher
5f941a84ef
Print dataset scan only `if RANK in (-1, 0)` ( #7337 )
...
* Print dataset scan only `if RANK in (-1, 0)`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-07 16:44:08 +02:00
Glenn Jocher
676e10cf1a
Simplify callbacks.py return ( #7333 )
...
* Simplify callbacks.py return
* Indent args (pytorch convention)
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-07 16:15:01 +02:00
Glenn Jocher
5783de26fe
Objects365 dataset breakdown images vs zips ( #7335 )
2022-04-07 16:12:44 +02:00
Nrupatunga
b7faeda0f2
Fix Tf export for BottleneckCSP ( #7330 )
2022-04-07 13:52:44 +02:00
Glenn Jocher
0ca85ed65f
Update Objects365.yaml ( #7323 )
...
Updated dataset size to 712GB (includes undeleted zips).
2022-04-06 23:52:19 +02:00
Nick Martin
a88a81469a
Copy wandb param dict before training to avoid overwrites ( #7317 )
...
* Copy wandb param dict before training to avoid overwrites.
Copy the hyperparameter dict retrieved from wandb configuration before passing it to `train()`. Training overwrites parameters in the dictionary (eg scaling obj/box/cls gains), which causes the values reported in wandb to not match the input values. This is confusing as it makes it hard to reproduce a run, and also throws off wandb's Bayesian sweep algorithm.
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-06 18:35:33 +02:00
Glenn Jocher
245d6459a9
Add callbacks ( #7315 )
...
* Add `on_train_start()` callback
* Update
* Update
2022-04-06 17:23:34 +02:00
Glenn Jocher
32661f75ac
Add `retry=3` to `download()` ( #7313 )
...
* Add `retry=3` to `download()`
* Update general.py
* Update general.py
* Update general.py
* Update VOC.yaml
* Update VisDrone.yaml
2022-04-06 13:12:41 +02:00
Glenn Jocher
f735458987
Use `tqdm.auto` ( #7311 )
2022-04-06 12:20:24 +02:00
Glenn Jocher
d257c75c84
Update export.py ( #7301 )
...
* Update export.py
Simplify code.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-05 21:21:57 +02:00
Max Strobel
741fac815e
fix: disable usage of root logger ( #7296 )
...
* fix: disable usage of root logger
`logging.basicConfig` configures Python's root logger. This prohibits
fine control of logging, overwrites logging configuration done outside
the package, and is not best practice. Instead, the used logger is now
configured directly, and the root logger is untouched.
Example:
If yolov5 is used as part of another project with some sophisticated
logging, the internal `logging.basicConfig` call overwrites all the
external configuration.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update general.py
* Update general.py
* Comment kaggle
* Uncomment kaggle
Co-authored-by: Maximilian Strobel <Maximilian.Strobel@infineon.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-05 17:38:13 +02:00
Glenn Jocher
c759bbdf19
Add `check_requirements(('pycocotools>=2.0',))` ( #7295 )
...
Add `check_requirements(('pycocotools>=2.0',))`
2022-04-05 15:55:16 +02:00
Glenn Jocher
b1300f3e0b
Add dataset sizes (zipped) ( #7293 )
2022-04-05 15:14:54 +02:00
Glenn Jocher
d2e7ba2a3a
val.py `--weights` and `--data` compatibility check ( #7292 )
...
Improved error messages for understanding of user error with val.py. May help https://github.com/ultralytics/yolov5/issues/7291
2022-04-05 14:23:15 +02:00
Glenn Jocher
5f97001ed4
Context manager `open(file) as f` fixes ( #7289 )
...
* Flask context manager `open()` fix
* Additional read context manager fixes
2022-04-05 12:54:25 +02:00
Glenn Jocher
2181ef371e
Update `cv2.imread()` patch with flags argument ( #7287 )
2022-04-05 11:49:32 +02:00
leeflix
8d0291f3af
Enable TensorFlow ops for `--nms` and `--agnostic-nms` ( #7281 )
...
* enable TensorFlow ops if flag --nms or --agnostic-nms is used
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update export.py
* Update export.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-05 11:33:08 +02:00
Glenn Jocher
2da68664b5
Update Dockerfile ( #7282 )
2022-04-05 00:52:37 +02:00
pre-commit-ci[bot]
7882950577
[pre-commit.ci] pre-commit suggestions ( #7279 )
...
* [pre-commit.ci] pre-commit suggestions
updates:
- [github.com/asottile/pyupgrade: v2.31.0 → v2.31.1](https://github.com/asottile/pyupgrade/compare/v2.31.0...v2.31.1 )
- [github.com/pre-commit/mirrors-yapf: v0.31.0 → v0.32.0](https://github.com/pre-commit/mirrors-yapf/compare/v0.31.0...v0.32.0 )
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update yolo.py
* Update activations.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update activations.py
* Update tf.py
* Update tf.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-04-04 22:47:00 +02:00
Glenn Jocher
ea72b84f5e
Integrate offset into grid ( #7262 )
...
Eliminate 1 op during training and inference.
2022-04-03 23:40:23 +02:00
Glenn Jocher
8bc839ed8e
TorchScript single-output fix ( #7261 )
2022-04-03 22:51:11 +02:00
Glenn Jocher
05cf0d1a44
Export single output only ( #7259 )
...
* Update
* Update
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-03 21:29:20 +02:00
Glenn Jocher
779efbb9ca
Update
2022-04-03 21:21:55 +02:00
Glenn Jocher
ad0e4d5d19
`torch.split()` replace slicing on out-of-place inference ( #7258 )
2022-04-03 20:05:50 +02:00
Glenn Jocher
4f839b7970
Refactor out-of-place `Detect()` for reduced ops ( #7257 )
2022-04-03 19:26:23 +02:00
Glenn Jocher
ffcbd8ca97
Export with official `nn.SiLU()` ( #7256 )
...
* Update
* Update time_limit
2022-04-03 18:45:05 +02:00
Zengyf-CVer
dda669a12c
Fix Flask REST API ( #7210 )
...
* Update restapi.py
* Update restapi.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-03 13:19:26 +02:00
Glenn Jocher
035b5548e4
Update tutorial.ipynb ( #7255 )
2022-04-03 12:18:24 +02:00
Glenn Jocher
3d3483cf0c
Update tutorial.ipynb ( #7254 )
2022-04-03 12:14:12 +02:00
Glenn Jocher
6f4eb95af7
Update setup.cfg to `description_file` field ( #7248 )
...
Resolve `UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead`
2022-04-03 00:18:18 +02:00
Glenn Jocher
a19406b39d
Update minimum Python>=3.7.0 ( #7247 )
2022-04-02 15:05:00 +02:00
Glenn Jocher
37675e110f
Fix `www.youtube.com` hostname ( #7242 )
...
* Fix `www.youtube.com` hostname
* Update datasets.py
2022-04-01 21:38:49 +02:00
Glenn Jocher
71621df875
Create CODE_OF_CONDUCT.md ( #7233 )
2022-04-01 00:24:37 +02:00
Glenn Jocher
734ab033fd
SavedModel TF Serve Fix ( #7228 )
...
* SavedModel TF Serve Fix
Fix for https://github.com/ultralytics/yolov5/issues/7205 proposed by @tylertroy
* Update export.py
2022-04-01 00:07:23 +02:00
Glenn Jocher
4d157f578a
Update .pre-commit-config.yaml ( #7230 )
2022-03-31 17:26:34 +02:00
Glenn Jocher
2c3221844b
CLI `fire` prep updates ( #7229 )
...
* CLI fire prep updates
* revert unintentional TF export change
2022-03-31 17:11:43 +02:00
Jirka Borovec
c3d5ac151e
precommit: yapf ( #5494 )
...
* precommit: yapf
* align isort
* fix
# Conflicts:
# utils/plots.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update setup.cfg
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update setup.cfg
* Update setup.cfg
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update wandb_utils.py
* Update augmentations.py
* Update setup.cfg
* Update yolo.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update val.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* simplify colorstr
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* val run fix
* export.py last comma
* Update export.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update hubconf.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* PyTorch Hub tuple fix
* PyTorch Hub tuple fix2
* PyTorch Hub tuple fix3
* Update setup
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-03-31 16:52:34 +02:00
Glenn Jocher
df9008ee69
Add train.py `--name cfg` option ( #7202 )
...
Automatically names run as --cfg argument
2022-03-31 13:17:22 +02:00
Glenn Jocher
c94736acec
`ENV OMP_NUM_THREADS=8` ( #7215 )
2022-03-30 16:01:55 +02:00
Glenn Jocher
9c1e91aea2
Update tutorial.ipynb ( #7212 )
2022-03-30 12:53:49 +02:00
Glenn Jocher
cf4f3c3455
yolo.py profiling updates ( #7178 )
...
* yolo.py profiling updates
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-03-29 10:15:53 +02:00
dependabot[bot]
d51f9b2ff6
Bump actions/cache from 2.1.7 to 3 ( #7175 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2.1.7 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.7...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 10:42:19 +02:00
Glenn Jocher
ee77632393
Revert `C3()` change ( #7172 )
2022-03-28 02:31:00 +02:00
Glenn Jocher
1832264dd6
Update
2022-03-28 02:26:44 +02:00
Glenn Jocher
b2194b9015
`yolo.py --profile` updates ( #7170 )
2022-03-27 20:24:42 +02:00
Glenn Jocher
7830e91b9a
`yolo.py --profile` default GPU batch size 16
2022-03-26 16:53:42 +01:00
Glenn Jocher
3373aab56c
NMS unused variable fix ( #7161 )
...
* NMS unused variable fix
* Update general.py
2022-03-26 16:52:58 +01:00
Glenn Jocher
e19f87eb4b
Sidestep `os.path.relpath()` Windows bug ( #7158 )
...
* Sidestep os.path.relpath() Windows bug
os.path.relpath() seems to have a major bug on Windows due to Windows horrible path handling. This fix attempts to sidestep the issue.
```
File "C:\Users\mkokg/.cache\torch\hub\ultralytics_yolov5_master\export.py", line 64, in
ROOT = Path(os.path.relpath(ROOT, Path.cwd())) # relative
File "C:\Users\mkokg\AppData\Local\Programs\Python\Python310\lib\ntpath.py", line 718, in relpath
raise ValueError("path is on mount %r, start on mount %r" % (
ValueError: path is on mount 'C:', start on mount 'D:'
```
* Update yolo.py
* Update yolo.py
* Update yolo.py
* Update export.py
2022-03-26 14:18:53 +01:00
Glenn Jocher
26bfd44465
Adjust NMS time limit warning to batch size ( #7156 )
2022-03-26 11:45:28 +01:00
Glenn Jocher
7a2a11893b
Add Architecture Summary to README Tutorials ( #7146 )
...
* Add Architecture Summary to README Tutorials
Per https://github.com/ultralytics/yolov5/issues/6998#issuecomment-1073517405
* Update README.md
2022-03-25 14:45:23 +01:00
Zengyf-CVer
a4c661873f
Fix `detect.py --view-img` for non-ASCII paths ( #7093 )
...
* Update detect.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update general.py
* Update detect.py
* Update general.py
* Update general.py
* Update general.py
* Update general.py
* Update general.py
* Update general.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update general.py
* Update general.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-03-25 13:40:55 +01:00
RcINS
d115bbf509
Fix `cv2.imwrite` on non-ASCII paths ( #7139 )
...
* Fix imwrite on non-ASCII paths
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update general.py
* Update __init__.py
* Update __init__.py
* Update datasets.py
* Update hubconf.py
* Update detect.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update general.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-03-25 13:25:30 +01:00
Glenn Jocher
a0a4adf6de
Add PyTorch Hub `results.save(labels=False)` option ( #7129 )
...
Resolves https://github.com/ultralytics/yolov5/issues/388#issuecomment-1077121821
2022-03-24 11:31:22 +01:00
yeshanliu
bc3ed957ce
`np.fromfile()` Chinese image paths fix ( #6979 )
...
* 🎉 🆕 now can read Chinese image path.
use "cv2.imdecode(np.fromfile(f, np.uint8), cv2.IMREAD_COLOR)" instead of "cv2.imread(f)" for Chinese image path.
* Update datasets.py
* Update __init__.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-03-23 15:35:15 +01:00
Glenn Jocher
c3ae4e4af6
Multi-threaded VisDrone and VOC downloads ( #7108 )
...
* Multi-threaded VOC download
* Update VOC.yaml
* Update
* Update general.py
* Update general.py
2022-03-23 01:19:37 +01:00
Glenn Jocher
ecc2c7ba73
Remove named arguments where possible ( #7105 )
...
* Remove named arguments where possible
Speed improvements.
* Update yolo.py
* Update yolo.py
* Update yolo.py
2022-03-22 20:44:07 +01:00
Glenn Jocher
6134ec5d94
Model summary `pathlib` fix ( #7104 )
...
Stems not working correctly for YOLOv5l with current .rstrip() implementation. After fix:
```
YOLOv5l summary: 468 layers, 46563709 parameters, 46563709 gradients, 109.3 GFLOPs
```
2022-03-22 20:05:07 +01:00
Glenn Jocher
ee0b3b2a95
Update benchmarks significant digits ( #7103 )
2022-03-22 18:02:35 +01:00
Glenn Jocher
05aae17333
`torch.split()` 1.7.0 compatibility fix ( #7102 )
...
* Update loss.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update loss.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-03-22 17:36:05 +01:00
Glenn Jocher
a600baed8e
Update model summary to display model name ( #7101 )
2022-03-22 15:41:19 +01:00
Glenn Jocher
a2d617ece9
Update loss for FP16 `tobj` ( #7088 )
2022-03-21 19:18:34 +01:00
Glenn Jocher
6f128031d0
Update loss.py with `if self.gr < 1:` ( #7087 )
...
* Update loss.py with `if self.gr < 1:`
* Update loss.py
2022-03-21 18:35:36 +01:00
Glenn Jocher
9b771a3e71
Revert "Update detect.py non-inplace with `y.tensor_split()` ( #7062 )" ( #7074 )
...
This reverts commit d5e363f29d .
2022-03-21 09:33:39 +01:00
Glenn Jocher
9cd89b75cc
Fix2 `check_anchor_order()` in pixel-space not grid-space ( #7067 )
...
Follows https://github.com/ultralytics/yolov5/pull/7060 which provided only a partial solution to this issue. #7060 resolved occurences in yolo.py, this applies the same fix in autoanchor.py.
2022-03-20 18:55:13 +01:00
Glenn Jocher
178c109576
Add non-zero `da` `check_anchor_order()` condition ( #7066 )
2022-03-20 18:37:27 +01:00
Glenn Jocher
9e75cbf4c1
Update __init__.py ( #7065 )
2022-03-20 18:17:04 +01:00
Glenn Jocher
e278fd63ec
Update W&B message to `LOGGER.info()` ( #7064 )
2022-03-20 18:15:22 +01:00
Glenn Jocher
0529b77232
Update common.py lists for tuples ( #7063 )
...
Improved profiling.
2022-03-20 18:03:37 +01:00
Glenn Jocher
d5e363f29d
Update detect.py non-inplace with `y.tensor_split()` ( #7062 )
2022-03-20 18:02:05 +01:00
Glenn Jocher
f327eee614
Fix `check_anchor_order()` in pixel-space not grid-space ( #7060 )
...
* Update `check_anchor_order()`
Use mean area per output layer for added stability.
* Check in pixel-space not grid-space fix
2022-03-20 16:27:51 +01:00
Philip Gutjahr
529fbc1814
Use PIL to eliminate chroma subsampling in crops ( #7008 )
...
* use pillow to save higher-quality jpg (w/o color subsampling)
* Cleanup and doc issue
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-03-20 15:46:29 +01:00
Glenn Jocher
9f4d11379b
Fix incomplete URL substring sanitation ( #7056 )
...
Resolves code scanning alert in https://github.com/ultralytics/yolov5/issues/7055
2022-03-20 14:18:05 +01:00
Glenn Jocher
6843ea5d7f
Create SECURITY.md ( #7054 )
...
* Create SECURITY.md
Resolves https://github.com/ultralytics/yolov5/issues/7052
* Move into ./github
* Update SECURITY.md
2022-03-20 13:55:32 +01:00
Glenn Jocher
9ebec7885f
Update Dockerfile to `git clone` instead of `COPY` ( #7053 )
...
Resolves git command errors that currently happen in image, i.e.:
```bash
root@382ae64aeca2:/usr/src/app# git pull
Warning: Permanently added the ECDSA host key for IP address '140.82.113.3' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
```
2022-03-20 13:51:22 +01:00
Glenn Jocher
b0ba101ac0
`ComputeLoss()` indexing/speed improvements ( #7048 )
...
* device as class attribute
* Update loss.py
* Update loss.py
* improve zeros
* tensor split
2022-03-20 01:04:48 +01:00
Mrinal Jain
4effd064b1
Consistent saved_model output format ( #7032 )
2022-03-18 12:29:24 +01:00
Max Strobel
7c6a33564a
fix: add default PIL font as fallback ( #7010 )
...
* fix: add default font as fallback
Add default font as fallback if the downloading of the Arial.ttf font
fails for some reason, e.g. no access to public internet.
* Update plots.py
Co-authored-by: Maximilian Strobel <Maximilian.Strobel@infineon.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-03-17 16:37:09 +01:00
Glenn Jocher
3f634d43c8
Conditional `Timeout()` by OS (disable on Windows) ( #7013 )
...
* Conditional `Timeout()` by OS (disable on Windows)
* Update general.py
2022-03-16 15:33:54 +01:00
Glenn Jocher
c09fb2aa95
Update TQDM bar format ( #6988 )
2022-03-15 16:32:56 +01:00
Glenn Jocher
932dc78496
YOLOv5 Export Benchmarks for GPU ( #6963 )
...
* Add benchmarks.py GPU support
* Updates
* Updates
* Updates
* Updates
* Add --half
* Add TRT requirements
* Cleanup
* Add TF to warmup types
* Update export.py
* Update export.py
* Update benchmarks.py
2022-03-14 15:07:13 +01:00
Glenn Jocher
99de551f97
pt model to cpu on TF export
2022-03-14 12:41:06 +01:00
Glenn Jocher
2d45de617e
Model `ema` key backward compatibility fix ( #6972 )
...
Fix for older model loading issue in d3d9cbce22 (commitcomment-68622388)
2022-03-14 10:54:51 +01:00
paradigm
c13d4ce7ef
EdgeTPU optimizations ( #6808 )
...
* removed transpose op for better edgetpu support
* fix for training case
* enabled experimental new quantizer flag
* precalculate add and mul ops at compile time
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-03-12 16:15:09 +01:00
Glenn Jocher
701e1177ac
Tensor initialization on device improvements ( #6959 )
...
* Update common.py speed improvements
Eliminate .to() ops where possible for reduced data transfer overhead. Primarily affects warmup and PyTorch Hub inference.
* Updates
* Updates
* Update detect.py
* Update val.py
2022-03-12 14:00:48 +01:00
Glenn Jocher
52c1399fdc
DetectMultiBackend() return `device` update ( #6958 )
...
Fixes ONNX validation that returns outputs on CPU.
2022-03-12 13:16:29 +01:00
Glenn Jocher
c84dd27d62
New val.py `cuda` variable ( #6957 )
...
* New val.py `cuda` variable
Fix for ONNX GPU val.
* Update val.py
2022-03-12 12:57:08 +01:00
Glenn Jocher
c6b4f84fd1
Update Dockerfile `torch==1.11.0+cu113` ( #6954 )
2022-03-12 00:45:07 +01:00
Glenn Jocher
b94b59e199
DetectMultiBackend() `--half` handling ( #6945 )
...
* DetectMultiBackend() `--half` handling
* CI fixes
* rename .half to .fp16 to avoid conflict
* warmup fix
* val update
* engine update
* engine update
2022-03-11 16:31:52 +01:00
Glenn Jocher
84efa62b2d
Fix PyTorch Hub export inference shapes ( #6949 )
...
May resolve https://github.com/ultralytics/yolov5/issues/6947
2022-03-11 16:18:40 +01:00
Glenn Jocher
caf7ad0500
Allow 3-point segments ( #6938 )
...
May resolve https://github.com/ultralytics/yolov5/issues/6931
2022-03-10 18:41:47 +01:00
Glenn Jocher
055e72af5b
Optimize PyTorch 1.11.0 compatibility update ( #6933 )
2022-03-10 12:58:41 +01:00
Glenn Jocher
d3d9cbce22
PyTorch 1.11.0 compatibility updates ( #6932 )
...
Resolves `AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor'` first raised in https://github.com/ultralytics/yolov5/issues/5499
2022-03-10 12:41:06 +01:00
Glenn Jocher
6dd82c0252
Move `git_describe()` to general.py ( #6918 )
...
* Move `git_describe()` to general.py
* Move `git_describe()` to general.py
2022-03-09 18:22:53 +01:00
Glenn Jocher
e6e36aac10
Update bytes to GB with bitshift ( #6886 )
2022-03-07 19:26:37 +01:00
Glenn Jocher
acc58c1dcf
Fix TRT `max_workspace_size` deprecation notice ( #6856 )
...
* Fix TRT `max_workspace_size` deprecation notice
* Update export.py
* Update export.py
2022-03-07 13:52:53 +01:00
dependabot[bot]
a5a1760ea6
Bump actions/checkout from 2 to 3 ( #6881 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-07 13:49:27 +01:00
dependabot[bot]
c8a589920e
Bump actions/setup-python from 2 to 3 ( #6880 )
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-07 13:48:59 +01:00
DavidB
596de6d5a0
Default FP16 TensorRT export ( #6798 )
...
* Assert engine precision #6777
* Default to FP32 inputs for TensorRT engines
* Default to FP16 TensorRT exports #6777
* Remove wrong line #6777
* Automatically adjust detect.py input precision #6777
* Automatically adjust val.py input precision #6777
* Add missing colon
* Cleanup
* Cleanup
* Remove default trt_fp16_input definition
* Experiment
* Reorder detect.py if statement to after half checks
* Update common.py
* Update export.py
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-03-06 21:21:16 +01:00
vnekat
7e98b4801a
Update yolov5s.yaml ( #6865 )
...
* Update yolov5s.yaml
* Update yolov5s.yaml
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-03-06 20:20:01 +01:00
Glenn Jocher
4728840745
Update `--cache disk` deprecate `*_npy/` dirs ( #6876 )
...
* Updates
* Updates
* Updates
* Updates
* Updates
* Updates
* Updates
* Updates
* Updates
* Updates
* Cleanup
* Cleanup
2022-03-06 16:16:17 +01:00
Glenn Jocher
8a66ebad44
Add `*.ts` to `VID_FORMATS` ( #6859 )
2022-03-04 14:10:13 +01:00
Glenn Jocher
601dbb83f0
AutoAnchor improved initialization robustness ( #6854 )
...
* Update AutoAnchor
* Update AutoAnchor
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-03-04 10:32:18 +01:00
Louis Combaldieu
bcc92e2169
Update sweep.yaml ( #6825 )
...
* Update sweep.yaml
Changed focal loss gamma search range between 1 and 4
* Update sweep.yaml
lowered the min value to match default
2022-03-04 09:39:23 +01:00
Glenn Jocher
63ddb6f0d0
Update autoanchor.py ( #6794 )
...
* Update autoanchor.py
* Update autoanchor.py
2022-02-26 19:15:12 +01:00
Glenn Jocher
c2403eb04c
Update PULL_REQUEST_TEMPLATE.md ( #6783 )
2022-02-25 14:01:58 +01:00
Glenn Jocher
9ec51a6396
YOLOv5s6 params FLOPs fix ( #6782 )
2022-02-25 13:59:21 +01:00
Glenn Jocher
0f819919ad
Update EMA decay `tau` ( #6769 )
...
* Update EMA
* Update EMA
* ratio invert
* fix ratio invert
* fix2 ratio invert
* warmup iterations to 100
* ema_k
* implement tau
* implement tau
2022-02-25 12:33:09 +01:00
Louis Combaldieu
b2adc7c39a
Fix export for 1-channel images ( #6780 )
...
Export failed for 1-channel input shape, 1-liner fix
2022-02-25 10:56:37 +01:00
Glenn Jocher
cea994b3f6
Update hyp.VOC.yaml ( #6772 )
2022-02-25 00:14:17 +01:00
Glenn Jocher
741cd0eb23
Update tutorial.ipynb ( #6771 )
2022-02-25 00:12:27 +01:00
Glenn Jocher
c161557563
Default `OMP_NUM_THREADS=8` ( #6770 )
2022-02-25 00:09:14 +01:00
Glenn Jocher
47f265dde2
Update min warmup iterations from 1k to 100 ( #6768 )
2022-02-24 23:37:25 +01:00
Glenn Jocher
4bab56526b
Update tutorial.ipynb (2 CPUs, 12.7 GB RAM, 42.2/166.8 GB disk) ( #6767 )
2022-02-24 18:29:59 +01:00
Glenn Jocher
66aaf5184d
Pre-commit table fix ( #6744 )
2022-02-22 19:35:31 +01:00
Glenn Jocher
3752807c0b
YOLOv5 v6.1 release ( #6739 )
2022-02-22 12:35:24 +01:00
Glenn Jocher
2692e67c5f
Updated VOC hyperparameters ( #6732 )
...
* Update hyps
* Update hyp.VOC.yaml
* Update pathlib
* Update hyps
* Update hyps
* Update hyps
* Update hyps
2022-02-22 12:11:18 +01:00
Glenn Jocher
a936f5f219
Switch default LR scheduler from cos to linear ( #6729 )
...
* Switch default LR scheduler from cos to linear
Based on empirical results of training both ways on all YOLOv5 models.
* linear bug fix
2022-02-21 14:23:27 +01:00
Jirka Borovec
dbbb57cf0b
GH: add PR template ( #6482 )
...
* GH: add PR template
* Update CONTRIBUTING.md
* Update PULL_REQUEST_TEMPLATE.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update PULL_REQUEST_TEMPLATE.md
* Update PULL_REQUEST_TEMPLATE.md
* Update PULL_REQUEST_TEMPLATE.md
* Update PULL_REQUEST_TEMPLATE.md
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-21 12:36:43 +01:00
Glenn Jocher
c43f135571
Update `nw` to `max(nd, 1)` ( #6714 )
2022-02-20 21:47:46 +01:00
Glenn Jocher
4de8b24881
Suppress `torch` AMP-CPU warnings ( #6706 )
...
This is a torch bug, but they seem unable or unwilling to fix it so I'm creating a suppression in YOLOv5.
Resolves https://github.com/ultralytics/yolov5/issues/6692
2022-02-19 16:48:33 +01:00
Glenn Jocher
de9c25b35e
Use `export_formats()` in export.py ( #6705 )
...
* Use `export_formats()` in export.py
* list fix
2022-02-19 16:08:33 +01:00
Raffaele Galliera
a297efc383
Edge TPU inference fix ( #6686 )
...
* refactor: use edgetpu flag
* fix: remove bitwise and assignation to tflite
* Cleanup and fix tflite
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-02-19 15:10:07 +01:00
Samuel Yvon
0365379016
Fix floating point in number of workers `nw` ( #6701 )
...
Integer division by a float yields a (rounded) float. This causes
the dataloader to crash when creating a range.
2022-02-18 21:06:21 +01:00
Glenn Jocher
56697c43ff
Fix CoreML P6 inference ( #6700 )
...
* Fix CoreML P6 inference
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-18 20:38:33 +01:00
Glenn Jocher
3670d91b05
Fix `--evolve --bucket gs://...` ( #6698 )
2022-02-18 19:15:37 +01:00
Jiacong Fang
66e5d794c7
Fix TF exports >= 2GB ( #6292 )
...
* Fix exporting saved_model: pb exceeds 2GB
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Replace TF v1.x API with TF v2.x API for saved_model export
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Clean up
* Remove lambda in tf.function()
* Revert "Remove lambda in tf.function()" to be compatible with TF v2.4
This reverts commit 46c7931f11dfdea6ae340c77287c35c30b9e0779.
* Fix for pre-commit.ci
* Cleanup1
* Cleanup2
* Backwards compatibility update
* Update common.py
* Update common.py
* Cleanup3
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-02-18 16:36:45 +01:00
Glenn Jocher
07221f1591
FROM nvcr.io/nvidia/pytorch:21.10-py3 ( #6677 )
...
Revert to 21.10 on autobuild fail
2022-02-17 16:05:30 +01:00
Glenn Jocher
18b5081166
FROM nvcr.io/nvidia/pytorch:21.10-py3 ( #6673 )
...
Reordered installation may help reduce resource usage in autobuild
2022-02-17 15:42:47 +01:00
Glenn Jocher
25456284b4
Update Dockerfile reorder installs ( #6672 )
...
Also `nvidia-tensorboard-plugin-dlprof`, `nvidia-tensorboard` are no longer installed in NVCR base.
2022-02-17 15:10:19 +01:00
Glenn Jocher
09d263b376
FROM nvcr.io/nvidia/pytorch:21.10-py3 ( #6671 )
...
22.10 returns 'no space left on device' error message.
Seems like a bug at docker. Raised issue in https://github.com/docker/hub-feedback/issues/2209
2022-02-17 14:51:53 +01:00
Glenn Jocher
bb054d5f55
FROM nvcr.io/nvidia/pytorch:22.01-py3 ( #6670 )
2022-02-17 14:20:42 +01:00
Glenn Jocher
9a8ebe671c
Update Dockerfile `torch==1.10.2+cu113` ( #6669 )
2022-02-17 13:24:44 +01:00
Glenn Jocher
2e5c67e537
Robust `scipy.cluster.vq.kmeans` too few points ( #6668 )
...
* Handle `scipy.cluster.vq.kmeans` too few points
Resolves #6664
* Update autoanchor.py
* Cleanup
2022-02-17 12:55:03 +01:00
Glenn Jocher
7b80545e8e
Add `--cache val` ( #6663 )
...
New `--cache val` argument will cache validation set only into RAM. Should help multi-GPU training speeds without consuming as much RAM as full `--cache ram`.
2022-02-17 00:47:42 +01:00
Glenn Jocher
1ff43702a8
Validate with 2x `--workers` single-GPU/CPU fix ( #6659 )
...
Fix for #6658 for single-GPU and CPU training use cases
2022-02-16 14:50:37 +01:00
Glenn Jocher
6769021901
Validate with 2x `--workers` ( #6658 )
2022-02-16 14:44:44 +01:00
Glenn Jocher
ee6c70ae43
Fix yolov3.yaml remove list ( #6655 )
...
Per https://github.com/ultralytics/yolov3/issues/1887#issuecomment-1041135181
2022-02-16 10:13:05 +01:00
imyhxy
ca0a00784d
Fixed wandb logger KeyError ( #6637 )
2022-02-14 17:08:36 +01:00
Glenn Jocher
538930023c
Fix ConfusionMatrix scale `vmin=0.0` ( #6638 )
...
Fix attempt for https://github.com/ultralytics/yolov5/issues/6626
2022-02-14 14:54:55 +01:00
Glenn Jocher
a45e472358
YOLOv5 Export Benchmarks ( #6613 )
...
* Add benchmarks.py
* Update
* Add requirements
* Updates
* Updates
* Updates
* Updates
* Updates
* Updates
* dataset autodownload from root
* Update
* Redirect to /dev/null
* sudo --help
* Cleanup
* Add exports pd df
* Updates
* Updates
* Updates
* Cleanup
* dir handling fix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
* Cleanup2
* Cleanup3
* Cleanup model_type
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-12 16:05:43 +01:00
Ayush Chaurasia
96d8f86085
W&B: don't log media in evolve ( #6617 )
2022-02-12 13:04:50 +01:00
Ayush Chaurasia
51f7750aad
W&B: Improve resume stability ( #6611 )
...
* log best.pt metrics at train end
* update
* Update __init__.py
* flush callbacks when using evolve
* remember batch size on resuming
* Update train.py
* improve stability of resume
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-02-12 13:03:09 +01:00
Glenn Jocher
3eef80457f
Add YOLOv5n to Reproduce section ( #6619 )
2022-02-11 21:48:01 +01:00
Glenn Jocher
b40bdd6b2d
YouTube dependency fix `youtube_dl==2020.12.2` ( #6612 )
...
Per https://github.com/ultralytics/yolov5/issues/5860#issuecomment-1035320018 by @hdnh2006
2022-02-11 13:46:20 +01:00
or-toledano
cb2ad9f685
Fix `ROOT / data` when running W&B `log_dataset()` ( #6606 )
...
* Fix missing data folder when running log_dataset
* Use ROOT/'data'
* PEP8 whitespace
2022-02-10 16:17:47 +01:00
Glenn Jocher
c21da596f3
Fix `hyp_evolve.yaml` indexing bug ( #6604 )
...
* Fix `hyp_evolve.yaml` indexing bug
Bug caused hyp_evolve.yaml to display latest generation result rather than best generation result.
* Update plots.py
* Update general.py
* Update general.py
* Update general.py
2022-02-10 14:51:29 +01:00
Glenn Jocher
a5c9057dcc
Update train.py
2022-02-10 14:15:18 +01:00
Glenn Jocher
364b7c5111
Fix YouTube dislike button bug in `pafy` package ( #6603 )
...
Per https://github.com/ultralytics/yolov5/issues/6583#issuecomment-1034421945 by @alicera
2022-02-10 13:13:44 +01:00
Christoph Fürbacher
9cf80b7f60
return `opt` from `train.run()` ( #6581 )
2022-02-09 15:11:52 +01:00
Glenn Jocher
9c513ca629
Add `DATASETS_DIR` global in general.py ( #6578 )
2022-02-08 22:20:44 +01:00
Matthias Vadcard
f40854b61b
Allow custom` --evolve` project names ( #6567 )
...
* Update train.py
As see in #6463 , modification on train in evolve process to allow custom save directory.
* fix val
* PEP8
whitespace around operator
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-02-08 16:13:45 +01:00
Glenn Jocher
f627bc53f8
Fix `plot_labels()` colored histogram bug ( #6574 )
...
* Fix `plot_labels()` colored histogram bug
* Cleanup
2022-02-08 14:03:50 +01:00
Glenn Jocher
22da63e30f
Fix zero-export handling with `if any(f):` ( #6569 )
...
* Fix zero-export handling with `if any(f):`
Partial fix for https://github.com/ultralytics/yolov5/issues/6563
* Cleanup
2022-02-08 12:20:39 +01:00
Glenn Jocher
006eb40ab7
Improved AutoBatch DDP error message ( #6568 )
...
* Improved AutoBatch DDP error message
* Cleanup
2022-02-08 11:45:30 +01:00
Glenn Jocher
b57abb17f2
Move trainloader functions to class methods ( #6559 )
...
* Move trainloader functions to class methods
* results = ThreadPool(NUM_THREADS).imap(self.load_image, range(n))
* Cleanup
2022-02-07 18:59:26 +01:00
Glenn Jocher
dc7e093071
Edge TPU TF imports fix ( #6542 )
...
* Edge TPU TF imports fix
Fix for https://github.com/ultralytics/yolov5/issues/6535#issuecomment-1030631526
* Update common.py
2022-02-05 15:45:44 +01:00
Jirka Borovec
cba4303d32
Fix 6 Flake8 issues ( #6541 )
...
* F541
* F821
* F841
* E741
* E302
* E722
* Apply suggestions from code review
* Update general.py
* Update datasets.py
* Update export.py
* Update plots.py
* Update plots.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-02-05 15:22:59 +01:00
Jirka Borovec
e1a6a0b100
flake8: code meanings ( #6481 )
2022-02-04 19:54:34 +01:00
bilzard
aff0281969
Load checkpoint on CPU instead of on GPU ( #6516 )
...
* Load checkpoint on CPU instead of on GPU
* refactor: simplify code
* Cleanup
* Update train.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-02-04 18:58:18 +01:00
greg2451
8fcdf3b60b
Fixing minor multi-streaming issues with TensoRT engine ( #6504 )
...
* Update batch-size in model.warmup() + indentation for logging inference results
* These changes are in response to PR comments
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-04 18:19:37 +01:00
Glenn Jocher
079b36d72b
Edge TPU `tf.lite.experimental.load_delegate` fix ( #6536 )
...
* Edge TPU `tf.lite.experimental.load_delegate` fix
Fix attempt for #6535
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-04 09:30:01 +01:00
Glenn Jocher
9bc72a3ac2
Edge TPU export 'list index out of range' fix ( #6533 )
2022-02-04 00:04:06 +01:00
Glenn Jocher
8d05716b66
Edge TPU compiler `sudo` fix ( #6531 )
...
* Edge TPU compiler sudo fix
Allows for auto-install of Edge TPU compiler on non-sudo systems like the YOLOv5 Docker image.
@kalenmike
* Update export.py
* Update export.py
* Update export.py
2022-02-03 20:40:09 +01:00
Glenn Jocher
a82292ec53
Social icons after text ( #6473 )
...
* Social icons after text
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update README.md
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-03 19:55:19 +01:00
Glenn Jocher
c3e599cfda
Update val_batch*.jpg for Chinese fonts ( #6526 )
...
* Update plots for Chinese fonts
* make is_chinese() non-str safe
* Add global FONT
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update general.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-03 19:09:24 +01:00
Glenn Jocher
cb40c9afda
TODO issues exempt from stale action ( #6530 )
2022-02-03 18:11:28 +01:00
Glenn Jocher
19e0208fc9
Update hyp.scratch-high.yaml ( #6525 )
...
Update `lrf: 0.1`, tested on YOLOv5x6 to 55.0 mAP@0.5:0.95, slightly higher than current.
2022-02-03 12:15:13 +01:00
Ayush Chaurasia
b73c62ebc5
W&B: Remember batchsize on resuming ( #6512 )
...
* log best.pt metrics at train end
* update
* Update __init__.py
* flush callbacks when using evolve
* remember batch size on resuming
* Update train.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-02-03 11:29:52 +01:00
Glenn Jocher
4c40933266
Suppress export.run() TracerWarnings ( #6499 )
...
Suppresses warnings when calling export.run() directly, not just CLI python export.py.
Also adds Requirements examples for CPU and GPU backends
2022-02-01 23:52:50 +01:00
Glenn Jocher
842d049e1b
Suppress `torch.jit.TracerWarning` on export ( #6498 )
...
* Suppress torch.jit.TracerWarning
TracerWarnings can be safely ignored.
* Cleanup
2022-02-01 22:59:26 +01:00
Glenn Jocher
77977e0791
CoreML inference fix `list()` -> `sorted()` ( #6496 )
2022-02-01 22:34:15 +01:00
Glenn Jocher
5e4ff195b2
Improved `export.py` usage examples ( #6495 )
...
* Improved `export.py` usage examples
* Cleanup
2022-02-01 22:06:29 +01:00
Glenn Jocher
b884ea36c4
Simplify TF normalized to pixels ( #6494 )
2022-02-01 21:17:56 +01:00
Glenn Jocher
6445a8137e
Resolve dataset paths ( #6489 )
2022-02-01 15:54:51 +01:00
Glenn Jocher
7539cd75c3
Add Product Hunt social media icon ( #6464 )
...
* Social media icons update
* fix URL
* Update README.md
2022-01-28 20:23:17 +01:00
Glenn Jocher
d8b5beb0b0
Fix2 `select_device()` for Multi-GPU ( #6461 )
...
* Fix2 select_device() for Multi-GPU
* Cleanup
* Cleanup
* Simplify error message
* Improve assert
* Update torch_utils.py
2022-01-28 08:18:01 +01:00
Glenn Jocher
856d4e5733
Fix `select_device()` for Multi-GPU ( #6434 )
...
* Fix `select_device()` for Multi-GPU
Possible fix for https://github.com/ultralytics/yolov5/issues/6431
* Update torch_utils.py
* Update torch_utils.py
* Update torch_utils.py
* Update torch_utils.py
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
2022-01-26 23:47:00 +01:00
Glenn Jocher
fe7de6a82d
Revert "Remove `dataset_stats()` autodownload capability ( #6303 )" ( #6442 )
...
This reverts commit 3119b2f27c .
2022-01-26 19:10:59 +01:00
toschi23
3b7ac28ed1
Add `*.asf` video support ( #6436 )
2022-01-26 14:26:02 +01:00
Glenn Jocher
d5966c93f1
Namespace `VERBOSE` env variable to `YOLOv5_VERBOSE` ( #6428 )
...
* Verbose updates
* Verbose updates
2022-01-25 17:57:27 -05:00
Glenn Jocher
ff8646cdea
Update workflows ( #6427 )
...
* Workflow updates
* quotes fix
* best to weights fix
2022-01-25 17:33:22 -05:00
Motoki Kimura
16563ac5b5
Prefer `tflite_runtime` for TFLite inference if installed ( #6406 )
...
* import tflite_runtime if tensorflow not installed
* rename tflite to tfli
* Attempt tflite_runtime for all TFLite workflows
Also rename tfli to tfl
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-01-25 07:24:24 -08:00
Jonathan Samelson
ed9bac8392
Rename logger from 'utils.logger' to 'yolov5' ( #6421 )
...
* Gave a more explicit name to the logger
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-01-25 07:21:06 -08:00
Glenn Jocher
cfecd903a3
Update `greetings.yaml` email address ( #6412 )
...
* Update `greetings.yaml` email address
* Update greetings.yml
2022-01-24 15:28:52 -08:00
Glenn Jocher
482af479c0
Add `detect.py` GIF video inference ( #6410 )
...
* Add detect.py GIF video inference
* Cleanup
2022-01-24 13:11:11 -08:00
Matthias
8efe97719c
Add `stop_training=False` flag to callbacks ( #6365 )
...
* New flag 'stop_training' in util.callbacks.Callbacks class to prematurely stop training from callback handler
* Removed most of the new checks, leaving only the one after calling 'on_train_batch_end'
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-01-22 16:37:21 -10:00
Glenn Jocher
c43439aa31
Add `albumentations` to Dockerfile ( #6392 )
2022-01-21 21:06:02 -10:00
Glenn Jocher
bd815d48df
FROM nvcr.io/nvidia/pytorch:21.10-py3 ( #6379 )
...
21.12 generates dockerhub errors so rolling back to 21.10 with latest pytorch install. Not sure if this torch install will work on non-GPU dockerhub autobuild so this is an experiment.
2022-01-20 19:15:04 -10:00
Glenn Jocher
1b41a1d059
FROM nvcr.io/nvidia/pytorch:21.12-py3 ( #6377 )
2022-01-20 17:59:41 -10:00
Ayush Chaurasia
9bcc32a5bf
Flush callbacks when on `--evolve` ( #6374 )
...
* log best.pt metrics at train end
* update
* Update __init__.py
* flush callbacks when using evolve
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-01-20 13:22:47 -10:00
sitecao
e1893c894a
`DEVICE_COUNT` instead of `WORLD_SIZE` to calculate `nw` ( #6324 )
2022-01-20 13:06:26 -10:00
imyhxy
4e841b9b16
Reuse `de_parallel()` rather than `is_parallel()` ( #6354 )
2022-01-20 10:50:17 -10:00
johnk2hawaii
9708cf56ea
New environment variable `VERBOSE` ( #6353 )
...
New environment variable `VERBOSE`
2022-01-19 14:32:19 -10:00
Glenn Jocher
750c42e43e
`export.py` automatic `forward_export` ( #6352 )
...
* `export.py` automatic `forward_export`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-19 12:24:40 -10:00
Glenn Jocher
e5219099cd
Created using Colaboratory
2022-01-19 10:18:29 -10:00
Glenn Jocher
0cf932bf63
`export.py` return exported files/dirs ( #6343 )
...
* `export.py` return exported files/dirs
* Path to str
2022-01-18 15:18:23 -10:00
Glenn Jocher
e2e95b2d8e
TensorRT `assert im.device.type != 'cpu'` on export ( #6340 )
...
* TensorRT `assert im.device.type != 'cpu'` on export
* Update export.py
2022-01-18 13:52:25 -10:00
Glenn Jocher
fd55271c04
Console corrupted -> corrupt ( #6338 )
...
* Console corrupted -> corrupt
Minor style changes.
* Update export.py
2022-01-18 10:49:26 -10:00
Glenn Jocher
3119b2f27c
Remove `dataset_stats()` autodownload capability ( #6303 )
...
* Remove `dataset_stats()` autodownload capability
@kalenmike security update per Slack convo
* Update datasets.py
2022-01-18 10:04:49 -10:00
Otfot
db1f83be63
Fix `train.py` parameter groups desc error ( #6318 )
...
* Fix `train.py` parameter groups desc error
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-01-16 20:58:34 -10:00
Glenn Jocher
436ffc417a
`select_device()` cleanup ( #6302 )
...
* `select_device()` cleanup
* Update torch_utils.py
* Update torch_utils.py
* Update torch_utils.py
* Update torch_utils.py
* Update torch_utils.py
2022-01-14 15:48:15 -10:00
Henry
a1a9c6884c
Fixing bug multi-gpu training ( #6299 )
...
* Fixing bug multi-gpu training
This solves this issue: https://github.com/ultralytics/yolov5/issues/6297#issue-1103853348
* Update torch_utils.py for pep8
2022-01-14 10:11:06 -10:00
Glenn Jocher
e7bf38277f
Fix `device` count check ( #6290 )
...
* Fix device count check()
* Update torch_utils.py
* Update torch_utils.py
* Update hubconf.py
2022-01-13 21:23:03 -10:00
Glenn Jocher
af001349e4
Add `is_kaggle()` function ( #6285 )
...
* Add `is_kaggle()` function
Return True if environment is Kaggle Notebook.
* Remove root loggers only if is_kaggle() == True
* Update general.py
2022-01-13 12:39:42 -10:00
Glenn Jocher
80473a6551
Update `export.py` with Detect, Validate usages ( #6280 )
2022-01-12 15:48:40 -10:00
Glenn Jocher
f3085accd3
Enable ONNX `--half` FP16 inference ( #6268 )
...
* Enable ONNX ``--half` FP16 inference
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-11 10:13:17 -10:00
Glenn Jocher
b3eaf5008b
TensorRT pip install
2022-01-10 16:49:10 -10:00
Jinwoong Yoo
9b13a594e9
Fix `cmd` string on `tfjs` export ( #6243 )
...
* Fix cmd string on tfjs export
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-01-09 20:40:47 -10:00
Glenn Jocher
6865d19a92
TensorRT 7 export fix ( #6235 )
2022-01-07 09:31:17 -08:00
Glenn Jocher
33a67b4918
Update P2-P7 `models/hub` variants ( #6230 )
...
* Update p2-p7 `models/hub` variants
* Update common.py
* AutoAnchor camelcase corrections
2022-01-06 11:08:09 -08:00
Glenn Jocher
ad565e31d2
Update README speed reproduction command ( #6228 )
2022-01-06 09:55:31 -08:00
Glenn Jocher
f80c463010
Attempt `edgetpu-compiler` autoinstall ( #6223 )
...
* Attempt `edgetpu-compiler` autoinstall
Attempt to install edgetpu-compiler dependency if missing on Linux.
* Update export.py
* Update export.py
2022-01-05 20:57:20 -08:00
Glenn Jocher
b4ac3df6ff
Add `edgetpu_compiler` checks ( #6218 )
...
* Add `edgetpu_compiler` checks
* Update export.py
* Update export.py
* Update export.py
* Update export.py
* Update export.py
* Update export.py
2022-01-05 14:55:04 -08:00
Glenn Jocher
00d7b97869
TFLite `--int8` 'flatbuffers==1.12' fix 2 ( #6217 )
...
* TFLite `--int8` 'flatbuffers==1.12' fix 2
Reorganizes #6216 fix to update before `tensorflow` import so no restart required.
* Update export.py
2022-01-05 13:34:36 -08:00
Glenn Jocher
8125ec5d42
TFLite `--int8` 'flatbuffers==1.12' fix ( #6216 )
...
* TFLite `--int8` 'flatbuffers==1.12' fix
Temporary workaround for TFLite INT8 export.
* Update export.py
* Update export.py
2022-01-05 13:01:21 -08:00
Glenn Jocher
5402753a53
Edge TPU compiler comment ( #6196 )
...
* Edge TPU compiler comment
* 7 to 8 fix
2022-01-04 19:36:12 -08:00
Glenn Jocher
9e9219fe17
Fix `nan`-robust stream FPS ( #6198 )
...
Fix for Webcam stop working suddenly (Issue #6197 )
2022-01-04 19:32:42 -08:00
Glenn Jocher
b5b56a3c88
Add CoreML inference ( #6195 )
...
* Add Apple CoreML inference
* Cleanup
2022-01-04 17:49:09 -08:00
Glenn Jocher
7b31a531b4
Add `tensorrt>=7.0.0` checks ( #6193 )
...
* Add `tensorrt>=7.0.0` checks
* Update export.py
* Update common.py
* Update export.py
2022-01-04 13:39:13 -08:00
imyhxy
a2f4a1799b
TensorRT 7 `anchor_grid` compatibility fix ( #6185 )
...
* fix: TensorRT 7 incompatiable
* Add comment
* Add if: else and comment
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-01-04 11:09:25 -08:00
Yin Rong
fb839298a1
Fix TorchScript on mobile export ( #6183 )
...
* fix export of TorchScript on mobile
* Cleanup
Co-authored-by: yinrong <yinrong@xiaomi.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2022-01-03 20:25:48 -08:00
Glenn Jocher
5bd6a97b18
Global export format sort ( #6182 )
...
* Global export sort
* Cleanup
2022-01-03 20:08:15 -08:00
Glenn Jocher
7cad6597bb
Ignore `*_openvino_model/` dir ( #6180 )
2022-01-03 18:43:21 -08:00
Glenn Jocher
63a4d862aa
Add OpenVINO inference ( #6179 )
2022-01-03 15:41:26 -08:00
Glenn Jocher
b4a29b5a8d
Update NMS `max_wh=7680` for 8k images ( #6178 )
2022-01-03 10:54:52 -08:00
pre-commit-ci[bot]
5344e54da6
[pre-commit.ci] pre-commit suggestions ( #6177 )
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0 )
- [github.com/asottile/pyupgrade: v2.23.1 → v2.31.0](https://github.com/asottile/pyupgrade/compare/v2.23.1...v2.31.0 )
- [github.com/PyCQA/isort: 5.9.3 → 5.10.1](https://github.com/PyCQA/isort/compare/5.9.3...5.10.1 )
- [github.com/PyCQA/flake8: 3.9.2 → 4.0.1](https://github.com/PyCQA/flake8/compare/3.9.2...4.0.1 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-03 10:42:50 -08:00
Glenn Jocher
968e30065a
Update greetings.yml ( #6165 )
2022-01-02 19:47:03 -08:00
Glenn Jocher
ec4b6dd2a3
Update export format docstrings ( #6151 )
...
* Update export documentation
* Cleanup
* Update export.py
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update README.md
* Update README.md
* Update README.md
* Update train.py
* Update train.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-01-02 16:09:45 -08:00
bilzard
e1dc894364
Enable AdamW optimizer ( #6152 )
2022-01-02 13:10:19 -08:00
Jiacong Fang
d95978a562
Add EdgeTPU support ( #3630 )
...
* Add models/tf.py for TensorFlow and TFLite export
* Set auto=False for int8 calibration
* Update requirements.txt for TensorFlow and TFLite export
* Read anchors directly from PyTorch weights
* Add --tf-nms to append NMS in TensorFlow SavedModel and GraphDef export
* Remove check_anchor_order, check_file, set_logging from import
* Reformat code and optimize imports
* Autodownload model and check cfg
* update --source path, img-size to 320, single output
* Adjust representative_dataset
* Put representative dataset in tfl_int8 block
* detect.py TF inference
* weights to string
* weights to string
* cleanup tf.py
* Add --dynamic-batch-size
* Add xywh normalization to reduce calibration error
* Update requirements.txt
TensorFlow 2.3.1 -> 2.4.0 to avoid int8 quantization error
* Fix imports
Move C3 from models.experimental to models.common
* Add models/tf.py for TensorFlow and TFLite export
* Set auto=False for int8 calibration
* Update requirements.txt for TensorFlow and TFLite export
* Read anchors directly from PyTorch weights
* Add --tf-nms to append NMS in TensorFlow SavedModel and GraphDef export
* Remove check_anchor_order, check_file, set_logging from import
* Reformat code and optimize imports
* Autodownload model and check cfg
* update --source path, img-size to 320, single output
* Adjust representative_dataset
* detect.py TF inference
* Put representative dataset in tfl_int8 block
* weights to string
* weights to string
* cleanup tf.py
* Add --dynamic-batch-size
* Add xywh normalization to reduce calibration error
* Update requirements.txt
TensorFlow 2.3.1 -> 2.4.0 to avoid int8 quantization error
* Fix imports
Move C3 from models.experimental to models.common
* implement C3() and SiLU()
* Add TensorFlow and TFLite Detection
* Add --tfl-detect for TFLite Detection
* Add int8 quantized TFLite inference in detect.py
* Add --edgetpu for Edge TPU detection
* Fix --img-size to add rectangle TensorFlow and TFLite input
* Add --no-tf-nms to detect objects using models combined with TensorFlow NMS
* Fix --img-size list type input
* Update README.md
* Add Android project for TFLite inference
* Upgrade TensorFlow v2.3.1 -> v2.4.0
* Disable normalization of xywh
* Rewrite names init in detect.py
* Change input resolution 640 -> 320 on Android
* Disable NNAPI
* Update README.me --img 640 -> 320
* Update README.me for Edge TPU
* Update README.md
* Fix reshape dim to support dynamic batching
* Fix reshape dim to support dynamic batching
* Add epsilon argument in tf_BN, which is different between TF and PT
* Set stride to None if not using PyTorch, and do not warmup without PyTorch
* Add list support in check_img_size()
* Add list input support in detect.py
* sys.path.append('./') to run from yolov5/
* Add int8 quantization support for TensorFlow 2.5
* Add get_coco128.sh
* Remove --no-tfl-detect in models/tf.py (Use tf-android-tfl-detect branch for EdgeTPU)
* Update requirements.txt
* Replace torch.load() with attempt_load()
* Update requirements.txt
* Add --tf-raw-resize to set half_pixel_centers=False
* Remove android directory
* Update README.md
* Update README.md
* Add multiple OS support for EdgeTPU detection
* Fix export and detect
* Export 3 YOLO heads with Edge TPU models
* Remove xywh denormalization with Edge TPU models in detect.py
* Fix saved_model and pb detect error
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix pre-commit.ci failure
* Add edgetpu in export.py docstring
* Fix Edge TPU model detection exported by TF 2.7
* Add class names for TF/TFLite in DetectMultibackend
* Fix assignment with nl in TFLite Detection
* Add check when getting Edge TPU compiler version
* Add UTF-8 encoding in opening --data file for Windows
* Remove redundant TensorFlow import
* Add Edge TPU in export.py's docstring
* Add the detect layer in Edge TPU model conversion
* Default `dnn=False`
* Cleanup data.yaml loading
* Update detect.py
* Update val.py
* Comments and generalize data.yaml names
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: unknown <fangjiacong@ut.cn>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-31 09:47:52 -08:00
Chen Gen
affa284352
Refactor/reduce G/C/D/IoU `if: else` statements ( #6087 )
...
* Refactor the code to reduece else
* Update metrics.py
* Cleanup
Co-authored-by: Cmos <gen.chen@ubisoft.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-30 13:59:29 -08:00
Awsaf
7b6938d5b5
Log best results ( #6085 )
...
* log best result in summary
* comment added
* add space for `flake8`
* log `best/epoch`
* fix `dimension` for epoch
ValueError: all the input arrays must have same number of dimensions
* log `best/` in `utils.logger.__init__`
* fix pre-commit
1. missing whitespace around operator
2. over-indented
2021-12-30 13:47:53 -08:00
Ayush Chaurasia
9155eb8641
W&B: Log best results after training ends ( #6120 )
...
* log best.pt metrics at train end
* update
* Update __init__.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-30 11:43:19 -08:00
Ayush Chaurasia
db6ec66a60
W&B: track batch size after autobatch ( #6039 )
...
* track batch size after autobatch
* remove redundant import
* Update __init__.py
* Update __init__.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-23 14:23:50 +01:00
Deep Patel
c72270c076
Init tensor directly on device ( #6068 )
...
Slightly more efficient than .to(device)
2021-12-23 13:49:00 +01:00
JieLi
afa5cfb0f8
Reduce G/D/CIoU logic operations ( #6074 )
...
Consider that the default value is CIOU,adjust the order of judgment could reduce the number of judgments.
And “elif CIoU:” didn't need 'if'.
Co-authored-by: 李杰 <360751194@qq.comqq.com>
2021-12-23 11:53:00 +01:00
Glenn Jocher
95c7bc25d3
OpenVINO Export ( #6057 )
...
* OpenVINO export
* Remove timeout
* Add 3 files
* str
* Constrain opset to 12
* Default ONNX opset to 12
* Make dir
* Make dir
* Cleanup
* Cleanup
* check_requirements(('openvino-dev',))
2021-12-22 20:29:48 +01:00
Glenn Jocher
dc54ed5763
`--freeze` fix ( #6044 )
...
Fix for https://github.com/ultralytics/yolov5/issues/6038
2021-12-20 18:24:07 +01:00
Glenn Jocher
b8a4babd60
Simplify `set_logging()` indexing ( #6042 )
2021-12-20 17:42:52 +01:00
Glenn Jocher
0db9d5b6a2
Kaggle `LOGGER` fix ( #6041 )
2021-12-20 17:30:46 +01:00
Glenn Jocher
26f0415287
Add dataset source citations ( #6032 )
2021-12-19 15:19:04 +01:00
Glenn Jocher
abbdd4802e
train -> val comment fix ( #6024 )
2021-12-17 16:43:00 +01:00
Felix You
361705d9be
Multi-layer capable `--freeze` argument ( #6019 )
...
* support specfiy multiple frozen layers
* fix bug
* Cleanup Freeze section
* Cleanup argument
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-17 15:42:26 +01:00
Glenn Jocher
407a905747
Check TensorRT>=8.0.0 version ( #6021 )
...
* Check TensorRT>=8.0.0 version
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-17 14:59:46 +01:00
Glenn Jocher
c1249a47c7
*.torchscript inference `self.jit` fix ( #6007 )
2021-12-16 14:10:54 +01:00
Glenn Jocher
628817dfae
Recommend `jar xf file.zip` for zips ( #5993 )
2021-12-15 17:19:19 +01:00
Glenn Jocher
da9a1b719b
Allow `--weights URL` ( #5991 )
2021-12-15 15:27:08 +01:00
Mrinal Jain
b7d18f3636
Increase `ar_thr` from 20 to 100 for better detection on slender (high aspect ratio) objects ( #5556 )
...
* Making `ar_thr` available as a hyperparameter
* Disabling ar_thr as hyperparameter and computing from the dataset instead
* Fixing bug in ar_thr computation
* Fix `ar_thr` to 100
2021-12-15 14:42:23 +01:00
Glenn Jocher
c9a46a60e0
Update callbacks.py with `__init__()` ( #5979 )
...
Add __init__() function.
2021-12-14 15:47:49 +01:00
Glenn Jocher
d699c21c75
YOLOv5s6 params and FLOPs fix ( #5977 )
2021-12-14 11:24:39 +01:00
jinmc
2d0c6afbfe
make parameter ignore epochs ( #5972 )
...
* make parameter ignore epochs
ignore epochs functionality add to prevent spikes at the beginning when fitness spikes and decreases after.
Discussed at https://github.com/ultralytics/yolov5/issues/5971
* Update train.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-14 11:18:34 +01:00
Glenn Jocher
e8ef8fb1ca
`pretrained=False` fix ( #5966 )
...
* `pretriained=False` fix
Fix for https://github.com/ultralytics/yolov5/issues/5964
* CI speed improvement
2021-12-13 13:32:27 +01:00
Diego Montes
19c56e60b1
Fix `imgsz` bug ( #5948 )
...
* fix imgsz bug
* Update detect.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-12 23:39:14 +01:00
Yono Mittlefehldt
8f354362cd
Fix Detections class `tolist()` method ( #5945 )
...
* Fix tolist() to add the file for each Detection
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix PEP8 requirement for 2 spaces before an inline comment
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-11 18:40:37 +01:00
Glenn Jocher
8f875d93a2
Refactor NUM_THREADS ( #5954 )
2021-12-11 14:32:18 +01:00
Diego Montes
2c6317547a
Add nms and agnostic nms to export.py ( #5938 )
...
* add nms and agnostic nms to export.py
* fix agnostic implies nms
* reorder args to group TF args
* PEP8 120 char
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-10 18:24:32 +01:00
iumyx2612
a42af30d8a
Update `strip_optimizer()` ( #5949 )
...
Replace 'training_result' with 'best_fitness' in strip_optimizer() to match key with ckpt from train.py
2021-12-10 18:06:27 +01:00
Pascal Maillard
922fbd8209
fix .gitignore not tracking existing folders ( #5946 )
...
* fix .gitignore not tracking existing folders
fix .gitignore so that the files that are in the repository are actually being tracked.
Everything in the data/ folder is ignored, which also means the subdirectories are ignored. Fix so that the subdirectories and their contents are still tracked.
* Remove data/trainings
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-10 17:32:09 +01:00
Felix You
c45f9f678d
Make `select_device()` robust to `batch_size=-1` ( #5940 )
...
* Find out a bug. When set batch_size = -1 to use the autobatch.
reproduce:
* Fix type conflict
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-10 15:27:20 +01:00
Diego Montes
4fb6dd4b26
Fix ONNX opset inconsistency with parseargs and run args ( #5937 )
2021-12-09 23:10:16 +01:00
Glenn Jocher
5bdb28ed10
Default PyTorch Hub to `autocast(False)` ( #5926 )
2021-12-08 23:15:14 +01:00
Glenn Jocher
c77a5a84e3
Absolute '/content/sample_data' ( #5922 )
2021-12-08 17:31:31 +01:00
Glenn Jocher
a3d5f1d3e3
Revert "Update `plot_lr_scheduler()` ( #5864 )" ( #5920 )
...
This reverts commit 360eec6910 .
2021-12-08 16:46:24 +01:00
Glenn Jocher
7d56d45124
Add hardware checks to `notebook_init()` ( #5919 )
...
* Update notebook
* Update notebook
* update string
* update string
* Updates
* Updates
* Updates
* check both ipython and psutil
* remove sample_data if is_colab
* cleanup
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-12-08 14:57:03 +01:00
Glenn Jocher
581dc301a7
Add ONNX inference providers ( #5918 )
...
* Add ONNX inference providers
Fix for https://github.com/ultralytics/yolov5/issues/5916
* Update common.py
2021-12-08 13:37:33 +01:00
greg2451
554f782537
Add *.engine (TensorRT extensions) to .gitignore ( #5911 )
...
* Add *.engine (TensorRT extensions) to .gitignore
* Update .dockerignore
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-07 18:20:16 +01:00
Ayush Chaurasia
3f152e5807
Update wandb_utils.py ( #5908 )
2021-12-07 16:09:11 +01:00
Li Zeng
fa05f8c977
`Detections().tolist()` explicit argument fix ( #5907 )
...
debugged for missigned Detections attributes
2021-12-07 16:01:41 +01:00
Glenn Jocher
1075488d89
Single-command multiple-model export ( #5882 )
...
* Export multiple models in series
Export multiple models in series by adding additional `*.pt` files to the `--weights` argument, i.e.:
```bash
python export.py --include tflite --weights yolov5n.pt # export 1 model
python export.py --include tflite --weights yolov5n.pt yolov5s.pt yolov5m.pt yolov5l.pt yolov5x.pt # export 5 models
```
* Update export.py
* Update README.md
2021-12-04 16:28:40 +01:00
Glenn Jocher
7bf04d9bbf
`AutoShape()` models as `DetectMultiBackend()` instances ( #5845 )
...
* Update AutoShape()
* autodownload ONNX
* Cleanup
* Finish updates
* Add Usage
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* fix device
* Update hubconf.py
* Update common.py
* smart param selection
* autodownload all formats
* autopad only pytorch models
* new_shape edits
* stride tensor fix
* Cleanup
2021-12-04 15:00:07 +01:00
Glenn Jocher
d885799c71
Update `nl` after `cutout()` ( #5873 )
2021-12-03 15:28:14 +01:00
Can
360eec6910
Update `plot_lr_scheduler()` ( #5864 )
...
shallow copy modify originals
2021-12-03 13:37:45 +01:00
iumyx2612
92a7391039
Add `--workers 8` argument to val.py ( #5857 )
...
* Update val.py
Add an option to choose number of workers if not called by train.py
* Update comment
* 120 char line width
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-02 16:49:50 +01:00
Glenn Jocher
00e308f7be
Update TorchScript suffix to `*.torchscript` ( #5856 )
2021-12-02 16:06:45 +01:00
Vishnu Pradeep
30db14fea8
Update val.py ( #5838 )
...
* Update val.py
Solving Non-ASCII character '\xf0' error during runtime
* Update val.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-12-02 13:20:58 +01:00
gggmt
1679aacdc7
Update `LoadImages` `ret_val=False` handling ( #5852 )
...
Video errors may occur.
2021-12-02 10:57:39 +01:00
Yu Zhang
e8f8f2b903
Avoid inplace modifying`imgs` in `LoadStreams` ( #5850 )
...
When OpenCV retrieving image fail, original code would modify source images **inplace**, which may result in plotting bounding boxes on a black image. That is, before inference, source image `im0s[i]` is OK, but after inference before `Process predictions`, `im0s[i]` may have been changed.
2021-12-02 10:51:19 +01:00
Glenn Jocher
bc484579d7
Handle non-TTY `wandb.errors.UsageError` ( #5839 )
...
* `try: except (..., wandb.errors.UsageError)`
* bug fix
2021-12-01 15:38:02 +01:00
imyhxy
a4207a202d
Fix TensorRT potential unordered binding addresses ( #5826 )
...
* feat: change file suffix in pythonic way
* fix: enforce binding addresses order
* fix: enforce binding addresses order
2021-11-30 13:52:22 +01:00
Glenn Jocher
5ca5dd4c87
Update `dataset_stats()` to `cv2.INTER_AREA` ( #5821 )
2021-11-29 13:15:36 +01:00
dependabot[bot]
8277033b65
Bump actions/cache from 2.1.6 to 2.1.7 ( #5816 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-29 12:04:36 +01:00
Glenn Jocher
94d8fec6d8
GCP VM from Image example ( #5814 )
2021-11-28 18:12:46 +01:00
Glenn Jocher
fcd180d336
Refactor new `model.warmup()` method ( #5810 )
...
* Refactor new `model.warmup()` method
* Add half
2021-11-27 12:29:45 +01:00
Glenn Jocher
7c6bae0ae6
Remove NCOLS from tqdm ( #5804 )
...
* Remove NCOLS from tqdm
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-26 13:37:28 +01:00
Phil2020
53349dac8e
Scope TF imports in `DetectMultiBackend()` ( #5792 )
...
* tensorflow or tflite exclusively as interpreter
As per bug report https://github.com/ultralytics/yolov5/issues/5709 I think there should be only one attempt to assign interpreter, and it appears tflite is only ever needed for the case of edgetpu model.
* Scope imports
* Nested definition line fix
* Update common.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-25 17:54:00 +01:00
Ayush Chaurasia
f2ca30a407
W&B: refactor W&B tables ( #5737 )
...
* update
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* reformat
* Single-line argparser argument
* Update README.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update README.md
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-25 17:19:21 +01:00
rockstarr
4c7b2bdc30
TorchScript `torch==1.7.0` Path support ( #5781 )
...
* fix path error in export.py
* Update export.py
updated!
* Update export.py
oops forget something
2021-11-25 11:18:30 +01:00
rockstarr
c55e674ac3
fix the path error in export.py ( #5778 )
...
* fix the path error in export.py
* Update export.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-25 08:42:15 +01:00
Glenn Jocher
4ca4aec46f
Do not save hyp.yaml and opt.yaml on evolve ( #5775 )
...
* Do not save hyp.yaml and opt.yaml on evolve
* Update general.py
2021-11-24 23:25:51 +01:00
imyhxy
7a39803476
Export, detect and validation with TensorRT engine file ( #5699 )
...
* Export and detect with TensorRT engine file
* Resolve `isort`
* Make validation works with TensorRT engine
* feat: update export docstring
* feat: change suffix from *.trt to *.engine
* feat: get rid of pycuda
* feat: make compatiable with val.py
* feat: support detect with fp16 engine
* Add Lite to Edge TPU string
* Remove *.trt comment
* Revert to standard success logger.info string
* Fix Deprecation Warning
```
export.py:310: DeprecationWarning: Use build_serialized_network instead.
with builder.build_engine(network, config) as engine, open(f, 'wb') as t:
```
* Revert deprecation warning fix
@imyhxy it seems we can't apply the deprecation warning fix because then export fails, so I'm reverting my previous change here.
* Update export.py
* Update export.py
* Update common.py
* export onnx to file before building TensorRT engine file
* feat: triger ONNX export failed early
* feat: load ONNX model from file
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-22 14:58:07 +01:00
Zengyf-CVer
f17c86b7f0
Save *.npy features on detect.py `--visualize` ( #5701 )
...
* Add feature map to save npy files
Add feature map to save npy files,export npy files with 32 feature maps per layer.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update plots.py
* Update plots.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update plots.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-21 20:21:44 +01:00
Glenn Jocher
d6ae1c835a
Created using Colaboratory
2021-11-21 19:26:07 +01:00
IL2006
5185981993
SECURITY.md ( #5695 )
...
* SECURITY_1.md
* Delete SECURITY.md
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-20 01:26:48 +01:00
Glenn Jocher
46daa7b78d
Remove `.autoshape()` method ( #5694 )
2021-11-20 01:11:36 +01:00
Glenn Jocher
36d12a500e
Explicitly compute TP, FP in val.py ( #5727 )
2021-11-20 01:04:56 +01:00
Jirka Borovec
eb51ffdcac
Prune unused imports ( #5711 )
...
* prune unused imports
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-19 13:32:53 +01:00
Glenn Jocher
8df64a9122
`NUM_THREADS` leave at least 1 CPU free ( #5706 )
...
Updated strategy leaves at least 1 cpu free to avoid system overloads. Partially addresses https://github.com/ultralytics/yolov5/issues/5685
2021-11-18 14:53:42 +01:00
Glenn Jocher
562191f575
Update export.py docstring ( #5689 )
2021-11-17 15:18:50 +01:00
Glenn Jocher
47fac9ff73
Update train.py comment to 'Model attributes' ( #5670 )
2021-11-16 13:58:15 +01:00
Nrupatunga
0453b758e7
TFDetect dynamic anchor count assignment fix ( #5668 )
...
* fix tf.py when anchors not equal to 3
* revert the isort fix
* update the fix to use anchor attribute available already
2021-11-16 12:36:00 +01:00
Glenn Jocher
e80a09bbfa
Update ci-testing.yml to Python 3.9 ( #5660 )
2021-11-15 20:15:50 +01:00
dependabot[bot]
fb19561f98
Bump pip from 19.2 to 21.1 in /utils/google_app_engine ( #5661 )
...
Bumps [pip](https://github.com/pypa/pip ) from 19.2 to 21.1.
- [Release notes](https://github.com/pypa/pip/releases )
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst )
- [Commits](https://github.com/pypa/pip/compare/19.2...21.1 )
---
updated-dependencies:
- dependency-name: pip
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-15 20:10:29 +01:00
Ding Yiwei
c2523be634
Replace 2 `transpose()` with 1 `permute` in TransformerBlock()` ( #5645 )
2021-11-15 10:06:18 +01:00
Ayush Chaurasia
540ef0dd30
W&B refactor, handle exceptions, CI example ( #5618 )
...
* handle exceptions| attempt CI
* update
* Pre-commit manual run
* yaml one-liner
* Update ci-testing.yml
* Comment W&B CI
Leave as example for future separate CI
* Update ci-testing.yml
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-14 13:26:53 +01:00
Glenn Jocher
80cfaf40ef
AutoAnchor and AutoBatch `LOGGER` ( #5635 )
...
* AutoBatch, AutoAnchor `LOGGER`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update autoanchor.py
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-13 15:40:18 +01:00
Werner Duvaud
09d170381c
Default DataLoader `shuffle=True` for training ( #5623 )
...
* Fix shuffle DataLoader argument
* Add shuffle argument
* Disable shuffle when rect
* Cleanup, add rect warning
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup2
* Cleanup3
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-13 13:07:32 +01:00
Glenn Jocher
7473f0f95d
DDP `WORLD_SIZE`-safe dataloader workers ( #5631 )
...
* WORLD_SIZE-safe workers
* Update with DDP comment
2021-11-12 14:48:55 +01:00
Glenn Jocher
d5b21b1ecb
HUB dataset previews to JPEG ( #5627 )
...
@kalenmike per our convo yesterday.
2021-11-12 12:05:25 +01:00
Glenn Jocher
def7a0fd19
Improve plots.py robustness ( #5616 )
...
* Improve plots.py robustness
Addresses issues #5374 , #5395 , #5611
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-11 12:56:38 +01:00
Glenn Jocher
69032519bc
`np.unique()` sort fix for segments ( #5609 )
...
* `np.unique()` sort fix for segments
* Update datasets.py
2021-11-11 00:15:17 +01:00
Glenn Jocher
30bc089cbb
Update val.py `speed` and `study` tasks ( #5608 )
...
Accepts all arguments now by default resolving https://github.com/ultralytics/yolov5/issues/5600
2021-11-10 16:48:38 +01:00
Glenn Jocher
61c50199a2
Update train, val `tqdm` to fixed width ( #5367 )
...
* Update tqdm for fixed width
* Update val.py
* Update val.py
* Try ncols= in train.py
* NCOLS
* NCOLS
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* bar_format
* position 0 leave true
* exp0
* auto
* auto
* Cleanup
* Cleanup
* Cleanup
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-10 15:47:38 +01:00
Ayman Saleh
27bf4282d3
Fix `check_requirements()` resource warning allocation open file ( #5602 )
...
* Fix to resource warning allocation; utilize file.open within a context manager
* rename fh to f
in keeping with naming convention
Co-authored-by: Ayman Saleh <aymansaleh@Aymans-MacBook-Pro-2.local>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-10 12:51:30 +01:00
Glenn Jocher
7ebb5e5da6
Add `notebook_init()` to utils/__init__.py ( #5488 )
...
* Update __init__.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* notebook_init
* notebook_init
* notebook_init
* notebook_init
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* notebook_init
* Created using Colaboratory
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-09 23:03:19 +01:00
Glenn Jocher
7207fe95e5
FROM nvcr.io/nvidia/pytorch:21.10-py3 ( #5592 )
2021-11-09 17:55:57 +01:00
Glenn Jocher
3883261143
New `DetectMultiBackend()` class ( #5549 )
...
* New `DetectMultiBackend()` class
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* pb to pt fix
* Cleanup
* explicit apply_classifier path
* Cleanup2
* Cleanup3
* Cleanup4
* Cleanup5
* Cleanup6
* val.py MultiBackend inference
* warmup fix
* to device fix
* pt fix
* device fix
* Val cleanup
* COCO128 URL to assets
* half fix
* detect fix
* detect fix 2
* remove half from DetectMultiBackend
* training half handling
* training half handling 2
* training half handling 3
* Cleanup
* Fix CI error
* Add torchscript _extra_files
* Add TorchScript
* Add CoreML
* CoreML cleanup
* New `DetectMultiBackend()` class
* pb to pt fix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
* explicit apply_classifier path
* Cleanup2
* Cleanup3
* Cleanup4
* Cleanup5
* Cleanup6
* val.py MultiBackend inference
* warmup fix
* to device fix
* pt fix
* device fix
* Val cleanup
* COCO128 URL to assets
* half fix
* detect fix
* detect fix 2
* remove half from DetectMultiBackend
* training half handling
* training half handling 2
* training half handling 3
* Cleanup
* Fix CI error
* Add torchscript _extra_files
* Add TorchScript
* Add CoreML
* CoreML cleanup
* revert default to pt
* Add Usage examples
* Cleanup val
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-09 16:45:02 +01:00
Glenn Jocher
79bca2bf64
`LOGGER` consolidation ( #5569 )
...
* Logger consolidation
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-08 16:32:15 +01:00
Glenn Jocher
0de4a9c35d
Add `--conf-thres` >> 0.001 warning ( #5567 )
...
Partially addresses invalid mAPs at higher confidence threshold issue https://github.com/ultralytics/yolov5/issues/1466 .
2021-11-08 16:04:31 +01:00
Glenn Jocher
b8f979bafa
Inside Ultralytics video https://youtu.be/Zgi9g1ksQHc ( #5546 )
...
* Update detect.py Usage examples
* Inside Ultralytics at https://youtu.be/Zgi9g1ksQHc
2021-11-06 20:34:54 +01:00
Glenn Jocher
3f64ad1760
Fix `save_one_box()` ( #5545 )
...
* Fix `save_one_box()`
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-06 19:28:03 +01:00
Glenn Jocher
60c8a4f696
Fix for *.yaml emojis on load ( #5543 )
...
Fix for Colab hub error:
```python
import yaml
with open('yolov5s.yaml', errors='ignore') as f:
d = yaml.safe_load(f) # model dict
print(d)
---------------------------------------------------------------------------
ReaderError Traceback (most recent call last)
<ipython-input-8-1150b5143073> in <module>()
2
3 with open('yolov5s.yaml', errors='ignore') as f:
----> 4 d = yaml.safe_load(f) # model dict
5
6 print(d)
6 frames
/usr/local/lib/python3.7/dist-packages/yaml/reader.py in check_printable(self, data)
142 position = self.index+(len(self.buffer)-self.pointer)+match.start()
143 raise ReaderError(self.name, position, ord(character),
--> 144 'unicode', "special characters are not allowed")
145
146 def update(self, length):
ReaderError: unacceptable character #x1f680: special characters are not allowed
in "yolov5s.yaml", position 9
```
2021-11-06 16:03:14 +01:00
Glenn Jocher
e189fa15ea
`intersect_dicts()` in hubconf.py fix ( #5542 )
2021-11-06 15:41:17 +01:00
Glenn Jocher
fa2344cdd8
Update `models/hub/*.yaml` files for v6.0n release ( #5540 )
...
* Update model yamls for v6.0
* Add python models/yolo.py --test
* Ghost fix
2021-11-06 15:07:45 +01:00
Glenn Jocher
76d90d899a
Update Issue Templates with 💡 ProTip! ( #5539 )
...
* Update bug-report.yml
* Update question.yml
* Update bug-report.yml
2021-11-06 13:58:12 +01:00
Glenn Jocher
cb18cac33d
Update autobatch.py ( #5538 )
...
* Update autobatch.py
* Update autobatch.py
* Update autobatch.py
2021-11-06 13:49:00 +01:00
Glenn Jocher
60e42e16c2
Update autobatch.py ( #5536 )
2021-11-06 12:21:17 +01:00
Deep Patel
336437998f
Suppress ONNX export trace warning ( #5437 )
...
Checking for `onnx_dynamic` first should suppress the warning:
```log
TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
if self.grid[i].shape[2:4] != x[i].shape[2:4] or self.onnx_dynamic
```
2021-11-05 19:31:53 +01:00
Wonbeom Jang
d895a7f70d
Update train.py ( #5451 )
...
* correct --resume True error
* delete temp file
* Update train.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-05 19:28:53 +01:00
nanmi
98a3fd7e8f
Update export.py ( #5471 )
...
* fix export onnx bug
* Update export.py
* Update export.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update yolo.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-05 19:26:45 +01:00
Glenn Jocher
32b8738735
Update `check_file()` avoid repeat URL downloads ( #5526 )
2021-11-05 19:22:47 +01:00
Glenn Jocher
5f603a9dba
Fix detect.py URL inference ( #5525 )
...
* Fix detect.py URL inference
Allows detect.py to run inference on remote URL sources, i.e.:
```python
!python detect.py --weights yolov5s.pt --source https://ultralytics.com/assets/zidane.jpg # image URL
!python detect.py --weights yolov5s.pt --source https://ultralytics.com/assets/decelera_landscape.mov # video URL
```
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2021-11-05 18:43:03 +01:00
Glenn Jocher
853505339a
Fix `increment_path()` explicit file vs dir handling ( #5523 )
...
Resolves https://github.com/ultralytics/yolov5/pull/5341#issuecomment-961774729
Tests:
```python
import glob
import re
from pathlib import Path
def increment_path(path, exist_ok=False, sep='', mkdir=False):
# Increment file or directory path, i.e. runs/exp --> runs/exp{sep}2, runs/exp{sep}3, ... etc.
path = Path(path) # os-agnostic
if path.exists() and not exist_ok:
path, suffix = (path.with_suffix(''), path.suffix) if path.is_file() else (path, '')
dirs = glob.glob(f"{path}{sep}*") # similar paths
matches = [re.search(rf"%s{sep}(\d+)" % path.stem, d) for d in dirs]
i = [int(m.groups()[0]) for m in matches if m] # indices
n = max(i) + 1 if i else 2 # increment number
path = Path(f"{path}{sep}{n}{suffix}") # increment path
if mkdir:
path.mkdir(parents=True, exist_ok=True) # make directory
return path
print(increment_path('runs'))
print(increment_path('export.py'))
print(increment_path('abc.def.dir'))
print(increment_path('abc.def.file'))
```
2021-11-05 15:46:20 +01:00
Glenn Jocher
bcc085d83f
Common `is_coco` logic betwen train.py and val.py ( #5521 )
2021-11-05 13:32:46 +01:00
Glenn Jocher
bfacfc6b4a
Update cls bias init ( #5520 )
...
* Update cls bias init
Increased numerical precision. Returns 1.0 probability for single-class datasets now. Addresses https://github.com/ultralytics/yolov5/issues/5357
```python
torch.sigmoid(torch.tensor([math.log(0.6 / (1 - 0.99999))]))
Out[19]: tensor([1.0000])
```
* Update yolo.py
2021-11-05 13:18:46 +01:00
ys31jp
36a4de184f
Update plots.py feature_visualization path issues ( #5519 )
...
* Update plots.py
Error running python detect.py --visualize
#5503
* Update plots.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-05 13:08:07 +01:00
Yonghye Kwon
99a45bad81
Write date in checkpoint file ( #5514 )
...
* write date in checkpoint file
write date in checkpoint file
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* isoformat
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-05 11:48:10 +01:00
Glenn Jocher
17b5f5b974
Fix `increment_path()` with periods ( #5518 )
...
Fix for https://github.com/ultralytics/yolov5/issues/5503
```
python detect.py --visualize --source path/to/file.suffix1.jpg
```
2021-11-05 11:16:19 +01:00
Jirka Borovec
0155548384
precommit: isort ( #5493 )
...
* precommit: isort
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update isort config
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Update name
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-04 17:24:25 +01:00
Nam Vu
ac2c49a2bb
Handle edgetpu model inference ( #5372 )
...
* Handle edgetpu model inference
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Cleanup
Rename `tflite_runtime.interpreter as tflite` to `tflite_runtime.interpreter as tflri` to avoid conflict with existing `tflite` boolean
Co-authored-by: Nam Vu <nam@glodonusa.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-04 11:33:25 +01:00
Glenn Jocher
5866646cc8
Fix float zeros format ( #5491 )
...
* Fix float zeros format
* 255 to integer
2021-11-03 23:36:53 +01:00
Glenn Jocher
8a803f36d3
Delete code-format.yml ( #5487 )
2021-11-03 21:06:32 +01:00
Glenn Jocher
34b859a41e
Keras CI fix ( #5486 )
...
* Keras CI fix
* pre-commit fixes
* Update ci-testing.yml
Co-authored-by: pre-commit <pre-commit@example.com>
2021-11-03 19:25:44 +01:00
Glenn Jocher
06bf8ef7e5
Add tf.py verification printout ( #5484 )
...
* Update tf.py with verified confirmation
* Update ci-testing.yml
* Update ci-testing.yml
2021-11-03 19:04:51 +01:00
Glenn Jocher
62d77a1027
Created using Colaboratory
2021-11-03 18:55:25 +01:00
Glenn Jocher
84a8099b75
Update torch_utils.py import `LOGGER` ( #5483 )
2021-11-03 17:17:38 +01:00
Glenn Jocher
df30426c03
Improve GPU name ( #5478 )
...
* Improve GPU name
* Update torch_utils.py
* Update torch_utils.py
* Update torch_utils.py
* Update torch_utils.py
2021-11-03 16:59:53 +01:00
Glenn Jocher
0eb37ad8af
Remove `check_requirements(('tensorflow>=2.4.1',))` ( #5476 )
...
`check_requirements()` is unreliable for large packages like torch and tensorflow that may have multiple installation routes (i.e. conda, pip, tensorflow-cpu, etc.)
2021-11-03 14:51:37 +01:00
Glenn Jocher
042f02ff9b
Fix tf.py `LoadImages()` dataloader return values ( #5455 )
2021-11-02 23:04:15 +01:00
Mrinal Jain
7476012a4d
Update `check_git_status()` to run under `ROOT` working directory ( #5441 )
...
* Updating check_git_status() to switch to the repository root before performing git ops
* More pythonic
* Linting
* Remove redundant Path() call
* Generalizing the context manager
* Fixing error in context manager
* Cleanup
* Change to decorator
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-11-02 22:16:01 +01:00
Pranath
19c8760caa
Fixed a small typo in CONTRIBUTING.md ( #5445 )
...
possibel -> possible
2021-11-02 12:05:31 +01:00
Glenn Jocher
4c0982a243
Update README.md ( #5438 )
...
2-line update
2021-11-01 18:28:14 +01:00
Glenn Jocher
7b1f7aec46
Update `get_loggers()` ( #4854 )
...
* Update `set_logging()`
* Update export.py
* pre-commit fixes
* Update LoadImages
* Update LoadStreams
* Update print_args
* Single LOGGER definition
* yolo.py fix
Co-authored-by: pre-commit <pre-commit@example.com>
2021-11-01 18:22:13 +01:00
Glenn Jocher
8c326a1edf
Meshgrid `indexing='ij'` for PyTorch 1.10 ( #5309 )
...
* Meshgrid `indexing='ij'` for PyTorch 1.10
Will not merge currently as breaks backwards compatibility.
* Meshgrid `indexing='ij'` for PyTorch 1.10
Will not merge currently as breaks backwards compatibility.
* Add check_version hard argument
* Update comment
2021-11-01 14:33:08 +01:00
Glenn Jocher
5d4258fac5
Fix MixConv2d() remove shortcut + apply depthwise ( #5410 )
2021-10-30 13:38:51 +02:00
Glenn Jocher
7f9bbf0268
Update GitHub issues templates ( #5404 )
...
* Update GitHub issues templates
* pre-commit fixes
Co-authored-by: pre-commit <pre-commit@example.com>
2021-10-29 23:16:04 +02:00
Ayush Chaurasia
620b535f85
Update sweep.py ( #5402 )
2021-10-29 19:21:59 +02:00
Jirka Borovec
ed887b5976
Add pre-commit CI actions ( #4982 )
...
* define pre-commit
* add CI code
* configure
* apply pre-commit
* fstring
* apply MD
* pre-commit
* Update torch_utils.py
* Update print strings
* notes
* Cleanup code-format.yml
* Update setup.cfg
* Update .pre-commit-config.yaml
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-28 18:35:01 +02:00
Glenn Jocher
a4fece8c14
DDP `nl` fix ( #5332 )
2021-10-25 16:03:39 +02:00
Glenn Jocher
9c31a66f5d
Update `AutoShape.forward()` model.classes example ( #5324 )
2021-10-25 14:03:25 +02:00
Glenn Jocher
ca19df5f7f
Add `autobatch` feature for best `batch-size` estimation ( #5092 )
...
* Autobatch
* fix mem
* fix mem2
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Update train.py
* print result
* Cleanup print result
* swap fix in call
* to 64
* use total
* fix
* fix
* fix
* fix
* fix
* Update
* Update
* Update
* Update
* Update
* Update
* Update
* Cleanup printing
* Update final printout
* Update autobatch.py
* Update autobatch.py
* Update autobatch.py
2021-10-25 13:56:13 +02:00
Ayush Chaurasia
692be757b6
W&B: Media panel fix ( #5317 )
2021-10-25 12:06:12 +02:00
Zhiqiang Wang
3d897986c7
Small fixes to docstrings ( #5313 )
...
* Minor fixes of the git checkout new branch
* Use em dash to quote
* Revert the change of git checkout
* Maybe we should up-to-date with the upstream/master?
2021-10-24 22:05:34 +02:00
Cristi Fati
fee83c1634
Weights download script minor improvements ( #5213 )
...
* Add nano model to the download list
* Add possibility to also download the "*6" models
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-23 14:20:26 +02:00
Jebastin Nadar
e0c3f42de7
Uncomment OpenCV 4.5.4 requirement in detect.py ( #5305 )
2021-10-23 13:40:34 +02:00
Glenn Jocher
79d8f1f678
Created using Colaboratory
2021-10-22 21:19:23 +02:00
Glenn Jocher
b760acec11
Created using Colaboratory
2021-10-22 21:11:29 +02:00
Glenn Jocher
441b47c443
More informative `EarlyStopping()` message ( #5303 )
2021-10-22 20:02:19 +02:00
jdfr
15e8c4c15b
take EXIF orientation tags into account when fixing corrupt images ( #5270 )
...
* take EXIF orientation tags into account when fixing corrupt images
* fit 120 char
* sort imports
* Update local exif_transpose comment
We have a local inplace version that is faster than the official as the image is not copied. AutoShape() uses this for Hub models, but here it is not important as the datasets.py usage is infrequent (AutoShape() it is applied every image).
* Update datasets.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-20 21:35:47 +02:00
jdfr
db3bbdde0e
autosplit: take image files with uppercase extensions into account ( #5269 )
...
* take image files with uppercase extensions into account in autosplit
* case fix
* Refactor implementation
Removes additional variable (capital variable names are also only for global variables), and uses the same methodology as implemented earlier in datasets.py L409.
* Remove redundant rglob characters
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-20 19:25:33 +02:00
Glenn Jocher
a18b0c36cd
Update rebase.yml with workflows permissions ( #5255 )
...
Update token with workflows permissions
2021-10-19 12:02:15 +02:00
dependabot[bot]
fd3e2ad8ef
Bump actions/stale from 3 to 4 ( #5253 )
...
Bumps [actions/stale](https://github.com/actions/stale ) from 3 to 4.
- [Release notes](https://github.com/actions/stale/releases )
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/stale/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/stale
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-19 11:37:54 +02:00
dependabot[bot]
aa26504137
Bump actions/cache from 1 to 2.1.6 ( #5252 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from 1 to 2.1.6.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v1...v2.1.6 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-19 11:31:24 +02:00
dependabot[bot]
fb12faafa3
Bump cirrus-actions/rebase from 1.4 to 1.5 ( #5251 )
...
Bumps [cirrus-actions/rebase](https://github.com/cirrus-actions/rebase ) from 1.4 to 1.5.
- [Release notes](https://github.com/cirrus-actions/rebase/releases )
- [Commits](https://github.com/cirrus-actions/rebase/compare/1.4...1.5 )
---
updated-dependencies:
- dependency-name: cirrus-actions/rebase
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-19 11:28:52 +02:00
Zhiqiang Wang
8e87396705
Add dependabot for GH actions ( #5250 )
2021-10-19 11:23:30 +02:00
Glenn Jocher
4f5e274eee
Update rebase.yml ( #5245 )
2021-10-19 09:46:05 +02:00
Glenn Jocher
752d97df2c
Add `on_fit_epoch_end` callback ( #5232 )
...
* Add `on_fit_epoch_end` callback
* Add results to train
* Update __init__.py
2021-10-18 14:28:22 +02:00
Glenn Jocher
13f7275555
Update/inplace ops ( #5233 )
...
* Clip Objects365 autodownload labels (#5214 )
Fixes out of bounds labels that seem to affect ~10% of images in dataset.
* Inplace ops
2021-10-18 14:24:48 +02:00
Glenn Jocher
0000334a6f
Update Objects365.yaml val count ( #5212 )
2021-10-15 12:40:40 -07:00
Glenn Jocher
991c654e81
Autofix duplicate label handling ( #5210 )
...
* Autofix duplicate labels
PR changes duplicate label handling from report error and ignore image-label pair to report warning and autofix image-label pair.
This should fix this common issue for users and allow everyone to get started and get a model trained faster and easier than before.
* sign fix
* Cleanup
* Increment cache version
* all to any fix
2021-10-15 12:32:08 -07:00
Farley Lai
fc3606420d
Update Objects365.yaml to include the official validation set ( #5194 )
...
* Update Objects365.yaml
Download the official Objects365 validation set and convert the labels
* Enforce 4-space indent, reformat and cleanup
* shorten list comprehension
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-14 20:48:47 -07:00
Glenn Jocher
1c9f710b46
Add hyp.scratch-med.yaml ( #5196 )
...
* Add hyp.scratch-med.yaml
* Update hyp.scratch-med.yaml
2021-10-14 20:40:30 -07:00
Glenn Jocher
6b31cfd793
Highlight contributors in README ( #5173 )
...
* Highlight contributors in README
* Adjust Contact section
* Update README.md
2021-10-14 12:49:16 -07:00
Glenn Jocher
7ee5aed0b3
Improved check_suffix() robustness to `''` and `""` ( #5192 )
...
* Improved check_suffix() robustness to `''` and `""`
* Cleanup
2021-10-14 12:00:39 -07:00
NauchtanRobotics
0be58f16f0
Adjust legend labels for classes without instances ( #5174 )
...
* legend-labels Adjust legend labels for classes without instances.
* #5158 Re-indexed series names: only classes containing data.
* #5158 Re-indexed series names: only classes containing data.
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-14 11:57:00 -07:00
Ayush Chaurasia
1172ac15fb
W&B: DDP fix ( #5176 )
...
* fix dpp with wandb disabled
* PyCharm reformat
* Fix
* fix
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-13 20:11:04 -07:00
Glenn Jocher
e520e820f1
Update autodownload fallbacks to v6.0 assets ( #5177 )
2021-10-13 19:58:38 -07:00
Ayush Chaurasia
d0bfeb3980
W&B: fix DDP with wandb disabled ( #5163 )
...
* fix dpp with wandb disabled
* PyCharm reformat
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-13 16:17:15 -07:00
Glenn Jocher
a346926996
Add class filtering to `LoadImagesAndLabels()` dataloader ( #5172 )
...
* Add train class filter feature to datasets.py
Allows for training on a subset of total classes if `include_class` list is defined on datasets.py L448:
```python
include_class = [] # filter labels to include only these classes (optional)
```
* segments fix
2021-10-13 15:48:54 -07:00
Glenn Jocher
b754525e99
Check `'onnxruntime-gpu' if torch.has_cuda` ( #5087 )
...
* Check `'onnxruntime-gpu' if torch.has_cuda`
* fix indent
2021-10-12 22:25:38 -07:00
Glenn Jocher
20a809dee5
Update stale.yml ( #5156 )
2021-10-12 17:54:56 -07:00
Glenn Jocher
26784afd99
Use YOLOv5n for CI testing ( #5154 )
2021-10-12 08:42:26 -07:00
Yoni Chechik
34da872ab6
fix `tf` conversion in new v6 models ( #5153 )
...
* fix `tf` conversion in new v6 (#5147 )
* sort imports
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-12 08:38:54 -07:00
Glenn Jocher
956be8e642
YOLOv5 release v6.0 ( #5141 )
...
* Update P5 models
* Update P6 models
* Update with GFLOPs and Params
* Update with GFLOPs and Params
* Update README
* Update
* Update README
* Update
* Update
* Add times
* Update README
* Update results
* Update results
* Update results
* Update hyps
* Update plots
* Update plots
* Update README.md
* Add nano models to hubconf.py
2021-10-11 23:47:18 -07:00
Andrei Ionut Damian
938efe5dcf
update `detect.py` in order to support torch script ( #5109 )
...
* update detect.py in order to support torch script
This change assumes the torchscrip file was previously saved with `export.py`
* update `detect.py` for torchscript support
Simple update for torchscript support. Assumes the torchscript file has been generated with `export.py`
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-11 21:56:06 -07:00
Glenn Jocher
0bf24cf641
Add OpenCV DNN option for ONNX inference ( #5136 )
...
* Add OpenCV DNN option for ONNX inference
Usage:
```bash
python detect.py --weights yolov5s.onnx # ONNX Runtime inference
python detect.py --weights yolov5s.onnx -dnn # OpenCV DNN inference
```
* DNN prediction to tensor
* Update detect.py
2021-10-11 12:39:20 -07:00
Jebastin Nadar
9d75e42f98
Refactor `Detect()` anchors for ONNX <> OpenCV DNN compatibility ( #4833 )
...
* refactor anchors and anchor_grid in Detect Layer
* fix CI failures by adding compatibility
* fix tf failure
* fix different devices errors
* Cleanup
* fix anchors overwriting issue
* better refactoring
* Remove self.anchor_grid shape check (redundant with self.grid check)
Also PEP8 / 120 line width
* Convert _make_grid() from static to dynamic method
* Remove anchor_grid.to(device)
clone() should already clone to same device as self.anchors
* fix different devices error
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-11 09:58:42 -07:00
Malte Lorbach
153873e9e4
Fix `ROOT` as relative path ( #5129 )
...
* use os.path.relpath instead of relative_to
* use os.path.relpath instead of relative_to
* Remove os.path from val.py
* Remove os.path from train.py
* Update detect.py import to os
* Update export.py import to os
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-11 09:47:24 -07:00
Glenn Jocher
4cf7d487a6
Update plots.py ( #5127 )
2021-10-11 01:59:22 -07:00
Glenn Jocher
7d37b3c52e
Update val.py `pad = 0.0 if task == speed else 0.5` ( #5121 )
...
* Update val.py `pad = 0.0 if task == speed else 0.5`
* Cleanup
2021-10-10 23:20:42 -07:00
Glenn Jocher
ba4b79de8b
Update val.py `--speed` and `--study` usages ( #5120 )
2021-10-10 21:15:28 -07:00
Glenn Jocher
4f9718abe6
Pass `--device` for `--task study` ( #5118 )
2021-10-10 15:07:26 -07:00
Jebastin Nadar
a0e15046c3
Fix different devices bug when moving model from GPU to CPU ( #5110 )
...
* fix different devices bug
* extend _apply() instead of to() for a general fix
* Only apply if Detect() is last layer
Co-authored-by: Jebastin Nadar <njebastin10@gmail.com>
* Indent fix
* Add comment to yolo.py
* Add comment to common.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-10 14:24:05 -07:00
Nan
4a6dfffdaa
Pass `LOCAL_RANK` to `torch_distributed_zero_first()` ( #5114 )
...
Co-authored-by: qiningonline <qiningonline@gmail.com>
2021-10-09 18:41:50 -07:00
hamid mohammadi
97b6b14abe
Add `requests` to requirements.txt ( #5112 )
...
* Requirements updated
1. Requests added to requirements.txt. That might not be included in all docker base images, adding it to the requirements is safer.
2. Added a minimum version to Pandas. It's a good practice to have versions for all dependencies.
* Sort alphabetically
* Update requirements.txt
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-09 15:51:01 -07:00
Glenn Jocher
276b674513
Fix SKU-110K HUB: `OSError` ( #5106 )
2021-10-09 00:12:59 -07:00
Egor Orel
48b00dbc0d
Re-open IP-camera videostream if disconnected ( #5074 )
...
* Re-open IP-camera videostream if disconnected. Provide IP-streaming analysis stability
* Re-open IP-camera videostream if disconnected. Provide IP-streaming analysis stability
* `self.imgs[i] *= 0` bug fix and cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-10-07 23:26:43 -07:00
Glenn Jocher
57ce73cd4f
Update datasets.py comments ( #5088 )
2021-10-07 16:04:08 -07:00
Glenn Jocher
ce8e5dc8bb
Update Dockerfile to `ADD` Arial.ttf ( #5084 )
...
* Update Dockerfile to `ADD` Arial.ttf
Fix for `Arial.ttf download in Docker` #5078
* Cleanup
* Cleanup2
2021-10-07 14:16:33 -07:00
Glenn Jocher
070af88108
Fix `yaml.safe_load()` ignore emoji errors ( #5060 )
2021-10-05 13:41:52 -07:00
Glenn Jocher
5afc9c25ef
Implement `--save-period` locally ( #5047 )
...
This PR adds a new training argument `--save-period` to save training checkpoints every `x` epochs. To save training every 50 epochs for example:
```
python train.py --save-period 50 # saves epoch50.pt, epoch100.pt, epoch150.pt, ... etc.
```
This saved checkpoints in addition to existing last.pt and best.pt checkpoints and does not affect their behavior. Default value is -1, i.e. disabled.
2021-10-04 18:48:46 -07:00
Glenn Jocher
d133968b1e
Clip TTA Augmented Tails ( #5028 )
...
* Clip TTA Augmented Tails
Experimental TTA update.
* Update yolo.py
* Update yolo.py
* Update yolo.py
* Update yolo.py
2021-10-04 15:48:55 -07:00
Zhiqiang Wang
1922ddeac0
Fix pylint: do not use bare 'except' ( #5025 )
...
* Fix E722, do not use bare 'except'
* Remove used codes
* Add FileNotFoundError in LoadImagesAndLabels
* Remove AssertionError
* Ignore LoadImagesAndLabels
* Ignore downloads.py
* Ignore torch_utils.py
* Ignore train.py
* Ignore datasets.py
* Enable utils/download.py
* Fixing exception in thop
* Remove unused code
* Fixing exception in LoadImagesAndLabels
* Fixing exception in exif_size
* Fixing exception in parse_model
* Ignore exceptions in requests
* Revert the exception as suggested
* Revert the exception as suggested
2021-10-03 17:54:40 -07:00
Glenn Jocher
b0ade48457
Fix missing `opt.device` on `--task study` ( #5031 )
2021-10-02 17:55:55 -07:00
Glenn Jocher
cce7e78fae
Created using Colaboratory
2021-09-30 19:10:55 -07:00
Glenn Jocher
89a6e9ffa7
Compute loss on final val ( #5017 )
2021-09-30 15:16:11 -07:00
Glenn Jocher
b20e381492
Update README.md ( #5015 )
2021-09-30 14:06:00 -07:00
Glenn Jocher
452e84703c
Update train.py ( #5014 )
2021-09-30 13:57:53 -07:00
Kalen Michael
cce313d67d
Add YOLOv5 Survey link to README.md ( #5000 )
...
* added callbacks
* added back callback to main
* added save_dir to callback output
* merged in upstream
* removed ghost code
* added survey
* Update README.md
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-30 13:25:48 -07:00
Glenn Jocher
ba99092304
Update W&B README ( #5006 )
2021-09-30 00:35:00 -07:00
Glenn Jocher
1916226841
Created using Colaboratory
2021-09-29 22:18:16 -07:00
Glenn Jocher
42354d7025
Update README.md
2021-09-29 16:56:10 -07:00
Kalen Michael
76d301bd21
Fix URL parsing bug ( #4998 )
...
* added callbacks
* added back callback to main
* added save_dir to callback output
* merged in upstream
* removed ghost code
* fixed parsing error for google temp links
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-29 10:48:45 -07:00
Glenn Jocher
cd35a009ba
Revert `torch.hub.load()` test ( #4986 )
...
Temporarily reverts https://github.com/ultralytics/yolov5/pull/4978 until torch 1.10 is released, which should resolve `urllib.error.HTTPError: HTTP Error 403: rate limit exceeded` errors generated by torch hub from GitHub actions runners.
2021-09-28 20:11:20 -07:00
Glenn Jocher
9988059b10
Clickable CI badge ( #4985 )
2021-09-28 17:46:14 -07:00
Glenn Jocher
6b19f728a1
Created using Colaboratory
2021-09-28 17:33:48 -07:00
Glenn Jocher
cff7d2af45
Created using Colaboratory
2021-09-28 17:29:05 -07:00
Glenn Jocher
0c93ec762a
Faster `--img 64` CI tests ( #4979 )
2021-09-28 12:41:28 -07:00
Glenn Jocher
94705a9528
Add Hub custom models to CI tests ( #4978 )
...
* Update ci-testing.yml for Hub custom model tests
* Update ci-testing.yml
2021-09-28 12:28:18 -07:00
Diego Montes
0c87478713
Update wandb_utils.py ( #4953 )
...
`is_valset_wandb_artifact` and `is_trainset_wandb_artifact` were referenced before assignment causing wandb to be unusable.
2021-09-28 12:22:31 -07:00
Glenn Jocher
38c779b099
Created using Colaboratory
2021-09-28 10:04:56 -07:00
Kalen Michael
29acedf7dd
Add Roboflow to README ( #4972 )
...
* added callbacks
* added back callback to main
* added save_dir to callback output
* merged in upstream
* removed ghost code
* added integrations section removed competition
* attempt column build
* attempt column build
* moved new to header
* removed center column
* utm
* Update README.md
* Update README.md
* updated logo sizes
* resized logos
* fixed links
* Update README.md
* Update README.md
* Update README.md
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-28 09:35:46 -07:00
Glenn Jocher
fb982d6030
Fix relative `ROOT` Pytorch Hub custom model bug ( #4974 )
...
* Fix relative `ROOT` Pytorch Hub custom model bug
* Update yolo.py
2021-09-28 06:36:12 -07:00
Diego Montes
c1bed601e9
Fix `isascii()` method calls for python 3.6 ( #4958 )
...
* fix isascii for python3.6
* update comment with python 3.7 note
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-27 20:16:23 -07:00
Glenn Jocher
2993c3fa7a
Add `roboflow` ( #4956 )
2021-09-27 19:00:05 -07:00
Glenn Jocher
3aeb57d66f
Created using Colaboratory
2021-09-27 18:32:22 -07:00
Glenn Jocher
5ed28603cf
Update relative `ROOT` logic ( #4955 )
...
* Update relative `ROOT` logic
* python 3.9 Path().is_relative_to() removal
2021-09-27 18:26:41 -07:00
Glenn Jocher
4e04cb0dc8
Allow YOLOv5 execution from arbitrary `cwd` ( #4954 )
...
* Allow YOLOv5 execution from arbitrary `cwd`
* Fix str bugs
2021-09-27 17:40:20 -07:00
Glenn Jocher
a820b43aca
Automatic Chinese fonts plotting ( #4951 )
...
* Automatic Chinese fonts plotting
* Default PIL=False
2021-09-27 13:48:15 -07:00
Glenn Jocher
c5ba2abb4a
Update Dockerfile ( #4935 )
2021-09-26 19:16:14 -07:00
Glenn Jocher
5a8e4343d8
Scope `check_file()` search space ( #4933 )
...
`check_file()` is now limited to searching opt-in directories: /data, /models, /utils. This prevents large non-project directories like /.git and /venv from being searched, which may cause `check_file()` to slow significantly.
2021-09-26 17:11:46 -07:00
Glenn Jocher
793383232f
Update default Albumentations ( #4931 )
2021-09-26 12:10:33 -07:00
Glenn Jocher
d856c48298
Validate `best.pt` on train end ( #4889 )
...
* Validate best.pt on train end
* 0.7 iou for COCO only
* pass callbacks
* active model.float() if not half
* print Validating best.pt...
* add newline
2021-09-26 11:54:53 -07:00
Glenn Jocher
e687873436
Add Slack Forum badge to README ( #4930 )
...
Add badge with link to join the new YOLOv5 Slack Forum!
https://join.slack.com/t/ultralytics/shared_invite/zt-w29ei8bp-jczz7QYUmDtgo6r6KcMIAg
2021-09-26 10:54:55 -07:00
Glenn Jocher
39c17ce0b9
Fix `root` referenced before assignment ( #4920 )
...
* Fix `root` referenced before assignment
Fix for bug introduced by #4919 discovered on VOC autodownload:
```
python train.py --data VOC.yaml
```
* Cleanup
2021-09-25 09:16:14 -07:00
Glenn Jocher
a64a4c839f
Replace `os.system('unzip file.zip')` -> `ZipFile.extractall()` ( #4919 )
...
* Replace `os.system('unzip file.zip')` -> `ZipFile.extractall()`
* Cleanup
2021-09-25 08:52:36 -07:00
Jebastin Nadar
1492632796
Fix zipfile name for coco128-segments ( #4914 )
2021-09-25 06:43:24 -07:00
Jiacong Fang
2c2ef25f8b
TensorFlow.js export enhancements ( #4905 )
...
* Add arguments to TensorFlow NMS call
* Add regex substitution to reorder Identity_*
* Delete reorder in docstring
* Cleanup
* Cleanup2
* Removed `+ \` on string ends (not needed)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-24 14:18:15 -07:00
Jiacong Fang
ce7fa81d4e
Avoid out-of-image class labels ( #4902 )
...
* Avoid out-of-image class labels
* Update plots.py
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-24 09:23:28 -07:00
NauchtanRobotics
dad8660540
Fix arg help string to match 'classes' arg name ( #4893 )
2021-09-24 06:44:01 -07:00
Ayush Chaurasia
59aae85a7e
W&B: Fix dataset check ( #4879 )
...
* evolve fix
* Enable login timeout
* fix pkg
* check rank
* don't relogin
* fix
* reformat
2021-09-21 20:02:32 +02:00
Ayush Chaurasia
9febea79de
W&B: Login only in master processes ( #4866 )
...
* evolve fix
* Enable login timeout
* fix pkg
* check rank
* don't relogin
2021-09-20 16:19:34 +02:00
Glenn Jocher
8ad9e4ed5b
Annotator `check_font()` RANK -1 remove progress ( #4864 )
...
* Annotator `check_font()` RANK -1 remove progress
* Cleanup
2021-09-20 13:57:23 +02:00
Glenn Jocher
2b3109eeb0
Fix DDP destruction `LOGGER.info()` ( #4863 )
2021-09-20 13:12:48 +02:00
Glenn Jocher
2809616345
Update Dockerfile ( #4862 )
2021-09-20 13:10:41 +02:00
Glenn Jocher
40d1c80503
Update Dockerfile ( #4861 )
2021-09-20 12:22:24 +02:00
Glenn Jocher
9ef94940aa
Update greetings.yml ( #4856 )
2021-09-18 18:43:26 +02:00
Glenn Jocher
4c839eeb10
Simplify `check_requirements()` usage ( #4855 )
...
* Simplify `check_requirements()` usage
* remove assert, print()
2021-09-18 18:34:30 +02:00
Glenn Jocher
4d1a2ac87e
Update `sys.path.append(str(ROOT))` ( #4852 )
...
* Update `sys.path.append(str(ROOT))`
* Cleanup
2021-09-18 15:02:08 +02:00
Glenn Jocher
3732f9ac8a
Refactor argparser printing to `print_args()` ( #4850 )
...
* Refactor argparser printing to `print_args()`
* Cleanup
2021-09-18 14:16:19 +02:00
Glenn Jocher
84bfa89236
Consolidate `init_seeds()` ( #4849 )
2021-09-18 13:28:42 +02:00
Ayush Chaurasia
302a1b0bb0
W&B: Enable login timeout ( #4843 )
...
* evolve fix
* Enable login timeout
* fix pkg
2021-09-17 18:59:34 +02:00
Glenn Jocher
4fdaec0449
Single `cache_version` definition ( #4846 )
...
Defines dataset labels *.cache version in a single place, fixing a bug introduced in #4845 .
2021-09-17 18:01:52 +02:00
Glenn Jocher
fe39562a5f
Sorted datasets update to `cache_labels()` ( #4845 )
...
PR should produce datasets sorted alphabetically by filename. Cache version incremented to 0.5.
Note: will force a one-time re-caching of existing datasets on first-use.
2021-09-17 17:35:45 +02:00
Glenn Jocher
3a822a22ce
`PIL.ImageDraw.text(anchor=...)` removal, reduce to `>=7.1.2` ( #4842 )
...
* Unpin Pillow
* Update requirements.txt
* Update plots.py
2021-09-17 13:02:37 +02:00
Glenn Jocher
e83792e65c
Created using Colaboratory
2021-09-17 11:40:47 +02:00
Glenn Jocher
850f98f508
Created using Colaboratory
2021-09-17 11:39:00 +02:00
Glenn Jocher
27a4736e96
Fix val.py study plot ( #4831 )
...
* Fix val.py study plot
* call plot_val_study
* Rename plot_study_txt to plot_val_study
2021-09-16 17:55:58 +02:00
Jiacong Fang
3beb871ba4
Multiple TF export improvements ( #4824 )
...
* Add fused conv support
* Set all saved_model values to non trainable
* Fix TFLite fp16 model export
* Fix int8 TFLite conversion
2021-09-16 15:27:22 +02:00
Glenn Jocher
6b44ecd53d
Fix 'PyTorch starting from' for URL weights ( #4828 )
...
Follows #4823
2021-09-16 14:38:35 +02:00
Kalen Michael
43b2817f6e
Feature/fix export on url ( #4823 )
...
* added callbacks
* added back callback to main
* added save_dir to callback output
* merged in upstream
* removed ghost code
* added url check
* Add url2file()
* Update file-only
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-16 13:33:54 +02:00
Glenn Jocher
0dc725e3dc
Refactor `forward()` method profiling ( #4816 )
2021-09-16 09:47:34 +02:00
Glenn Jocher
621b6d5ba8
Evolution `--resume` fix ( #4802 )
...
Also disable `/weights` dir creation when evolving as no weights are saved and empty folder causes user expectations of weights.
2021-09-15 13:13:33 +02:00
Glenn Jocher
b74dd4ba4f
Add `--int8` argument ( #4799 )
...
* Add `--int8` argument
* parents[0] bug fix
* Fix order
2021-09-15 11:33:46 +02:00
Jihoon Kim
fcb225c1c8
Shuffle all 4(or 9) images in mosaic augmentation ( #4787 )
...
Thank you for sharing nice open-source codes 👍
I applied to shuffle the order of all 4(or 9) images in mosaic augmentation
Currently, the order of images in mosaic augmentation is not completely random.
The remaining images except the first are randomly arranged. Apply shuffle all to increase the diversity of data composition.
2021-09-15 00:57:06 +02:00
Glenn Jocher
aa1859909c
Update ci-testing.yml ( #4772 )
2021-09-12 23:40:28 +02:00
Glenn Jocher
b161edf873
Update ci-testing.yml ( #4770 )
2021-09-12 17:55:41 +02:00
Glenn Jocher
c3a93d783d
Add TensorFlow formats to `export.py` ( #4479 )
...
* Initial commit
* Remove unused export_torchscript return
* ROOT variable
* Add prefix to fcn arg
* fix ROOT
* check_yaml into run()
* interim fixes
* imgsz=(320, 320)
* Hardcode tf_raw_resize False
* Finish opt elimination
* Update representative_dataset_gen()
* Update export.py with TF methods
* SiLU and GraphDef fixes
* file_size() directory handling feature
* export fixes
* add lambda: to representative_dataset
* Detect training False default
* Fuse false for TF models
* Embed agnostic NMS arguments
* Remove lambda
* TensorFlow.js export success
* Add pb to Usage
* Add *_tfjs_model/ to ignore files
* prepend YOLOv5 to function headers
* Remove end --- comments
* parameterize tfjs export pb file
* update run() data default /ROOT
* update --include help
* update imports
* return ct_model
* Consolidate TFLite export
* pb prerequisite to tfjs
* TF modules CamelCase
* Remove exports from tf.py and cleanup
* pass agnostic NMS arguments
* CI
* CI
* ignore *_web_model/
* Add tensorflow to CI dependencies
* CI tensorflow-cpu
* Update requirements.txt
* Remove tensorflow check_requirement
* CI coreml tfjs
* export only onnx torchscript
* reorder exports torchscript first
2021-09-12 15:52:24 +02:00
Glenn Jocher
c47be26f34
Replace `path.absolute()` with `path.resolve()` ( #4763 )
2021-09-11 22:46:33 +02:00
Glenn Jocher
cd810c8286
Centralize `user_config_dir()` decision making ( #4755 )
2021-09-11 16:32:08 +02:00
Glenn Jocher
22ee6fb7c1
Update `is_writeable()` for 2 methods ( #4744 )
...
* Writeable test
* Fix
* Cleanup
2021-09-10 17:52:33 +02:00
Glenn Jocher
ff35292520
Add TF and TFLite models to `.dockerignore` ( #4748 )
2021-09-10 17:52:21 +02:00
Glenn Jocher
6c554b75ea
Add TF and TFLite models to `.gitignore` ( #4747 )
2021-09-10 17:51:22 +02:00
Glenn Jocher
a144536f88
Fix `is_writeable()` for 3 OS support ( #4743 )
...
* Fix `is_writeable()` for 3 OS support
* Update general.py
2021-09-10 17:06:22 +02:00
Josh Veitch-Michaelis
19e28e3bfe
Add `callbacks` to train function in W&B sweep ( #4742 )
...
* add callbacks to train function in wandb sweep
Fix following https://github.com/ultralytics/yolov5/pull/4688 which modified the function signature to `train`
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-10 16:28:52 +02:00
Glenn Jocher
7af1b4c266
Improved `detect.py` timing ( #4741 )
...
* Improved detect.py timing
* Eliminate 1 time_sync() call
* Inference-only time
* dash
* #Save section
* Cleanup
2021-09-10 14:34:09 +02:00
Glenn Jocher
c5360f6e70
Fix `--data from_HUB.zip` ( #4732 )
...
@KalenMike
2021-09-09 18:01:59 +02:00
Glenn Jocher
4a025ae97f
Fix `user_config_dir()` for GCP/AWS functions ( #4726 )
...
* Fix `user_config_dir()` for GCP/AWS functions
Compatability fix for GCP functions and AWS lambda for user config directory in https://github.com/ultralytics/yolov5/pull/4628
* Windows skip check
2021-09-09 17:57:46 +02:00
Zegorax
2d9411dbb8
Scope `onnx-simplifier` requirements check ( #4730 )
...
* Changed onnx-simplifier check behavior
Export.py has been updated to check for onnx-simplifier requirement only when the --simplify argument is added.
Allows for better flexibility and one less requirement if simplify is not needed.
* Fix single-element tuples
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-09 16:49:10 +02:00
Jean-Baptiste Martin
1cad0ce2c7
Allow `multi_label` option for NMS with PyTorch Hub ( #4728 )
...
* Allow specifying multi_label option for NMS when using torch hub
* Reformat
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-09 15:32:04 +02:00
JD Costa
deb434aefa
Make CONFIG_DIR configurable per environment variable ( #4727 )
2021-09-09 15:29:18 +02:00
ELHoussineT
0d8a184237
Add `crops = results.crops()` dictionary ( #4676 )
...
* adding get cropped functionality
* Add target logic in existing functions
* Crops cleanup
* Add dictionary keys: conf, cls, box
* Bug fixes - avoid return after first image
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-08 19:42:28 +02:00
Glenn Jocher
8e94bf62d9
Add `user_config_dir('Ultralytics')` ( #4715 )
...
* Add `user_config_dir`
* Linux to .config
2021-09-08 18:13:59 +02:00
Glenn Jocher
25a7e1dae5
Update `check_yaml()` comment ( #4713 )
...
* Update `check_yaml()` comment
* Cleanup
2021-09-08 16:01:03 +02:00
Glenn Jocher
f984cce52a
Fix `check_suffix()` ( #4712 )
...
Fix a bug when `file=''`
2021-09-08 15:06:31 +02:00
Glenn Jocher
a2b3c71636
Add suffix checks ( #4711 )
...
* Add suffix checks
* Cleanup
* Cleanup2
* Cleanup3
2021-09-08 14:36:12 +02:00
Zhiqiang Wang
8e5f9ddbdb
Remove redundant `ComputeLoss` code ( #4701 )
2021-09-08 12:48:33 +02:00
Kalen Michael
2317f86ca4
Optimised Callback Class to Reduce Code and Fix Errors ( #4688 )
...
* added callbacks
* added back callback to main
* added save_dir to callback output
* reduced code count
* updated callbacks
* added default callback class to main, added missing parameters to on_model_save
* Glenn updates
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-09-07 18:32:15 +02:00
Glenn Jocher
548745181a
EarlyStopper updates ( #4679 )
2021-09-05 19:09:53 +02:00
imyhxy
f64fab5825
Fixed 'meta' and 'hyp' may out of order when using evolve ( #4657 )
...
* Fixed 'meta' and 'hyp' may out of order when using evolve
* Update gitignore
2021-09-05 17:43:09 +02:00
Glenn Jocher
fad57c29cd
Fix `is_coco` on missing `data['val']` key ( #4642 )
2021-09-01 16:30:14 +02:00
Glenn Jocher
234e8ae6fa
Fix for `plot_evolve()` string argument ( #4639 )
2021-09-01 15:00:13 +02:00
Glenn Jocher
de534e9221
Fix 3 for Arial.ttf redownloads with hub inference ( #4629 )
...
Fix 3 for Arial.ttf redownloads with hub inference, follow-on to #4628 .
2021-08-31 20:54:10 +02:00
Glenn Jocher
a4e8f78c5e
Fix 2 for Arial.ttf redownloads with hub inference ( #4628 )
2021-08-31 20:05:17 +02:00
Glenn Jocher
ba0f80874f
Fix for Arial.ttf redownloads with hub inference ( #4627 )
2021-08-31 15:01:41 +02:00
Glenn Jocher
50a9828679
DDP `torch.jit.trace()` `--sync-bn` fix ( #4615 )
...
* Remove assert
* debug0
* trace=not opt.sync
* sync to sync_bn fix
* Cleanup
2021-08-30 18:35:07 +02:00
Glenn Jocher
bb5ebc290e
Close `matplotlib` plots after opening ( #4612 )
...
* Close plots
* Replace fig.close() for plt.close()
2021-08-30 17:22:21 +02:00
Ayush Chaurasia
11e7c7b48d
W&B: Don't log models in evolve operation ( #4611 )
2021-08-30 17:07:20 +02:00
Glenn Jocher
3a72d4a7e3
Update `check_git_status()` warning ( #4610 )
2021-08-30 17:05:45 +02:00
Yukun Xia
35fe031461
Fix: add P2 layer 21 to yolov5-p2.yaml `Detect()` inputs ( #4608 )
...
Layer 21 includes the information of xsmall objects
2021-08-30 15:46:33 +02:00
Glenn Jocher
e7d1842a98
Auto-download Arial.ttf on init ( #4606 )
...
* Auto-download Arial.ttf on init
* Fix ROOT
2021-08-30 14:58:22 +02:00
Glenn Jocher
bb4da083d1
Created using Colaboratory
2021-08-30 14:33:53 +02:00
Glenn Jocher
dc13820c9d
TensorBoard `on_train_end()` speed improvements ( #4605 )
2021-08-30 13:01:41 +02:00
Glenn Jocher
b894e69dfc
Update mosaic plots font size ( #4596 )
2021-08-29 18:05:49 +02:00
Glenn Jocher
bfad364455
Created using Colaboratory
2021-08-29 17:56:35 +02:00
Glenn Jocher
dbbc6b5c48
Re-order `plots.py` to class-first ( #4595 )
2021-08-29 17:44:51 +02:00
Glenn Jocher
e5e5ebc799
Auto-UTF handling ( #4594 )
2021-08-29 17:15:18 +02:00
Glenn Jocher
de44376d1b
Create `Annotator()` class ( #4591 )
...
* Add Annotator() class
* Download Arial
* 2x for loop
* Cleanup
* tuple 2 list
* max_size=1920
* bold logging results to
* tolist()
* im = annotator.im
* PIL save in detect.py
* Smart asarray in detect.py
* revert to cv2.imwrite
* Cleanup
* Return result asarray
* Add `Profile()` profiler
* CamelCase Timeout
* Resize after mosaic
* pillow>=8.0.0
* daemon imwrite
* Add cv2 support
* Remove plot_wh_methods and plot_one_box
* pil=False for hubconf.py annotations
* im.shape bug fix
* colorstr common.py
* join daemons
* Update t.daemon
* Removed daemon saving
2021-08-29 16:46:13 +02:00
Takumi Karasawa
7b35971ba5
Fix bug in `plot_one_box` when label is `None` ( #4588 )
2021-08-29 15:08:27 +02:00
Glenn Jocher
bbfafeabdb
Add `Profile()` profiler ( #4587 )
...
* Add `Profile()` profiler
* CamelCase Timeout
2021-08-29 13:49:04 +02:00
Glenn Jocher
d7aa3f153d
Remove `image_weights` DDP code ( #4579 )
...
* Initial commit
* Update
2021-08-28 19:17:21 +02:00
Glenn Jocher
93cc015748
Add EarlyStopping feature ( #4576 )
...
* Add EarlyStopping feature
* Add comment
* Cleanup
* Cleanup2
* debug
* debug2
* debug3
* debug3
* debug4
* debug5
* debug6
* debug7
* debug8
* debug9
* debug10
* debug11
* debug12
* Cleanup
* Add TODO for known DDP issue
2021-08-28 19:03:52 +02:00
Glenn Jocher
8b18b66304
ONNX opset 13 ( #4566 )
2021-08-27 16:00:39 +02:00
Glenn Jocher
8ac96b7975
Fix for AP calculation limits 0.0 - 1.0 ( #4563 )
...
This PR brings alignment in AP computation practices with Detectron2 and MMDetection.
Problem first noted by @yusiyoh in https://github.com/ultralytics/yolov5/issues/4546
2021-08-27 13:23:29 +02:00
Glenn Jocher
e899d6e8fb
Fix for corrupt JPEGs auto-fix PR ( #4560 )
...
Auto-fix corrupt JPEGs PR introduced a bug whereby the f.seek() operation read all of the bytes in the image, resulting in the PIL image having nothing to read upon the .save() operation.
Fix was to re-open the image using PIL before saving.
2021-08-27 13:01:21 +02:00
Glenn Jocher
11f85e7e71
Auto-fix corrupt JPEGs ( #4548 )
...
* Autofix corrupt JPEGs
This PR automatically re-saves corrupt JPEGs and trains with the resaved images. WARNING: this will overwrite the existing corrupt JPEGs in a dataset and replace them with correct JPEGs, though the filesize may increase and the image contents may not be exactly the same due to lossy JPEG compression schemes. Results may vary by JPEG decoder and hardware.
Current behavior is to exclude corrupt JPEGs from training with a warning to the user, but many users have been complaining about large parts of their dataset being excluded from training.
* Clarify re-save reason
2021-08-26 15:51:04 +02:00
Glenn Jocher
2da6444c92
Fix for `python models/yolo.py --profile` ( #4541 )
...
Profiling fix copies input to Detect layer to circumvent inplace changes to the feature maps.
2021-08-25 21:23:28 +02:00
Glenn Jocher
79af1144c2
Automatic TFLite uint8 determination ( #4515 )
...
* Auto TFLite uint8 detection
This PR automatically determines if TFLite models are uint8 quantized rather than accepting a manual argument.
The quantization determination is based on @zldrobit comment https://github.com/ultralytics/yolov5/pull/1127#issuecomment-901713847
* Cleanup
2021-08-23 17:05:53 +02:00
Glenn Jocher
7b1643b5b5
Add `install=True` argument to `check_requirements` ( #4512 )
...
* Add `install=True` argument to `check_requirements`
* Update general.py
2021-08-23 14:38:30 +02:00
Ayush Chaurasia
7316b78e36
W&B: Refactor the wandb_utils.py file ( #4496 )
...
* Improve docstrings and run names
* default wandb login prompt with timeout
* return key
* Update api_key check logic
* Properly support zipped dataset feature
* update docstring
* Revert tuorial change
* extend changes to log_dataset
* add run name
* bug fix
* bug fix
* Update comment
* fix import check
* remove unused import
* Hardcore .yaml file extension
* reduce code
* Reformat using pycharm
* Remove redundant try catch
* More refactoring and bug fixes
* retry
* Reformat using pycharm
* respect LOGGERS include list
* Fix
* fix
* refactor constructor
* refactor
* refactor
* refactor
* PyCharm reformat
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-08-23 13:10:07 +02:00
Glenn Jocher
d1182c4f29
`check_requirements(('coremltools',))` ( #4478 )
...
* `check_requirements(('coremltools',))`
* Update ci-testing.yml
* Update ci-testing.yml
2021-08-18 21:16:57 +02:00
Huu Quan, CAP
1d65e8194d
Fix missing labels after albumentations ( #4455 )
...
* fix missing labels after augmentation
* Update datasets.py
Cleanup
Co-authored-by: Huu Quan <huuquan@HuuQuans-MacBook.local>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-08-18 12:07:09 +02:00
Glenn Jocher
6dd7dd8dd3
Fix default `--weights yolov5s.pt` ( #4458 )
2021-08-17 23:29:07 +02:00
Jiacong Fang
808bcad3bb
Add TensorFlow and TFLite export ( #1127 )
...
* Add models/tf.py for TensorFlow and TFLite export
* Set auto=False for int8 calibration
* Update requirements.txt for TensorFlow and TFLite export
* Read anchors directly from PyTorch weights
* Add --tf-nms to append NMS in TensorFlow SavedModel and GraphDef export
* Remove check_anchor_order, check_file, set_logging from import
* Reformat code and optimize imports
* Autodownload model and check cfg
* update --source path, img-size to 320, single output
* Adjust representative_dataset
* Put representative dataset in tfl_int8 block
* detect.py TF inference
* weights to string
* weights to string
* cleanup tf.py
* Add --dynamic-batch-size
* Add xywh normalization to reduce calibration error
* Update requirements.txt
TensorFlow 2.3.1 -> 2.4.0 to avoid int8 quantization error
* Fix imports
Move C3 from models.experimental to models.common
* Add models/tf.py for TensorFlow and TFLite export
* Set auto=False for int8 calibration
* Update requirements.txt for TensorFlow and TFLite export
* Read anchors directly from PyTorch weights
* Add --tf-nms to append NMS in TensorFlow SavedModel and GraphDef export
* Remove check_anchor_order, check_file, set_logging from import
* Reformat code and optimize imports
* Autodownload model and check cfg
* update --source path, img-size to 320, single output
* Adjust representative_dataset
* detect.py TF inference
* Put representative dataset in tfl_int8 block
* weights to string
* weights to string
* cleanup tf.py
* Add --dynamic-batch-size
* Add xywh normalization to reduce calibration error
* Update requirements.txt
TensorFlow 2.3.1 -> 2.4.0 to avoid int8 quantization error
* Fix imports
Move C3 from models.experimental to models.common
* implement C3() and SiLU()
* Fix reshape dim to support dynamic batching
* Add epsilon argument in tf_BN, which is different between TF and PT
* Set stride to None if not using PyTorch, and do not warmup without PyTorch
* Add list support in check_img_size()
* Add list input support in detect.py
* sys.path.append('./') to run from yolov5/
* Add int8 quantization support for TensorFlow 2.5
* Add get_coco128.sh
* Remove --no-tfl-detect in models/tf.py (Use tf-android-tfl-detect branch for EdgeTPU)
* Update requirements.txt
* Replace torch.load() with attempt_load()
* Update requirements.txt
* Add --tf-raw-resize to set half_pixel_centers=False
* Add --agnostic-nms for TF class-agnostic NMS
* Cleanup after merge
* Cleanup2 after merge
* Cleanup3 after merge
* Add tf.py docstring with credit and usage
* pb saved_model and tflite use only one model in detect.py
* Add use cases in docstring of tf.py
* Remove redundant `stride` definition
* Remove keras direct import
* Fix `check_requirements(('tensorflow>=2.4.1',))`
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-08-17 13:18:16 +02:00
Glenn Jocher
f3e3f7603f
TFLite prep ( #4436 )
2021-08-16 17:25:06 +02:00
Omid Sadeghnezhad
dbc06ce292
Update hubconf.py attempt_load import ( #4428 )
2021-08-16 10:58:02 +02:00
Glenn Jocher
19d03a955c
Remove DDP process group timeout ( #4422 )
2021-08-15 18:32:41 +02:00
Glenn Jocher
4e65052f28
Created using Colaboratory
2021-08-15 16:41:57 +02:00
Glenn Jocher
01cdb7671b
Add `SPPF()` layer ( #4420 )
...
* Add `SPPF()` layer
* Cleanup
* Add credit
2021-08-15 14:28:35 +02:00
Glenn Jocher
24bea5e4b7
Standardize headers and docstrings ( #4417 )
...
* Implement new headers
* Reformat 1
* Reformat 2
* Reformat 3 - math
* Reformat 4 - yaml
2021-08-14 21:17:51 +02:00
Glenn Jocher
bb0aed1ba6
Created using Colaboratory
2021-08-14 21:12:05 +02:00
Glenn Jocher
2da4e7acf7
Merge PIL and OpenCV in `plot_one_box(use_pil=False)` ( #4416 )
...
* Merge PIL and OpenCV box plotting functions
* Add ASCII check to plot_one_box
* Cleanup
* Cleanup2
2021-08-14 17:44:15 +02:00
Glenn Jocher
63e09fdc48
Remove `encoding='ascii'` ( #4413 )
...
* Remove `encoding='ascii'`
* Reinstate `encoding='ascii'` in emojis()
2021-08-14 13:47:20 +02:00
Glenn Jocher
4e8c81a368
Add `yolov5s-ghost.yaml` ( #4412 )
...
* Add yolov5s-ghost.yaml
* Finish C3Ghost
* Add C3Ghost to list
* Add C3Ghost to number of repeats if statement
* Fixes
* Cleanup
2021-08-14 12:55:22 +02:00
Glenn Jocher
e086347377
Update plots.py ( #4407 )
2021-08-14 12:50:27 +02:00
Ahmad Mustafa Anis
d9f23ed6d6
No cache option for reading datasets ( #4376 )
...
* no cache option
* no cache option
* bit change
* changed to 0,1 instead of True False
* Update train.py
* Update datasets.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-08-13 13:25:00 +02:00
Glenn Jocher
57c342a6a5
Simplify ONNX inference command ( #4405 )
2021-08-13 13:22:13 +02:00
Glenn Jocher
3e7c59ad3b
Fix rename `utils.google_utils` to `utils.downloads` ( #4393 )
2021-08-11 23:40:47 +02:00
Ayush Chaurasia
a4e4553040
W&B: Fix for 4360 ( #4388 )
...
* Improve docstrings and run names
* default wandb login prompt with timeout
* return key
* Update api_key check logic
* Properly support zipped dataset feature
* update docstring
* Revert tuorial change
* extend changes to log_dataset
* add run name
* bug fix
* bug fix
* Update comment
* fix import check
* remove unused import
* Hardcore .yaml file extension
* reduce code
* Reformat using pycharm
* Remove redundant try catch
* More refactoring and bug fixes
* retry
* Reformat using pycharm
* respect LOGGERS include list
* Fix
* fix
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-08-11 21:56:25 +02:00
Ayush Chaurasia
75d323dd8b
W&B: Add advanced features tutorial ( #4384 )
...
* Improve docstrings and run names
* default wandb login prompt with timeout
* return key
* Update api_key check logic
* Properly support zipped dataset feature
* update docstring
* Revert tuorial change
* extend changes to log_dataset
* add run name
* bug fix
* bug fix
* Update comment
* fix import check
* remove unused import
* Hardcore .yaml file extension
* reduce code
* Reformat using pycharm
* Remove redundant try catch
* More refactoring and bug fixes
* retry
* Reformat using pycharm
* respect LOGGERS include list
* Initial readme update
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-08-11 18:35:43 +02:00
Glenn Jocher
11e4aebfef
Update README.md ( #4387 )
2021-08-11 18:33:34 +02:00
Glenn Jocher
b27f69f108
Created using Colaboratory
2021-08-11 18:32:06 +02:00
Yuantao Yang
e7fc27406a
Fix module count in parse_model ( #4379 )
...
Co-authored-by: yangyuantao <yangyuantao@transai.cn>
2021-08-11 17:38:34 +02:00
Glenn Jocher
ce7deec440
`int(mlc)` ( #4385 )
2021-08-11 17:32:13 +02:00
Yonghye Kwon
e96c74b5a1
Simpler code for DWConvClass ( #4310 )
...
* more simpler code for DWConvClass
more simpler code for DWConvClass
* remove DWConv function
* Replace DWConvClass with DWConv
2021-08-05 10:54:16 +02:00
Sudhanshu Singh
f409d8e54f
Update README.md ( #4309 )
...
remove unnecessary "`"
2021-08-04 22:11:48 +02:00
Glenn Jocher
86c7150cfd
Update newline ( #4308 )
2021-08-04 17:41:38 +02:00
Glenn Jocher
e78aeac973
Evolve in CSV format ( #4307 )
...
* Update evolution to CSV format
* Update
* Update
* Update
* Update
* Update
* reset args
* reset args
* reset args
* plot_results() fix
* Cleanup
* Cleanup2
2021-08-04 17:13:38 +02:00
Glenn Jocher
4103ce9ad0
Simplify callbacks ( #4289 )
2021-08-04 13:17:35 +02:00
imyhxy
771ac6c53d
Fixed logging level in distributed mode ( #4284 )
...
Co-authored-by: fkwong <huangfuqiang@transai.cn>
2021-08-03 13:11:42 +02:00
junji hashimoto
2d99063201
Feature `python train.py --cache disk` ( #4049 )
...
* Add cache-on-disk and cache-directory to cache images on disk
* Fix load_image with cache_on_disk
* Add no_cache flag for load_image
* Revert the parts('logging' and a new line) that do not need to be modified
* Add the assertion for shapes of cached images
* Add a suffix string for cached images
* Fix boundary-error of letterbox for load_mosaic
* Add prefix as cache-key of cache-on-disk
* Update cache-function on disk
* Add psutil in requirements.txt
* Update train.py
* Cleanup1
* Cleanup2
* Skip existing npy
* Include re-space
* Export return character fix
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-08-02 18:47:24 +02:00
Ayush Chaurasia
621caea53c
W&B: Fix sweep bug ( #4276 )
...
* Improve docstrings and run names
* default wandb login prompt with timeout
* return key
* Update api_key check logic
* Properly support zipped dataset feature
* update docstring
* Revert tuorial change
* extend changes to log_dataset
* add run name
* bug fix
* bug fix
* Update comment
* fix import check
* remove unused import
* Hardcore .yaml file extension
* reduce code
* Reformat using pycharm
* Remove redundant try catch
* More refactoring and bug fixes
* retry
* Reformat using pycharm
* respect LOGGERS include list
* call wandblogger.log instead of wandb.log
* Fix Sweep bug
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-08-02 18:41:52 +02:00
Glenn Jocher
388016e9e3
Update 'results saved to' string ( #4275 )
2021-08-02 15:48:53 +02:00
Glenn Jocher
587c4b4b81
Add `DWConvClass()` ( #4274 )
...
* Add `DWConvClass()`
* Cleanup
* Cleanup2
2021-08-02 15:36:30 +02:00
Glenn Jocher
9c6732f61c
Update variables ( #4273 )
2021-08-02 15:13:55 +02:00
Glenn Jocher
306fc0119a
Update Autoshape forward header ( #4271 )
2021-08-02 12:42:23 +02:00
Glenn Jocher
53bfcbe0ae
Update AP calculation ( #4260 )
...
* Update AP calculation
* Cleanup
* Remove original
2021-08-01 20:36:00 +02:00
Ayush Chaurasia
cd540d8625
W&B: suppress warnings ( #4257 )
...
* Improve docstrings and run names
* default wandb login prompt with timeout
* return key
* Update api_key check logic
* Properly support zipped dataset feature
* update docstring
* Revert tuorial change
* extend changes to log_dataset
* add run name
* bug fix
* bug fix
* Update comment
* fix import check
* remove unused import
* Hardcore .yaml file extension
* reduce code
* Reformat using pycharm
* Remove redundant try catch
* More refactoring and bug fixes
* retry
* Reformat using pycharm
* respect LOGGERS include list
* call wandblogger.log instead of wandb.log
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-08-01 12:06:53 +02:00
Kalen Michael
b74929c910
Add `train.py` and `val.py` callbacks ( #4220 )
...
* added callbacks
* Update callbacks.py
* Update train.py
* Update val.py
* Fix CamlCase add staticmethod
* Refactor logger into callbacks
* Cleanup
* New callback on_val_image_end()
* Add curves and results images to TensorBoard
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-08-01 00:18:07 +02:00
Glenn Jocher
d8f18834a2
Update `profile()` for CUDA Memory allocation ( #4239 )
...
* Update profile()
* Update profile()
* Update profile()
* Update profile()
* Update profile()
* Update profile()
* Update profile()
* Update profile()
* Update profile()
* Update profile()
* Update profile()
* Update profile()
* Cleanup
2021-07-30 18:17:19 +02:00
IneovaAI
bceb57b910
Add `python train.py --freeze N` argument ( #4238 )
...
* Add freeze as an argument
I train on different platforms and sometimes I want to freeze some layers. I have to go into the code and change it and also keep track of how many layers I froze on what platform. Please add the number of layers to freeze as an argument in future versions thanks.
* Update train.py
* Update train.py
* Cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-07-30 17:39:48 +02:00
Glenn Jocher
9468657502
Update profiler ( #4236 )
2021-07-30 16:00:47 +02:00
Glenn Jocher
8d3c3ef45c
Fix weight decay comment ( #4228 )
2021-07-30 01:35:39 +02:00
Glenn Jocher
1a10b0ecd2
Created using Colaboratory
2021-07-30 01:04:36 +02:00
Glenn Jocher
083c13da45
Created using Colaboratory
2021-07-30 00:58:14 +02:00
Glenn Jocher
18f6ba77cf
Suppress torch 1.9.0 max_pool2d() warning ( #4227 )
2021-07-30 00:37:55 +02:00
Glenn Jocher
c2c958c350
Explicit `requirements.txt` location ( #4225 )
2021-07-29 17:29:39 +02:00
Glenn Jocher
7820614c40
Add `@try_except` decorator ( #4224 )
2021-07-29 17:23:35 +02:00
Glenn Jocher
b60b62e874
PyCharm reformat ( #4209 )
...
* PyCharm reformat
* YAML reformat
* Markdown reformat
2021-07-28 23:35:14 +02:00
Ayush Chaurasia
750465edae
W&B: More improvements and refactoring ( #4205 )
...
* Improve docstrings and run names
* default wandb login prompt with timeout
* return key
* Update api_key check logic
* Properly support zipped dataset feature
* update docstring
* Revert tuorial change
* extend changes to log_dataset
* add run name
* bug fix
* bug fix
* Update comment
* fix import check
* remove unused import
* Hardcore .yaml file extension
* reduce code
* Reformat using pycharm
* Remove redundant try catch
* More refactoring and bug fixes
* retry
* Reformat using pycharm
* respect LOGGERS include list
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-07-28 23:25:15 +02:00
Glenn Jocher
e016b15555
Update yolov5-bifpn.yaml ( #4208 )
2021-07-28 21:25:20 +02:00
Ayush Chaurasia
e88e8f7a98
W&B: Restructure code to support the new dataset_check() feature ( #4197 )
...
* Improve docstrings and run names
* default wandb login prompt with timeout
* return key
* Update api_key check logic
* Properly support zipped dataset feature
* update docstring
* Revert tuorial change
* extend changes to log_dataset
* add run name
* bug fix
* bug fix
* Update comment
* fix import check
* remove unused import
* Hardcore .yaml file extension
* reduce code
* Reformat using pycharm
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-07-28 17:40:08 +02:00
Glenn Jocher
2683b18079
Update Hub Path inputs ( #4200 )
2021-07-28 16:55:39 +02:00
Glenn Jocher
1f31b7c503
Create yolov5-bifpn.yaml ( #4195 )
2021-07-28 15:04:30 +02:00
Glenn Jocher
5d66e48723
Train from `--data path/to/dataset.zip` feature ( #4185 )
...
* Train from `--data path/to/dataset.zip` feature
* Update dataset_stats()
* cleanup
* cleanup2
2021-07-28 02:04:10 +02:00
Glenn Jocher
3fef11706c
Update comments header ( #4184 )
2021-07-27 23:23:41 +02:00
Ayush Chaurasia
63a1971e31
Improve docstrings and run names ( #4174 )
2021-07-27 15:13:32 +02:00
Glenn Jocher
0ad6301c96
Update script headers ( #4163 )
...
* Update download script headers
* cleanup
* bug fix attempt
* bug fix attempt2
* bug fix attempt3
* cleanup
2021-07-26 15:23:33 +02:00
Glenn Jocher
f8e11483df
Update dataset headers ( #4162 )
2021-07-26 14:23:43 +02:00
Glenn Jocher
8acb5734c7
Created using Colaboratory
2021-07-26 00:57:09 +02:00
Glenn Jocher
96e36a7c91
New CSV Logger ( #4148 )
...
* New CSV Logger
* cleanup
* move batch plots into Logger
* rename comment
* Remove total loss from progress bar
* mloss :-1 bug fix
* Update plot_results()
* Update plot_results()
* plot_results bug fix
2021-07-25 19:06:37 +02:00
Glenn Jocher
3764277f95
Created using Colaboratory
2021-07-25 18:59:18 +02:00
Glenn Jocher
6e4358f3f3
Add `export.py` ONNX inference suggestion ( #4146 )
2021-07-25 13:46:16 +02:00
Glenn Jocher
d17b45eaad
Update README.md ( #4143 )
2021-07-25 01:22:00 +02:00
Glenn Jocher
efe60b5681
Refactor train.py and val.py `loggers` ( #4137 )
...
* Update loggers
* Config
* Update val.py
* cleanup
* fix1
* fix2
* fix3 and reformat
* format sweep.py
* Logger() class
* cleanup
* cleanup2
* wandb package import fix
* wandb package import fix2
* txt fix
* fix4
* fix5
* fix6
* drop wandb into utils/loggers
* fix 7
* rename loggers/wandb_logging to loggers/wandb
* Update message
* Update message
* Update message
* cleanup
* Fix x axis bug
* fix rank 0 issue
* cleanup
2021-07-25 01:18:39 +02:00
Glenn Jocher
63dd65e7ed
Update train.py ( #4136 )
...
* Refactor train.py
* Update imports
* Update imports
* Update optimizer
* cleanup
2021-07-24 16:11:39 +02:00
Glenn Jocher
264be1a616
Rename `opset_version` to `opset` ( #4135 )
2021-07-24 13:19:12 +02:00
Glenn Jocher
2e538443b7
ONNX inference update ( #4073 )
2021-07-24 13:08:51 +02:00
Glenn Jocher
39ef6c7a80
Update README.md ( #4134 )
2021-07-24 12:36:07 +02:00
imyhxy
4495e00016
Fix indentation in `log_training_progress()` ( #4126 )
2021-07-23 14:55:00 +02:00
Glenn Jocher
4bad914761
Update resume.py ( #4115 )
2021-07-22 17:22:11 +02:00
Glenn Jocher
2c073cd207
Add train.py ``--img-size` floor ( #4099 )
2021-07-21 16:50:47 +02:00
Glenn Jocher
3bef77f5cb
Addition refactor `export.py` ( #4089 )
...
* Addition refactor `export.py`
* Update export.py
2021-07-20 18:42:27 +02:00
Glenn Jocher
442a7abdf2
Refactor `export.py` ( #4080 )
...
* Refactor `export.py`
* cleanup
* Update check_requirements()
* Update export.py
2021-07-20 13:21:52 +02:00
Ayush Chaurasia
0cc7c58787
W&B: fix refactor bugs ( #4069 )
2021-07-19 13:57:13 +02:00
Glenn Jocher
7fdcc77bf4
Albumentations >= 1.0.3 ( #4068 )
2021-07-19 13:23:19 +02:00
Glenn Jocher
ee76a68f1d
Created using Colaboratory
2021-07-19 13:14:09 +02:00
Glenn Jocher
c8a98cb7cb
Missing `nc` and `names` handling in check_dataset() ( #4066 )
2021-07-19 13:10:21 +02:00
Glenn Jocher
b1be685005
Module `super().__init__()` ( #4065 )
...
* Module `super().__init__()`
* remove NMS
2021-07-19 12:41:15 +02:00
Glenn Jocher
f7d8562060
`val.py` refactor ( #4053 )
...
* val.py refactor
* cleanup
* cleanup
* cleanup
* cleanup
* save after eval
* opt.imgsz bug fix
* wandb refactor
* dataloader to train_loader
* capitalize global variables
* runs/hub/exp to runs/detect/exp
* refactor wandb logging
* Refactor wandb operations (#4061 )
Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com>
2021-07-19 10:43:01 +02:00
Glenn Jocher
9dd33fd20f
AutoShape PosixPath support ( #4047 )
...
* AutoShape PosixPath support
Usage example:
````python
from pathlib import Path
model = ...
file = Path('data/images/zidane.jpg')
results = model(file)
```
* Update common.py
2021-07-18 15:25:37 +02:00
Glenn Jocher
dd62e2d05c
Update README.md ( #4041 )
...
* Update README.md
* Update README.md
* Update README.md
2021-07-17 23:12:27 +02:00
Glenn Jocher
0067d9578a
Update greetings.yml ( #4037 )
2021-07-17 15:47:05 +02:00
Glenn Jocher
951922c735
Add `--sync-bn` known issue ( #4032 )
...
* Add `--sync-bn` known issue
* Update train.py
2021-07-17 13:07:19 +02:00
Glenn Jocher
b7e985e397
Update greetings.yml ( #4024 )
...
* Update greetings.yml
* Update greetings.yml
2021-07-16 14:38:59 +02:00
Ayush Chaurasia
62409eea08
W&B sweeps support ( #3938 )
...
* Add support for W&B Sweeps
* Update and reformat
* Update search space
* reformat
* reformat sweep.py
* Update sweep.py
* Move sweeps files to wandb dir
* Remove print
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-07-14 19:13:02 +02:00
Glenn Jocher
720aaa65c8
Rename `test.py` to `val.py` ( #4000 )
2021-07-14 15:43:54 +02:00
Glenn Jocher
8ee9fd1505
Update README.md ( #3996 )
2021-07-13 23:07:09 +02:00
Glenn Jocher
d204a61834
Alert (no detections) ( #3984 )
...
* `Detections()` class `print()` overload
* Update common.py
2021-07-12 19:48:47 +02:00
Glenn Jocher
b3dabdcc38
Update `probability` to `p` ( #3980 )
2021-07-12 15:54:43 +02:00
Glenn Jocher
41fdf9fa53
Created using Colaboratory
2021-07-12 12:43:26 +02:00
KEN
647223a7a8
`Ensemble()` visualize fix ( #3973 )
...
* fix visualize error
* Revert "fix visualize error"
* add visualise profile
2021-07-11 19:47:08 +02:00
Glenn Jocher
a544d59f52
Update requirements.txt `albumentations>=1.0.2` ( #3972 )
2021-07-11 19:07:42 +02:00
Glenn Jocher
90e60b403d
Update `np.random.random()` to `random.random()` ( #3967 )
2021-07-11 16:56:36 +02:00
Glenn Jocher
8298ce5e88
Update `albumentations>=1.0.2` ( #3966 )
2021-07-11 15:49:30 +02:00
Glenn Jocher
80299a57e2
Numerical stability fix for Albumentations ( #3958 )
2021-07-10 19:50:53 +02:00
Glenn Jocher
443af8b25a
Cache v0.4 update ( #3954 )
2021-07-10 14:18:46 +02:00
Glenn Jocher
a26e7de2bf
Update augmentations.py ( #3948 )
2021-07-09 16:45:04 +02:00
Glenn Jocher
248504cf13
Feature visualization improvements 32 ( #3947 )
2021-07-09 15:23:02 +02:00
Glenn Jocher
dabad5793a
Created using Colaboratory
2021-07-08 15:45:53 +02:00
Eldar Kurtic
e7888af94c
Fix inconsistent NMS IoU value for COCO ( #3934 )
...
Evaluation of 'best' and 'last' models will use the same params as the evaluation during the training phase.
This PR fixes https://github.com/ultralytics/yolov5/issues/3907
2021-07-08 15:29:02 +02:00
Glenn Jocher
8c6f9e15bf
Update `dataset_stats()` for zipped datasets ( #3926 )
...
* Update `dataset_stats()` for zipped datasets
@KalenMike
* cleanup
2021-07-08 11:42:30 +02:00
Glenn Jocher
850970e081
`feature_visualization()` CUDA fix ( #3925 )
2021-07-07 16:23:31 +02:00
jmiranda-laplateforme
588094eb7a
Update `setattr()` default for Hub PIL images ( #3923 )
...
Fix inference from PIL source.
2021-07-07 16:13:12 +02:00
Glenn Jocher
411842e058
Fix `torch.hub.list('ultralytics/yolov5')` pathlib bug ( #3921 )
2021-07-07 16:08:42 +02:00
Glenn Jocher
87b094bcbc
Feature visualization update ( #3920 )
...
* Feature visualization update
* Save to jpg (faster)
* Save to png
2021-07-07 15:41:58 +02:00
johnohagan
61047a2b4f
Save PyTorch Hub models to `/root/hub/cache/dir` ( #3904 )
...
* Create hubconf.py
* Add save_dir variable
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-07-07 13:41:46 +02:00
Glenn Jocher
33202b7f0b
YOLOv5 + Albumentations integration ( #3882 )
...
* Albumentations integration
* ToGray p=0.01
* print confirmation
* create instance in dataloader init method
* improved version handling
* transform not defined fix
* assert string update
* create check_version()
* add spaces
* update class comment
2021-07-05 18:01:54 +02:00
Glenn Jocher
6a3ee7cf03
Hub models `map_location=device` ( #3894 )
...
* Hub models `map_location=device`
* cleanup
2021-07-05 16:20:46 +02:00
Glenn Jocher
8930e22cce
Evolution commented `hyp['anchors']` fix ( #3887 )
...
Fix for `KeyError: 'anchors'` error when start hyperparameter evolution:
```bash
python train.py --evolve
```
```bash
Traceback (most recent call last):
File "E:\yolov5\train.py", line 623, in <module>
hyp[k] = max(hyp[k], v[1]) # lower limit
KeyError: 'anchors'
```
2021-07-05 12:48:27 +02:00
Glenn Jocher
3c3f8fbd5d
Improved BGR2RGB speeds ( #3880 )
...
* Update BGR2RGB ops
* speed improvements
* cleanup
2021-07-04 20:12:32 +02:00
Glenn Jocher
9e8fb9fd0b
Create `utils/augmentations.py` ( #3877 )
...
* Create `utils/augmentations.py`
* cleanup
2021-07-04 18:14:04 +02:00
Glenn Jocher
81b31824f5
Models `*.yaml` reformat ( #3875 )
2021-07-04 16:55:08 +02:00
Glenn Jocher
bd88e7f4f2
Created using Colaboratory
2021-07-04 15:55:23 +02:00
ketan-b
9d86b54eb3
Add multi-stream saving feature ( #3864 )
...
* Added the recording feature for multiple streams
Thanks for the very cool repo!!
I was trying to record multiple feeds at the same time, but the current version of the detector only had one video writer and one vid_path!
So the streams were not being saved and only were initialized with one frame and this process didn't record the whole thing.
Fix:
I made a list of `vid_writer` and `vid_path` and the `i` from the loop over the `pred` took care of the writer which need to work!
I hope this helps, Thanks!
* Cleanup list lengths
* batch size variable
* Update datasets.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-07-04 12:55:57 +02:00
san-soucie
d3e9d69850
`--evolve 300` generations CLI argument ( #3863 )
...
* evolve command accepts argument for number of generations
* evolve generations argument used in evolve for loop
* evolve argument boolean fixes
* default to 300 evolve generations
* Update train.py
Co-authored-by: John San Soucie <jsansoucie@whoi.edu>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-07-04 12:14:35 +02:00
Valentin Aliferov
831773f5a2
Add EXIF rotation to YOLOv5 Hub inference ( #3852 )
...
* rotating an image according to its exif tag
* Update common.py
* Update datasets.py
* Update datasets.py
faster
* delete extraneous gpg file
* Update common.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-07-02 13:25:54 +02:00
Glenn Jocher
4717a3b038
Created using Colaboratory
2021-07-02 12:24:27 +02:00
Glenn Jocher
b6863385b5
Created using Colaboratory
2021-07-02 12:23:09 +02:00
Glenn Jocher
c6c88dc601
Copy-Paste augmentation for YOLOv5 ( #3845 )
...
* Copy-paste augmentation initial commit
* if any segments
* Add obscuration rejection
* Add copy_paste hyperparameter
* Update comments
2021-07-01 00:35:04 +02:00
Glenn Jocher
25d1f2932c
Plot `AutoShape()` detections in ascending order ( #3843 )
2021-06-30 15:10:40 +02:00
Feras Oughali
7d6af69638
Fix `LoadStreams()` dataloader frame skip issue ( #3833 )
...
* Update datasets.py to read every 4th frame of streams
* Update datasets.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-30 12:11:29 +02:00
Glenn Jocher
57c5d02bbe
Concise `TransformerBlock()` ( #3821 )
2021-06-29 16:03:10 +02:00
Glenn Jocher
5ea771d93d
Move IoU functions to metrics.py ( #3820 )
2021-06-29 13:18:13 +02:00
Glenn Jocher
3213d8713f
Fix for `dataset_stats()` with updated data.yaml ( #3819 )
...
@KalenMike
2021-06-29 12:44:59 +02:00
Glenn Jocher
02719dde52
Update `feature_visualization()` ( #3807 )
...
* Update `feature_visualization()`
Only plot for data with height, width > 1
* cleanup
* Cleanup
2021-06-28 13:48:14 +02:00
Zigarss
20d45aa4f1
Add feature map visualization ( #3804 )
...
* Add feature map visualization
Add a feature_visualization function to visualize the mid feature map of the model.
* Update yolo.py
* remove boolean from forward and reorder if statement
* remove print from forward
* General cleanup
* Indent
* Update plots.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-28 13:18:45 +02:00
yellowdolphin
3974d725b6
Fix warmup `accumulate` ( #3722 )
...
* gradient accumulation during warmup in train.py
Context:
`accumulate` is the number of batches/gradients accumulated before calling the next optimizer.step().
During warmup, it is ramped up from 1 to the final value nbs / batch_size.
Although I have not seen this in other libraries, I like the idea. During warmup, as grads are large, too large steps are more of on issue than gradient noise due to small steps.
The bug:
The condition to perform the opt step is wrong
> if ni % accumulate == 0:
This produces irregular step sizes if `accumulate` is not constant. It becomes relevant when batch_size is small and `accumulate` changes many times during warmup.
This demo also shows the proposed solution, to use a ">=" condition instead:
https://colab.research.google.com/drive/1MA2z2eCXYB_BC5UZqgXueqL_y1Tz_XVq?usp=sharing
Further, I propose not to restrict the number of warmup iterations to >= 1000. If the user changes hyp['warmup_epochs'], this causes unexpected behavior. Also, it makes evolution unstable if this parameter was to be optimized.
* replace last_opt_step tracking by do_step(ni)
* add docstrings
* move down nw
* Update train.py
* revert math import move
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-28 12:25:13 +02:00
batrlatom
5e976a274d
Fix competition link ( #3799 )
...
* link to the competition repaired
* Update README.md
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-27 15:28:50 +02:00
Glenn Jocher
47543f97b1
FROM nvcr.io/nvidia/pytorch:21.05-py3 ( #3794 )
2021-06-26 17:12:43 +02:00
Glenn Jocher
5e6886c860
Update Dockerfile ( #3792 )
2021-06-26 16:51:17 +02:00
Glenn Jocher
96c87f1711
nvcr.io/nvidia/pytorch:21.06-py3 ( #3791 )
2021-06-26 16:28:06 +02:00
Glenn Jocher
07166ba38c
Update Usage examples ( #3790 )
2021-06-26 16:09:56 +02:00
Glenn Jocher
92d49fde35
Update seeds for single-GPU reproducibility ( #3789 )
...
For seed=0 on single-GPU.
2021-06-26 15:42:40 +02:00
Glenn Jocher
8e7f285051
Fix datasets for aws and get_coco.sh ( #3788 )
...
* merge master
* Update get_coco.sh
2021-06-26 15:29:16 +02:00
Glenn Jocher
bd581b330b
Create hyp.scratch-p6.yaml ( #3787 )
2021-06-26 15:13:06 +02:00
Glenn Jocher
8035b61682
Update objectness IoU sort ( #3786 )
2021-06-26 14:52:18 +02:00
Glenn Jocher
157aa2f886
Objectness IoU Sort ( #3610 )
...
Co-authored-by: U-LAPTOP-5N89P8V7\banhu <ban.huang@foxmail.com>
2021-06-26 14:45:53 +02:00
Glenn Jocher
9dc5d35fce
Update README.md fix banner width ( #3785 )
2021-06-26 13:05:46 +02:00
Glenn Jocher
f89941711c
NGA xView 2018 Dataset Auto-Download ( #3775 )
...
* update clip_coords for numpy
* uncomment
* cleanup
* Add autosplits
* fix
* cleanup
2021-06-26 00:49:05 +02:00
Ayush Chaurasia
ffb6e11050
W&B: Update Tables API and comply with new dataset_check ( #3772 )
...
* Update tables API and windows path fix
* update dataset check
2021-06-25 20:45:33 +02:00
Piotr Skalski
09246a5a33
fix/incorrect_fitness_import ( #3770 )
2021-06-25 16:16:18 +02:00
Glenn Jocher
f2d97ebb25
Remove DDP MultiHeadAttention fix ( #3768 )
2021-06-25 12:52:05 +02:00
Yonghye Kwon
374957317a
Add `xyxy2xywhn()` ( #3765 )
...
* Edit Comments for numpy2torch tensor process
Edit Comments for numpy2torch tensor process
* add xyxy2xywhn
add xyxy2xywhn
* add xyxy2xywhn
* formatting
* pass arguments
pass arguments
* edit comment for xyxy2xywhn()
edit comment for xyxy2xywhn()
* cleanup datasets.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-25 11:47:46 +02:00
Glenn Jocher
03281f8c76
COCO annotations JSON fix ( #3764 )
2021-06-25 01:55:53 +02:00
Glenn Jocher
f79d7479da
Add optional dataset.yaml `path` attribute ( #3753 )
...
* Add optional dataset.yaml `path` attribute
@KalenMike
* pass locals to python scripts
* handle lists
* update coco128.yaml
* Capitalize first letter
* add test key
* finalize GlobalWheat2020.yaml
* finalize objects365.yaml
* finalize SKU-110K.yaml
* finalize SKU-110K.yaml
* finalize VisDrone.yaml
* NoneType fix
* update download comment
* voc to VOC
* update
* update VOC.yaml
* update VOC.yaml
* remove dashes
* delete get_voc.sh
* force coco and coco128 to ../datasets
* Capitalize Argoverse_HD.yaml
* Capitalize Objects365.yaml
* update Argoverse_HD.yaml
* coco segments fix
* VOC single-thread
* update Argoverse_HD.yaml
* update data_dict in test handling
* create root
2021-06-25 01:25:03 +02:00
Yonghye Kwon
417a2f425c
Edit comment ( #3759 )
...
edit comment
2021-06-24 15:57:27 +02:00
Glenn Jocher
ae4261c774
Force non-zero hyp evolution weights `w` ( #3748 )
...
Fix for https://github.com/ultralytics/yolov5/issues/3741
2021-06-23 12:56:22 +02:00
Glenn Jocher
fdc22398fa
Create `data/hyps` directory ( #3747 )
2021-06-23 12:49:38 +02:00
Glenn Jocher
63060910a6
Update `check_datasets()` for dynamic unzip path ( #3732 )
...
@KalenMike
2021-06-22 16:05:38 +02:00
Glenn Jocher
9ac7d388a9
Backwards compatible cache version checks ( #3730 )
2021-06-22 13:50:47 +02:00
fcakyon
0e2d0d54d7
Fix typo ( #3729 )
2021-06-22 13:33:38 +02:00
Glenn Jocher
b83e1a4adc
Fix `img2label_paths()` order ( #3720 )
...
* Fix `img2label_paths()` order
* fix, 1
2021-06-21 22:50:56 +02:00
Glenn Jocher
1f69d12591
Update 4 main ops for paths and .run() ( #3715 )
...
* Add yolov5/ to path
* rename functions to run()
* cleanup
* rename fix
* CI fix
* cleanup find models/export.py
2021-06-21 17:25:04 +02:00
Ayush Chaurasia
75c0ff43af
[x]W&B: Don't resume transfer learning runs ( #3604 )
...
* Allow config cahnge
* Allow val change in wandb config
* Don't resume transfer learning runs
* Add entity in log dataset
2021-06-21 14:00:25 +02:00
Glenn Jocher
e8810a53e8
Update DDP backend `if dist.is_nccl_available()` ( #3705 )
2021-06-20 17:15:42 +02:00
Glenn Jocher
fbf41e0913
Add `train.run()` method ( #3700 )
...
* Update train.py explicit arguments
* Update train.py
* Add run method
2021-06-20 15:06:58 +02:00
Glenn Jocher
c1af67dcd4
Add torch DP warning ( #3698 )
2021-06-19 19:50:46 +02:00
Glenn Jocher
b3e2f4e08d
Eliminate `total_batch_size` variable ( #3697 )
...
* Eliminate `total_batch_size` variable
* cleanup
* Update train.py
2021-06-19 19:14:59 +02:00
Glenn Jocher
fad27c0046
Update DDP for `torch.distributed.run` with `gloo` backend ( #3680 )
...
* Update DDP for `torch.distributed.run`
* Add LOCAL_RANK
* remove opt.local_rank
* backend="gloo|nccl"
* print
* print
* debug
* debug
* os.getenv
* gloo
* gloo
* gloo
* cleanup
* fix getenv
* cleanup
* cleanup destroy
* try nccl
* return opt
* add --local_rank
* add timeout
* add init_method
* gloo
* move destroy
* move destroy
* move print(opt) under if RANK
* destroy only RANK 0
* move destroy inside train()
* restore destroy outside train()
* update print(opt)
* cleanup
* nccl
* gloo with 60 second timeout
* update namespace printing
2021-06-19 16:30:25 +02:00
Glenn Jocher
5bab9a28e4
Reformat ( #3694 )
2021-06-19 14:21:28 +02:00
lb-desupervised
bfb2276b1d
Slightly modify CLI execution ( #3687 )
...
* Slightly modify CLI execution
This simple change makes it easier to run the primary functions of this
repo (train/detect/test) from within Python. An object which represents
`opt` can be constructed and fed to the `main` function of each of these
modules, rather than having to call the lower level functions directly,
or run the module as a script.
* Update export.py
Add CLI parsing update for more convenient module usage within Python.
Co-authored-by: Lewis Belcher <lb@desupervised.io>
2021-06-19 12:06:59 +02:00
Mai Thanh Minh
bf209f6fe9
Skip HSV augmentation when hyperparameters are [0, 0, 0] ( #3686 )
...
* Create shortcircuit in augment_hsv when hyperparameter are zero
* implement faster opt-in
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-19 11:51:21 +02:00
Glenn Jocher
814806c61d
Update cache check ( #3691 )
...
Swapped order of operations for faster first per f527704cd3 (r52362419)
2021-06-19 11:22:09 +02:00
Glenn Jocher
463628a4d8
Update README.md ( #3684 )
2021-06-18 17:12:42 +02:00
ZouJiu1
2729761458
EMA changes for pre-model's batch_size ( #3681 )
...
* EMA changes for pre-model's batch_size
* Update train.py
* Update torch_utils.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-18 16:26:52 +02:00
Glenn Jocher
f527704cd3
Cache v0.3: improved corrupt image/label reporting ( #3676 )
...
* Cache v0.3: improved corrupt image/label reporting
Fix for https://github.com/ultralytics/yolov5/issues/3656#issuecomment-863660899
* cleanup
2021-06-18 10:21:47 +02:00
Glenn Jocher
2296f1546f
Update `WORLD_SIZE` and `RANK` retrieval ( #3670 )
2021-06-17 23:24:30 +02:00
Glenn Jocher
045d5d8629
Update TensorBoard ( #3669 )
2021-06-17 22:12:42 +02:00
Glenn Jocher
fa201f968e
Update `train(hyp, *args)` to accept `hyp` file or dict ( #3668 )
2021-06-17 22:03:25 +02:00
Glenn Jocher
6d6e2ca65f
Update train.py ( #3667 )
2021-06-17 21:32:39 +02:00
Glenn Jocher
ac34834563
Update download_weights.sh comment ( #3662 )
2021-06-17 16:21:10 +02:00
Glenn Jocher
2754adad46
Remove `/weights` directory ( #3659 )
...
* Remove `/weights` directory
* cleanup
2021-06-17 14:44:12 +02:00
Glenn Jocher
9b6dba6207
Update `dataset_stats()` to list of dicts ( #3657 )
...
* Update `dataset_stats()` to list of dicts
@KalenMike
* Update datasets.py
2021-06-17 13:59:52 +02:00
SpongeBab
df7706d802
Update README.md ( #3650 )
...
Be more user-friendly to new users
2021-06-17 12:37:53 +02:00
Mai Thanh Minh
fa29125f18
`is_coco` list fix ( #3646 )
2021-06-16 22:56:16 +02:00
Glenn Jocher
6187edcb53
Update CONTRIBUTING.md ( #3647 )
2021-06-16 19:57:11 +02:00
Glenn Jocher
3ce0db89b0
Update CONTRIBUTING.md ( #3645 )
...
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
* Update CONTRIBUTING.md
2021-06-16 19:48:30 +02:00
xiaowk5516
d808855f77
Assert non-premature end of JPEG images ( #3638 )
...
* premature end of JPEG images
* PEP8 reformat
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-16 13:31:26 +02:00
Glenn Jocher
bb79e13d52
RUN pip install --no-cache -U torch torchvision ( #3637 )
2021-06-16 12:35:33 +02:00
Glenn Jocher
6c0e1d9fd7
Update `verify_image_label()` ( #3635 )
2021-06-16 11:12:15 +02:00
Glenn Jocher
65f81bfefa
Add `**/*.torchscript.pt` ( #3634 )
2021-06-16 10:49:50 +02:00
Glenn Jocher
de56813ba8
FROM nvcr.io/nvidia/pytorch:21.05-py3 ( #3633 )
2021-06-16 10:40:31 +02:00
Glenn Jocher
30e4c4f092
Update README.md ( #3624 )
2021-06-15 15:44:10 +02:00
Glenn Jocher
7d3686a686
Update `check_file()` ( #3622 )
...
* Update `check_file()`
* Update datasets.py
2021-06-15 13:21:04 +02:00
Wei Quan
4c5d9bff80
Fix incorrect end epoch comment ( #3612 )
2021-06-15 11:24:56 +02:00
Ayush Chaurasia
daab682b06
Suppress wandb images size mismatch warning ( #3611 )
...
* supress wandb images size mismatch warning
* supress wandb images size mismatch warning
* PEP8 reformat and optimize imports
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-14 18:54:58 +02:00
Glenn Jocher
239a11c197
Download COCO and VOC by default ( #3608 )
2021-06-14 13:58:54 +02:00
masood azhar
6062319ec3
Update datasets.py ( #3591 )
...
* 'changes-in_dataset'
* Update datasets.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-14 12:28:18 +02:00
Glenn Jocher
f8adee156d
merge develop
2021-06-14 10:45:15 +02:00
Kalen Michael
3133607560
Simplify README.md ( #3530 )
...
* Update README.md
* added hosted images
* added new logo
* testing image hosting
* changed svgs to pngs
* removed old header
* Update README.md
* correct colab image source
* splash.jpg
* rocket and W&B fix
* added contributing template
* added social media to top section
* increased size of top social media
* cleanup and updates
* rearrange quickstarts
* API cleanup
* PyTorch Hub cleanup
* Add tutorials
* cleanup
* update CONTRIBUTING.md
* Update README.md
* update wandb link
* Update README.md
* remove tutorials header
* update environments and integrations
* Comment API image
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* double spaces after section
* Update README.md
* Update README.md
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-13 02:37:20 +02:00
Glenn Jocher
88b1945241
Delete __init__.py ( #3596 )
2021-06-12 15:21:37 +02:00
Glenn Jocher
7a565f130a
Update `dataset_stats()` ( #3593 )
...
@KalenMike this is a PR to add image filenames and labels to our stats dictionary and to save the dictionary to JSON. Save location is next to the train labels.cache file. The single JSON contains all stats for entire dataset.
Usage example:
```python
from utils.datasets import *
dataset_stats('coco128.yaml', verbose=True)
```
2021-06-12 13:26:41 +02:00
Ayush Chaurasia
53d4fc2e26
W&B: Allow changed in config variable #3588
2021-06-11 23:18:57 +02:00
Glenn Jocher
4984cf54be
train.py GPU memory fix ( #3590 )
...
* train.py GPU memory fix
* ema
* cuda
* cuda
* zeros input
* to device
* batch index 0
2021-06-11 20:24:03 +02:00
Glenn Jocher
e8c5237403
ConfusionMatrix `normalize=True` fix ( #3587 )
2021-06-11 11:46:05 +02:00
Glenn Jocher
ec2da4a82c
Add ConfusionMatrix `normalize=True` flag ( #3586 )
2021-06-11 11:37:08 +02:00
Glenn Jocher
46e1fdfbc6
Update stale.yml ( #3585 )
2021-06-11 11:23:39 +02:00
Glenn Jocher
5c32bd3080
Created using Colaboratory
2021-06-10 16:01:34 +02:00
Glenn Jocher
53ed872c28
Update export.py, yolo.py `sys.path.append()` ( #3579 )
2021-06-10 15:35:22 +02:00
Glenn Jocher
095197bd4a
Ignore Seaborn plot warnings ( #3576 )
...
* Ignore Seaborn plot warnings
* Update plots.py
* Update metrics.py
2021-06-10 13:51:29 +02:00
Glenn Jocher
4695ca8314
Refactoring cleanup ( #3565 )
...
* Refactoring cleanup
* Update test.py
2021-06-09 22:50:27 +02:00
Glenn Jocher
0e5cfdbea7
Refactor models/export.py arguments ( #3564 )
...
* Refactor models/export.py arguments
* cleanup
* cleanup
2021-06-09 22:43:46 +02:00
Glenn Jocher
66cf5c28c1
Refactor detect.py arguments ( #3559 )
...
* Refactor detect.py arguments
@SkalskiP @KalenMike
* unused ok
* comment arguments
2021-06-09 22:19:34 +02:00
Glenn Jocher
a9553c04a7
Refactor test.py arguments ( #3558 )
...
* remove opt from test()
* pass kwargs
* update comments
* revert accidental default change
* multiple --img options
* add comments
2021-06-09 21:36:10 +02:00
dependabot[bot]
c6deb73a89
Bump pip from 18.1 to 19.2 in /utils/google_app_engine ( #3561 )
...
Bumps [pip](https://github.com/pypa/pip ) from 18.1 to 19.2.
- [Release notes](https://github.com/pypa/pip/releases )
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst )
- [Commits](https://github.com/pypa/pip/compare/18.1...19.2 )
---
updated-dependencies:
- dependency-name: pip
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-09 21:14:09 +02:00
Glenn Jocher
4ef9261870
Remove redundant speed/study `half` argument ( #3557 )
2021-06-09 16:30:01 +02:00
Glenn Jocher
5948f20a3d
Update test.py profiling ( #3555 )
...
* Update test.py profiling
* half_precision to half
* inplace
2021-06-09 16:25:17 +02:00
Glenn Jocher
8b5086c21b
Multi-GPU default to single device 0 ( #3554 )
...
* Multi-GPU default to single device 0
* Multi-GPU default to single device 0
* add space
2021-06-09 15:31:47 +02:00
Glenn Jocher
63157d214d
Remove `is_coco` argument from `test()` ( #3553 )
2021-06-09 15:09:51 +02:00
Glenn Jocher
958ab92dc1
Remove `opt` from `create_dataloader()`` ( #3552 )
2021-06-09 13:14:56 +02:00
Glenn Jocher
0cfc5b2c18
Update README.md ( #3550 )
...
Add permanent splash URL and update hyperlink from iOS landing page to Ultralytics YOLOv5 landing page at https://ultralytics.com/yolov5
2021-06-09 11:49:25 +02:00
Glenn Jocher
f8ec71e1c2
Update `check_python(minimum=3.6.2)` ( #3548 )
2021-06-09 11:34:15 +02:00
Glenn Jocher
ef0b5c9d29
On-demand `pycocotools` pip install ( #3547 )
2021-06-09 11:22:21 +02:00
Glenn Jocher
1b5edb6f8e
Update `dataset_stats()` for HUB ( #3536 )
...
* Update `dataset_stats()` for HUB
Cleanup of b6fdd2e
* autodownload flag
* Update general.py
* cleanup
2021-06-09 10:56:11 +02:00
Glenn Jocher
b6fdd2e5e5
Create `dataset_stats()` for HUB
2021-06-08 23:09:45 +02:00
Glenn Jocher
ac8691e208
Created using Colaboratory
2021-06-08 19:01:52 +02:00
Glenn Jocher
78cf488556
Created using Colaboratory
2021-06-08 18:54:33 +02:00
Glenn Jocher
c6b51f4189
Update FP16 `--half` argument for test.py and detect.py ( #3532 )
...
* Update FP16 `--half` argument for test.py and detect.py
* Update detect.py
2021-06-08 18:47:13 +02:00
Glenn Jocher
8d52c1c5c5
Update datasets.py ( #3531 )
...
Minor updates to https://github.com/ultralytics/yolov5/pull/3505 , inplace accumulation.
2021-06-08 18:36:40 +02:00
Glenn Jocher
ed651873ff
Merge branch 'develop'
2021-06-08 18:14:18 +02:00
Dean Mark
28bff22df8
Use multi-threading in cache_labels ( #3505 )
...
* Use multi threading in cache_labels
* PEP8 reformat
* Add num_threads
* changed ThreadPool.imap_unordered to Pool.imap_unordered
* Remove inplace additions
* Update datasets.py
refactor initial desc
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-08 18:00:21 +02:00
Glenn Jocher
f3c3d2ce5d
Merge `develop` branch into `master` ( #3518 )
...
* update ci-testing.yml (#3322 )
* update ci-testing.yml
* update greetings.yml
* bring back os matrix
* update ci-testing.yml (#3322 )
* update ci-testing.yml
* update greetings.yml
* bring back os matrix
* Enable direct `--weights URL` definition (#3373 )
* Enable direct `--weights URL` definition
@KalenMike this PR will enable direct --weights URL definition. Example use case:
```
python train.py --weights https://storage.googleapis.com/bucket/dir/model.pt
```
* cleanup
* bug fixes
* weights = attempt_download(weights)
* Update experimental.py
* Update hubconf.py
* return bug fix
* comment mirror
* min_bytes
* Update tutorial.ipynb (#3368 )
add Open in Kaggle badge
* `cv2.imread(img, -1)` for IMREAD_UNCHANGED (#3379 )
* Update datasets.py
* comment
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
* COCO evolution fix (#3388 )
* COCO evolution fix
* cleanup
* update print
* print fix
* Create `is_pip()` function (#3391 )
Returns `True` if file is part of pip package. Useful for contextual behavior modification.
```python
def is_pip():
# Is file in a pip package?
return 'site-packages' in Path(__file__).absolute().parts
```
* Revert "`cv2.imread(img, -1)` for IMREAD_UNCHANGED (#3379 )" (#3395 )
This reverts commit 21a9607e00 .
* Update FLOPs description (#3422 )
* Update README.md
* Changing FLOPS to FLOPs.
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
* Parse URL authentication (#3424 )
* Parse URL authentication
* urllib.parse.unquote()
* improved error handling
* improved error handling
* remove %3F
* update check_file()
* Add FLOPs title to table (#3453 )
* Suppress jit trace warning + graph once (#3454 )
* Suppress jit trace warning + graph once
Suppress harmless jit trace warning on TensorBoard add_graph call. Also fix multiple add_graph() calls bug, now only on batch 0.
* Update train.py
* Update MixUp augmentation `alpha=beta=32.0` (#3455 )
Per VOC empirical results https://github.com/ultralytics/yolov5/issues/3380#issuecomment-853001307 by @developer0hye
* Add `timeout()` class (#3460 )
* Add `timeout()` class
* rearrange order
* Faster HSV augmentation (#3462 )
remove datatype conversion process that can be skipped
* Add `check_git_status()` 5 second timeout (#3464 )
* Add check_git_status() 5 second timeout
This should prevent the SSH Git bug that we were discussing @KalenMike
* cleanup
* replace timeout with check_output built-in timeout
* Improved `check_requirements()` offline-handling (#3466 )
Improve robustness of `check_requirements()` function to offline environments (do not attempt pip installs when offline).
* Add `output_names` argument for ONNX export with dynamic axes (#3456 )
* Add output names & dynamic axes for onnx export
Add output_names and dynamic_axes names for all outputs in torch.onnx.export. The first four outputs of the model will have names output0, output1, output2, output3
* use first output only + cleanup
Co-authored-by: Samridha Shrestha <samridha.shrestha@g42.ai>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
* Revert FP16 `test.py` and `detect.py` inference to FP32 default (#3423 )
* fixed inference bug ,while use half precision
* replace --use-half with --half
* replace space and PEP8 in detect.py
* PEP8 detect.py
* update --half help comment
* Update test.py
* revert space
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
* Add additional links/resources to stale.yml message (#3467 )
* Update stale.yml
* cleanup
* Update stale.yml
* reformat
* Update stale.yml HUB URL (#3468 )
* Stale `github.actor` bug fix (#3483 )
* Explicit `model.eval()` call `if opt.train=False` (#3475 )
* call model.eval() when opt.train is False
call model.eval() when opt.train is False
* single-line if statement
* cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
* check_requirements() exclude `opencv-python` (#3495 )
Fix for 3rd party or contrib versions of installed OpenCV as in https://github.com/ultralytics/yolov5/issues/3494 .
* Earlier `assert` for cpu and half option (#3508 )
* early assert for cpu and half option
early assert for cpu and half option
* Modified comment
Modified comment
* Update tutorial.ipynb (#3510 )
* Reduce test.py results spacing (#3511 )
* Update README.md (#3512 )
* Update README.md
Minor modifications
* 850 width
* Update greetings.yml
revert greeting change as PRs will now merge to master.
Co-authored-by: Piotr Skalski <SkalskiP@users.noreply.github.com>
Co-authored-by: SkalskiP <piotr.skalski92@gmail.com>
Co-authored-by: Peretz Cohen <pizzaz93@users.noreply.github.com>
Co-authored-by: tudoulei <34886368+tudoulei@users.noreply.github.com>
Co-authored-by: chocosaj <chocosaj@users.noreply.github.com>
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
Co-authored-by: Yonghye Kwon <developer.0hye@gmail.com>
Co-authored-by: Sam_S <SamSamhuns@users.noreply.github.com>
Co-authored-by: Samridha Shrestha <samridha.shrestha@g42.ai>
Co-authored-by: edificewang <609552430@qq.com>
2021-06-08 10:22:10 +02:00
Glenn Jocher
c058a61e3b
Update greetings.yml
...
revert greeting change as PRs will now merge to master.
2021-06-08 10:11:06 +02:00
Glenn Jocher
abb2a96e91
Update README.md ( #3512 )
...
* Update README.md
Minor modifications
* 850 width
2021-06-08 00:39:02 +02:00
Glenn Jocher
d986145b9a
Reduce test.py results spacing ( #3511 )
2021-06-07 23:21:34 +02:00
Glenn Jocher
eede7dc48c
Update tutorial.ipynb ( #3510 )
2021-06-07 22:52:16 +02:00
Yonghye Kwon
8d1ddc93c7
Earlier `assert` for cpu and half option ( #3508 )
...
* early assert for cpu and half option
early assert for cpu and half option
* Modified comment
Modified comment
2021-06-07 18:56:41 +02:00
Glenn Jocher
3f03acb3db
check_requirements() exclude `opencv-python` ( #3507 )
...
Duplicate of #3495 merged to `develop`. This PR will be merged to `master`.
Fixes https://github.com/ultralytics/yolov5/issues/3494 .
2021-06-07 15:38:51 +02:00
Glenn Jocher
90b7895d65
check_requirements() exclude `opencv-python` ( #3495 )
...
Fix for 3rd party or contrib versions of installed OpenCV as in https://github.com/ultralytics/yolov5/issues/3494 .
2021-06-07 10:03:47 +02:00
Yonghye Kwon
a1c3572bc9
Explicit `model.eval()` call `if opt.train=False` ( #3475 )
...
* call model.eval() when opt.train is False
call model.eval() when opt.train is False
* single-line if statement
* cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-06 18:39:36 +02:00
Glenn Jocher
cf4f95bc5f
Stale `github.actor` bug fix ( #3483 )
2021-06-06 18:06:24 +02:00
Glenn Jocher
3597d280ee
Update stale.yml HUB URL ( #3468 )
2021-06-04 23:49:43 +02:00
Glenn Jocher
739451da5a
Add additional links/resources to stale.yml message ( #3467 )
...
* Update stale.yml
* cleanup
* Update stale.yml
* reformat
2021-06-04 23:45:24 +02:00
edificewang
b31229ae89
Revert FP16 `test.py` and `detect.py` inference to FP32 default ( #3423 )
...
* fixed inference bug ,while use half precision
* replace --use-half with --half
* replace space and PEP8 in detect.py
* PEP8 detect.py
* update --half help comment
* Update test.py
* revert space
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-04 22:28:34 +02:00
Sam_S
044daafd9d
Add `output_names` argument for ONNX export with dynamic axes ( #3456 )
...
* Add output names & dynamic axes for onnx export
Add output_names and dynamic_axes names for all outputs in torch.onnx.export. The first four outputs of the model will have names output0, output1, output2, output3
* use first output only + cleanup
Co-authored-by: Samridha Shrestha <samridha.shrestha@g42.ai>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-06-04 22:01:58 +02:00
Glenn Jocher
317f2ccc9d
Improved `check_requirements()` offline-handling ( #3466 )
...
Improve robustness of `check_requirements()` function to offline environments (do not attempt pip installs when offline).
2021-06-04 21:34:36 +02:00
Glenn Jocher
563ea9475a
Add `check_git_status()` 5 second timeout ( #3464 )
...
* Add check_git_status() 5 second timeout
This should prevent the SSH Git bug that we were discussing @KalenMike
* cleanup
* replace timeout with check_output built-in timeout
2021-06-04 21:17:36 +02:00
Yonghye Kwon
c37f072ba7
Faster HSV augmentation ( #3462 )
...
remove datatype conversion process that can be skipped
2021-06-04 20:02:20 +02:00
Glenn Jocher
d40481acc5
Add `timeout()` class ( #3460 )
...
* Add `timeout()` class
* rearrange order
2021-06-04 15:23:33 +02:00
Glenn Jocher
8e3b4a0bf3
Update MixUp augmentation `alpha=beta=32.0` ( #3455 )
...
Per VOC empirical results https://github.com/ultralytics/yolov5/issues/3380#issuecomment-853001307 by @developer0hye
2021-06-04 12:47:53 +02:00
Glenn Jocher
4aa2959101
Suppress jit trace warning + graph once ( #3454 )
...
* Suppress jit trace warning + graph once
Suppress harmless jit trace warning on TensorBoard add_graph call. Also fix multiple add_graph() calls bug, now only on batch 0.
* Update train.py
2021-06-04 12:37:41 +02:00
Glenn Jocher
af2bc3a1c3
Add FLOPs title to table ( #3453 )
2021-06-04 11:46:40 +02:00
Glenn Jocher
f8651c388f
Parse URL authentication ( #3424 )
...
* Parse URL authentication
* urllib.parse.unquote()
* improved error handling
* improved error handling
* remove %3F
* update check_file()
2021-06-03 18:44:58 +02:00
chocosaj
3cb9ad4fc4
Update FLOPs description ( #3422 )
...
* Update README.md
* Changing FLOPS to FLOPs.
Co-authored-by: BuildTools <unconfigured@null.spigotmc.org>
2021-06-03 12:31:51 +02:00
Glenn Jocher
fdbe527dc0
Revert "`cv2.imread(img, -1)` for IMREAD_UNCHANGED ( #3379 )" ( #3395 )
...
This reverts commit 21a9607e00 .
2021-05-31 10:39:00 +02:00
Glenn Jocher
d833ab3d25
Create `is_pip()` function ( #3391 )
...
Returns `True` if file is part of pip package. Useful for contextual behavior modification.
```python
def is_pip():
# Is file in a pip package?
return 'site-packages' in Path(__file__).absolute().parts
```
2021-05-30 20:52:42 +02:00
Glenn Jocher
4b52e19a61
COCO evolution fix ( #3388 )
...
* COCO evolution fix
* cleanup
* update print
* print fix
2021-05-29 22:49:34 +02:00
tudoulei
21a9607e00
`cv2.imread(img, -1)` for IMREAD_UNCHANGED ( #3379 )
...
* Update datasets.py
* comment
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-05-29 21:12:01 +02:00
Peretz Cohen
57f773b0ae
Update tutorial.ipynb ( #3368 )
...
add Open in Kaggle badge
2021-05-29 20:49:24 +02:00
Glenn Jocher
ba6f3f974b
Enable direct `--weights URL` definition ( #3373 )
...
* Enable direct `--weights URL` definition
@KalenMike this PR will enable direct --weights URL definition. Example use case:
```
python train.py --weights https://storage.googleapis.com/bucket/dir/model.pt
```
* cleanup
* bug fixes
* weights = attempt_download(weights)
* Update experimental.py
* Update hubconf.py
* return bug fix
* comment mirror
* min_bytes
2021-05-28 15:18:44 +02:00
SkalskiP
b78e30dd2b
Merge remote-tracking branch 'origin/develop' into develop
2021-05-28 14:44:45 +02:00
Piotr Skalski
3fea068384
update ci-testing.yml ( #3322 )
...
* update ci-testing.yml
* update greetings.yml
* bring back os matrix
2021-05-28 14:44:24 +02:00
Piotr Skalski
bb131238aa
update ci-testing.yml ( #3322 )
...
* update ci-testing.yml
* update greetings.yml
* bring back os matrix
2021-05-27 17:01:36 +02:00
Glenn Jocher
4d4a2b0520
Ignore blank lines in `*.txt` labels ( #3366 )
...
Fix for https://github.com/ultralytics/yolov5/issues/958#issuecomment-849512083
2021-05-27 14:31:26 +02:00
WangChaofeng
ef4d53818d
ONNX export in .train() mode fix ( #3362 )
2021-05-27 14:10:14 +02:00
Glenn Jocher
2435bfe896
Add URL download to check_file() ( #3330 )
...
* Add URL file download to check_file()
* cleanup
* pathlib bug fix
2021-05-26 15:51:49 +02:00
Glenn Jocher
c6b5bfca85
Updated cache v0.2 with `hashlib` ( #3350 )
...
* Update cache v0.2 to include parent hash
Possible fix for https://github.com/ultralytics/yolov5/issues/3349
* Update datasets.py
2021-05-26 14:26:52 +02:00
Glenn Jocher
1f8d716ec9
yolo.py header ( #3347 )
2021-05-26 12:06:08 +02:00
Glenn Jocher
aad99b63d6
TensorBoard DP/DDP graph fix ( #3325 )
2021-05-25 11:45:24 +02:00
Glenn Jocher
407dc5008e
Update README.md ( #3320 )
2021-05-24 17:17:32 +02:00
Glenn Jocher
61ea23c3fe
Implement `@torch.no_grad()` decorator ( #3312 )
...
* `@torch.no_grad()` decorator
* Update detect.py
2021-05-24 13:23:09 +02:00
Glenn Jocher
73a92dc1b6
Explicit `git clone` master ( #3311 )
2021-05-24 12:42:36 +02:00
Glenn Jocher
9f3a388cea
Improved check_requirements() robustness ( #3298 )
...
Add try: except clause on missing requirements install to catch install failures. Prompted by Ultralytics YOLOv5 API failure on Cython.
2021-05-23 18:00:23 +02:00
Glenn Jocher
ee24ae11ea
Comment Cython ( #3297 )
...
Ultralytics REST API fix.
2021-05-23 17:53:54 +02:00
yeric1789
a039b7796d
PyTorch Hub `crops = results.crop()` return values ( #3282 )
...
* Changing save_one_box
Made to work with other changes to common.py
* PEP8 and single line BGR
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-05-23 16:00:55 +02:00
Glenn Jocher
0e2f2cbb51
Update LoadStreams init fallbacks ( #3295 )
2021-05-23 14:55:42 +02:00
Charles Frye
19100ba007
Improves docs and handling of entities and resuming by WandbLogger ( #3264 )
...
* adds latest tag to match wandb defaults
* adds entity handling, 'last' tag
* fixes bug causing finished runs to resume
* removes redundant "last" tag for wandb artifact
2021-05-21 23:42:53 +02:00
Glenn Jocher
dd7f0b7e05
Fix TypeError: 'PosixPath' object is not iterable ( #3285 )
2021-05-21 23:35:31 +02:00
Glenn Jocher
683cefead4
YouTube stream ending fix ( #3277 )
...
* YouTube stream ending fix
Properly terminates YouTube streams on video end. Should resolve issues #2769 and #3220 .
* Update datasets.py
2021-05-21 16:51:07 +02:00
Glenn Jocher
f3402353fb
check `batch_size % utilized_device_count` ( #3276 )
...
Bug fix to check batch_size divisibility of utilized CUDA device count vs total system CUDA device count.
2021-05-21 15:20:03 +02:00
Glenn Jocher
10d56d784e
Assert `--image-weights` not combined with DDP ( #3275 )
2021-05-21 14:46:42 +02:00
Glenn Jocher
7b36e38cf8
Check CoreML models.train() mode ( #3262 )
...
* Check CoreML models.train() mode
* Update export.py
2021-05-20 15:22:36 +02:00
Glenn Jocher
7b863a34dc
Add Cython ( #3217 )
...
Cython required by pycocotools in certain cases, i.e. https://github.com/cocodataset/cocoapi/issues/172
2021-05-19 19:58:53 +02:00
yeric1789
7b0eb952ca
`plot_one_box()` default `color=(128, 128, 128)` ( #3240 )
...
* Color can be none by default
* `plot_one_box()` default `color=(128, 128, 128)`
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-05-19 19:47:36 +02:00
Glenn Jocher
b7cd1f540d
TensorBoard add_graph() fix ( #3236 )
2021-05-19 13:51:55 +02:00
Adrian Holovaty
3f74cd9ed1
Parameterize max_det + inference default at 1000 ( #3215 )
...
* Added max_det parameters in various places
* 120 character line
* PEP8
* 120 character line
* Update inference default to 1000 instances
* Update inference default to 1000 instances
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-05-17 22:47:44 +02:00
Glenn Jocher
13a1c72699
Update datasets.py ( #3216 )
2021-05-17 22:24:26 +02:00
Glenn Jocher
ffb47ffbeb
Silent Patches Bug Fix ( #3214 )
2021-05-17 17:47:30 +02:00
Glenn Jocher
36b0a9e7d0
Add CAP_PROP_FRAME_COUNT for YouTube sources ( #3193 )
2021-05-17 12:27:40 +02:00
Glenn Jocher
ae53f50ae7
Plot labels histogram colors ( #3192 )
2021-05-17 11:44:22 +02:00
Christoph Gerum
b133baa336
Add `device` argument to PyTorch Hub models ( #3104 )
...
* Allow to manual selection of device for torchhub models
* single line device
nested torch.device(torch.device(device)) ok
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-05-16 17:41:26 +02:00
Cristi Fati
9ab561dbfc
Parameterize ONNX `--opset-version` ( #3154 )
2021-05-16 16:13:03 +02:00
Yonghye Kwon
be86c21c73
rename class autoShape -> AutoShape ( #3173 )
...
* rename class autoShape -> AutoShape
follow other class naming convention
* rename class autoShape -> AutoShape
follow other classes' naming convention
* rename class autoShape -> AutoShape
2021-05-16 15:46:45 +02:00
Glenn Jocher
17b0f71538
SKU-110K CVPR2019 Dataset Auto-Download ( #3167 )
...
* SKU-110K CVPR2019 Dataset Auto-Download
This PR adds the **SKU-110K CVPR2019 Dataset** https://github.com/eg4000/SKU110K_CVPR19 to the list of YOLOv5 🚀 auto-download list.
- [x] [COCO](https://cocodataset.org/#home )
- [x] [COCO128](https://www.kaggle.com/ultralytics/coco128 )
- [x] [VOC](http://host.robots.ox.ac.uk/pascal/VOC/ )
- [x] [Argoverse-HD](http://www.cs.cmu.edu/~mengtial/proj/streaming/ )
- [x] [VisDrone2019-DET](https://github.com/VisDrone/VisDrone-Dataset )
- [x] [GlobalWheat-2020](http://www.global-wheat.com/ )
- [ ] [KITTI](https://www.kaggle.com/twaldo/kitti-object-detection )
- [x] [SKU110](https://github.com/eg4000/SKU110K_CVPR19 ) (grocery store items)
- [ ] [CityScapes](https://www.cityscapes-dataset.com/ )
- [x] [Objects365](https://www.objects365.org/overview.html )
- [ ] [OpenImages](https://storage.googleapis.com/openimages/web/index.html )
```yaml
# SKU-110K retail items dataset https://github.com/eg4000/SKU110K_CVPR19
# Train command: python train.py --data SKU-110K.yaml
# Default dataset location is next to YOLOv5:
# /parent_folder
# /datasets/SKU-110K
# /yolov5
```
* Update SKU-110K.yaml
* Update SKU-110K.yaml
2021-05-14 17:05:26 +02:00
Glenn Jocher
06372b1465
Scope all hubconf.py imports for torch.hub.list() ( #3145 )
...
* Scope all hubconf.py imports for torch.hub.list()
* Update hubconf.py
2021-05-12 20:28:26 +02:00
Glenn Jocher
1935266951
Scope imports for torch.hub.list() improvement ( #3144 )
2021-05-12 20:18:32 +02:00
Glenn Jocher
b098600763
Update requirements.txt `onnx>=1.9.0` ( #3143 )
2021-05-12 19:56:12 +02:00
Glenn Jocher
f12cef85a3
TorchScript, ONNX, CoreML Export tutorial title ( #3142 )
2021-05-12 19:49:12 +02:00
Cristi Fati
d9b4e6b748
Add `--include torchscript onnx coreml` argument ( #3137 )
...
* Allow users to skip exporting in formats that they don't care about
* Correct comments
* Update export.py
renamed --skip-format to --exclude
* Switched format from exclude to include (as instructed by @glenn-jocher)
* cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-05-12 19:46:32 +02:00
KC-Zhang
bd6f6a784a
Add yolov5/__init__.py ( #3127 )
2021-05-12 18:50:35 +02:00
Glenn Jocher
7918eed040
Update https://ultralytics.com/images/zidane.jpg ( #3140 )
2021-05-12 18:30:31 +02:00
Glenn Jocher
c1c7eb023f
Update JSON response ( #3139 )
2021-05-12 18:23:50 +02:00
Glenn Jocher
52c05707d6
Update Colors() ( #3046 )
...
* Update Colors()
* update colors
* update colors
2021-05-12 17:41:11 +02:00
Glenn Jocher
abfcf9eb79
Replace print() with logging.info() in trainloader ( #3103 )
...
Might indirectly help #3095 by providing better visibility on source of corruption.
2021-05-10 17:07:16 +02:00
Glenn Jocher
25f8ab835e
detect.py streaming source `--save-crop` bug fix ( #3102 )
...
* detect.py streaming source --save-crop bug fix
Possible fix for #3100 .
* () parenthesis
2021-05-10 16:39:37 +02:00
Glenn Jocher
d6a71ae5f2
Update GlobalWheat2020.yaml test: # 1276 images ( #3101 )
2021-05-10 16:04:10 +02:00
Glenn Jocher
60fe54449d
Update train.py ( #3099 )
2021-05-10 15:26:23 +02:00
Glenn Jocher
525f4f86a9
Add --optimize argument ( #3093 )
...
Fix for c++ runtime errors in https://github.com/ultralytics/yolov5/issues/2973
2021-05-10 12:13:44 +02:00
Glenn Jocher
57b0d3a605
Add check_python() ( #3088 )
...
* Add check_python()
Checks python version against minimum version of 3.7.0.
* remove packaging dependency
* refactor import
2021-05-09 15:33:38 +02:00
Glenn Jocher
91547edec1
Update detect.py ( #3087 )
...
* Update detect.py
* Update detect.py
2021-05-09 13:01:58 +02:00
Glenn Jocher
251aeafcb1
Update P5 + P6 model ensembling ( #3082 )
2021-05-08 19:06:12 +02:00
Ayush Chaurasia
d2a17289c9
Explicitly convert artifact path to posix_path ( #3067 )
...
* Explicitly convert artifact path to posix_path
* Remove redudant str() casting
2021-05-07 19:53:56 +02:00
Glenn Jocher
e97d129db4
Update export.py with --train mode argument ( #3066 )
2021-05-07 13:10:07 +02:00
kepler62f
f2de1ad2aa
Comment fix ( #3058 )
...
Co-authored-by: kepler62f <>
2021-05-07 12:28:55 +02:00
Glenn Jocher
3ef3a95cfa
Do not optimize CoreML TorchScript model ( #3055 )
2021-05-06 17:23:33 +02:00
Jiacong Fang
b8be76f915
Add get_coco128.sh for downloading the coco128 dataset ( #3047 )
...
* Add get_coco128.sh
* Update get_coco128.sh
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-05-06 13:44:14 +02:00
Ayush Chaurasia
b18ca31ff5
use check_file for --data ( #3035 )
2021-05-05 14:28:19 +02:00
Glenn Jocher
85b6fdda0f
FROM nvcr.io/nvidia/pytorch:21.03-py3
...
Issues with 21.04
2021-05-05 01:00:12 +02:00
Glenn Jocher
4c7d686d7e
FROM nvcr.io/nvidia/pytorch:21.04-py3 ( #3030 )
2021-05-05 00:16:35 +02:00
Glenn Jocher
8cab907f60
download() ThreadPool update ( #3027 )
...
* download() ThreadPool update
* update train image count
* cid + 1
2021-05-04 23:37:31 +02:00
Glenn Jocher
5189b3addb
Objects365 Update
2021-05-04 02:25:14 +02:00
jylink
b292837e36
Fix ONNX export using --grid --simplify --dynamic simultaneously ( #2982 )
...
* Update yolo.py
* Update export.py
* fix export grid
* Update export.py, remove detect export attribute
* rearrange if order
* remove --grid, default inplace=False
* rename exp_dynamic to onnx_dynamic, comment
* replace bs with 1 in anchor_grid[i] index 0
* Update export.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-05-03 19:01:29 +02:00
Glenn Jocher
41cc7caee6
Add NMS threshold checks ( #3020 )
...
* Add NMS threshold checks
* fix
2021-05-03 15:07:20 +02:00
Glenn Jocher
fcd57028d2
Add is_colab() function ( #3018 )
2021-05-03 12:37:50 +02:00
Hodovo
e2a80c6c0f
Add support for FP16 (half) to export.py ( #3010 )
...
* Added support for fp16 (half) to export.py
* minimize code additions
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-05-02 22:42:33 +02:00
Glenn Jocher
31ee54c28c
Hubconf.py bug fix ( #3007 )
2021-05-01 18:15:17 +02:00
Glenn Jocher
7c89c829e3
cleanup
2021-05-01 17:48:12 +02:00
Glenn Jocher
c1a44ed9c5
Update hubconf.py for unified loading ( #3005 )
2021-05-01 17:35:02 +02:00
Glenn Jocher
37eaffec7d
Curl update ( #3004 )
...
* Curl update
* Curl update
2021-05-01 17:29:51 +02:00
Glenn Jocher
4d7bca7648
Add unzip flag to download() ( #3002 )
2021-05-01 12:37:41 +02:00
Glenn Jocher
f55730ee9c
Objects365 bug fix
2021-05-01 01:03:09 +02:00
Glenn Jocher
54652fe3ff
Objects365 update
2021-05-01 00:16:58 +02:00
Ayush Chaurasia
801b469878
Improve performance of dataset Logger ( #2943 )
...
* Improve performance of Dataset Logger
* Fix scaling bug
2021-04-30 21:54:26 +02:00
Glenn Jocher
d08575ee5e
PyTorch Hub load directly when possible ( #2986 )
2021-04-30 14:59:51 +02:00
Glenn Jocher
9b91db6d1a
Created using Colaboratory
2021-04-30 13:15:31 +02:00
jluntamazon
41f5cc5637
YOLOv5 AWS Inferentia Inplace compatibility updates ( #2953 )
...
* Added flag to enable/disable all inplace and assignment operations
* Removed shape print statements
* Scope Detect/Model import to avoid circular dependency
* PEP8
* create _descale_pred()
* replace lost space
* replace list with tuple
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-30 12:54:48 +02:00
Glenn Jocher
955eea8b96
Make cache saving optional ( #2977 )
2021-04-30 00:56:44 +02:00
Glenn Jocher
a833ee2a46
Update check_requirements() exclude list ( #2974 )
2021-04-29 21:16:23 +02:00
Ferdinand Loesch
dbce1bc54c
Objects365 Dataset ( #2932 )
...
* add object365
* ADD CONVERSION SCRIPT
* fix transcript
* Reformat and simplify
* spelling
* Update get_objects365.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-29 20:43:33 +02:00
Glenn Jocher
33712d6dd0
Global Wheat Detection 2020 Dataset Auto-Download ( #2968 )
...
* Create GlobalWheat2020.yaml
* Update and rename visdrone.yaml to VisDrone.yaml
* Update GlobalWheat2020.yaml
2021-04-28 20:11:02 +02:00
Glenn Jocher
2c7c075fb1
Update restapi.py ( #2967 )
2021-04-28 17:50:07 +02:00
Glenn Jocher
57812df68c
New Colors() class ( #2963 )
2021-04-28 16:05:14 +02:00
Glenn Jocher
4200674a13
Add yolov5/ to sys.path() for *.py subdir exec ( #2949 )
...
* Add yolov5/ to sys.path() for *.py subdir exec
* Update export.py
2021-04-27 17:02:07 +02:00
Glenn Jocher
4890499344
Improved yolo.py profiling ( #2940 )
...
* Improved yolo.py profiling
Improved column order and labelling.
* Update yolo.py
2021-04-26 23:58:21 +02:00
BZFYS
6c1290fe03
Update README.md ( #2934 )
...
* Update README.md
dependencies:
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
ImportError: libXrender.so.1: cannot open shared object file: No such file or directory
* replace older apt-get with apt
Code commented for now until a better understanding of the issue, and also code is not cross-platform compatible.
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-26 23:56:25 +02:00
Glenn Jocher
1849916726
Check_requirements() enclosing apostrophe bug fix ( #2929 )
...
This fixes a bug where the '>' symbol in python package requirements was not running correctly with subprocess.check_output() commands.
2021-04-25 23:33:25 +02:00
Glenn Jocher
9c7bb5a52c
ACON Activation batch-size 1 bug patch ( #2901 )
...
* ACON Activation batch-size 1 bug path
This is not a great solution to https://github.com/nmaac/acon/issues/4 but it's all I could think of at the moment.
WARNING: YOLOv5 models with MetaAconC() activations are incapable of running inference at batch-size 1 properly due to a known bug in https://github.com/nmaac/acon/issues/4 with no known solution.
* Update activations.py
* Update activations.py
* Update activations.py
* Update activations.py
2021-04-25 22:54:07 +02:00
NanoCode012
c0d3f80544
Add verbose option to pytorch hub models ( #2926 )
...
* Add verbose and update print to logging
* Fix positonal param
* Revert auto formatting changes
* Update hubconf.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-25 22:01:05 +02:00
Glenn Jocher
3665c0f59b
test.py native --single-cls ( #2928 )
2021-04-25 20:05:16 +02:00
albinxavi
aa78069c58
Change default value of hide-conf argument to false ( #2925 )
2021-04-25 14:18:14 +02:00
albinxavi
eae28a93b0
Change default value of hide label argument to False ( #2923 )
2021-04-24 19:58:02 +02:00
Glenn Jocher
de19d396e7
Update visdrone.yaml ( #2921 )
2021-04-24 16:28:27 +02:00
Glenn Jocher
45632b2704
Update download() for tar.gz files ( #2919 )
...
* Update download() for tar.gz files
* Update general.py
2021-04-24 15:53:15 +02:00
Glenn Jocher
1b1ab4cca2
Add file_size() function ( #2911 )
...
* Add file_size() function
* Update export.py
2021-04-24 01:31:11 +02:00
Glenn Jocher
646386ff09
Update export.py for 2 dry runs ( #2910 )
...
* Update export.py for 2 dry runs
* Update export.py
2021-04-24 00:10:38 +02:00
Glenn Jocher
a2a514dec8
Update export.py ( #2909 )
2021-04-23 23:50:02 +02:00
Glenn Jocher
28db237639
Default optimize_for_mobile() on TorchScript models ( #2908 )
...
Per https://pytorch.org/tutorials/recipes/script_optimized.html this should improve performance on torchscript models (and maybe coreml models also since coremltools operates on a torchscript model input, though this still requires testing).
2021-04-23 21:21:58 +02:00
Maximilian Peters
f662c18507
Add detect.py --hide-conf --hide-labels --line-thickness options ( #2658 )
...
* command line option for line thickness and hiding labels
* command line option for line thickness and hiding labels
* command line option for line thickness and hiding labels
* command line option for line thickness and hiding labels
* command line option for line thickness and hiding labels
* command line option for hiding confidence values
* Update detect.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-23 21:07:48 +02:00
Glenn Jocher
14d2d2d75f
Update google_utils.py ( #2900 )
2021-04-22 20:27:32 +02:00
Glenn Jocher
cdb678f418
Update yolo.py ( #2899 )
2021-04-22 19:27:21 +02:00
fcakyon
b40dd99167
Explicit opt function arguments ( #2817 )
...
* more explicit function arguments
* fix typo in detect.py
* revert import order
* revert import order
* remove default value
2021-04-22 18:17:30 +02:00
Glenn Jocher
264d860f8d
ACON activation function ( #2893 )
...
* ACON Activation Function
## 🚀 Feature
There is a new activation function [ACON (CVPR 2021)](https://arxiv.org/pdf/2009.04759.pdf ) that unifies ReLU and Swish.
ACON is simple but very effective, code is here: https://github.com/nmaac/acon/blob/main/acon.py#L19

The improvements are very significant:

## Alternatives
It also has an enhanced version meta-ACON that uses a small network to learn beta explicitly, which may influence the speed a bit.
## Additional context
[Code](https://github.com/nmaac/acon ) and [paper](https://arxiv.org/pdf/2009.04759.pdf ).
* Update activations.py
2021-04-22 17:26:05 +02:00
r-blmnr
0395e39fd0
Uppercase model filenames enabled ( #2890 )
2021-04-22 16:51:21 +02:00
Glenn Jocher
78fd077657
VisDrone2019-DET Dataset Auto-Download ( #2882 )
...
* VisDrone Dataset Auto-Download
* add visdrone.yaml
* cleanup
* add VisDrone2019-DET-test-dev
* cleanup VOC
2021-04-22 12:10:26 +02:00
Michael Heilig
d48a34dca7
bug fix: switched rows and cols for correct detections in confusion matrix ( #2883 )
2021-04-22 00:49:55 +02:00
JoshSong
5f7d39fede
Cleanup load_image() ( #2871 )
...
* don't resize up in load_image if augmenting
* cleanup
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-21 15:50:28 +02:00
Glenn Jocher
f7bc685c2c
Implement yaml.safe_load() ( #2876 )
...
* Implement yaml.safe_load()
* yaml.safe_dump()
2021-04-21 14:34:45 +02:00
Burhan
c949fc86d1
Detection cropping+saving feature addition for detect.py and PyTorch Hub ( #2827 )
...
* Update detect.py
* Update detect.py
* Update greetings.yml
* Update cropping
* cleanup
* Update increment_path()
* Update common.py
* Update detect.py
* Update detect.py
* Update detect.py
* Update common.py
* cleanup
* Update detect.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-20 23:51:08 +02:00
Glenn Jocher
c5c647e281
Update increment_path() to handle file paths ( #2867 )
2021-04-20 19:47:07 +02:00
Tim Stokman
1df8c6c963
Fix ONNX dynamic axes export support with onnx simplifier, make onnx simplifier optional ( #2856 )
...
* Ensure dynamic export works succesfully, onnx simplifier optional
* Update export.py
* add dashes
Co-authored-by: Tim <tim.stokman@hal24k.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-20 13:54:03 +02:00
Glenn Jocher
238583b7d5
Update FUNDING.yml ( #2833 )
...
* Update FUNDING.yml
* move FUNDING.yml to ./github
2021-04-18 14:40:58 +02:00
Glenn Jocher
803f51bcee
Create FUNDING.yml ( #2832 )
2021-04-18 14:28:27 +02:00
Glenn Jocher
c15e25c40f
PyTorch Hub cv2 .save() .show() bug fix ( #2831 )
...
* PyTorch Hub cv2 .save() .show() bug fix
cv2.rectangle() was failing on non-contiguous np array inputs. This checks for contiguous arrays and applies is necessary:
```python
imgs[i] = im if im.data.contiguous else np.ascontiguousarray(im) # update
```
* Update plots.py
```python
assert im.data.contiguous, 'Image not contiguous. Apply np.ascontiguousarray(im) to plot_on_box() input image.'
```
* Update hubconf.py
Expand CI tests to OpenCV image.
2021-04-18 13:47:40 +02:00
Glenn Jocher
aff03be35a
YouTube Bug Fix ( #2818 )
...
Fix for #2810
```shell
python detect.py --source 0
```
introduced by YouTube Livestream Detection PR #2752
2021-04-16 17:58:28 +02:00
Glenn Jocher
1f3e482bce
ONNX Simplifier ( #2815 )
...
* ONNX Simplifier
Add ONNX Simplifier to ONNX export pipeline in export.py. Will auto-install onnx-simplifier if onnx is installed but onnx-simplifier is not.
* Update general.py
2021-04-16 14:03:27 +02:00
Glenn Jocher
e5d71223b8
Update README.md
2021-04-15 16:45:50 +02:00
Robin
1479737064
Flask REST API Example ( #2732 )
...
* add files
* Update README.md
* Update README.md
* Update restapi.py
pretrained=True and model.eval() are used by default when loading a model now, so no need to call them manually.
* PEP8 reformat
* PEP8 reformat
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-15 13:26:08 +02:00
Glenn Jocher
1487bc84ff
Update README.md
2021-04-12 13:27:40 +02:00
Glenn Jocher
860ca98832
Created using Colaboratory
2021-04-12 13:10:08 +02:00
Glenn Jocher
cac8a765c8
Created using Colaboratory
2021-04-12 13:02:40 +02:00
Glenn Jocher
2eab46e2cf
Update tutorial.ipynb
2021-04-12 12:33:04 +02:00
Glenn Jocher
6b718e9127
Created using Colaboratory
2021-04-12 12:31:28 +02:00
Glenn Jocher
54d65160b7
Update tutorial.ipynb
2021-04-12 12:26:28 +02:00
Glenn Jocher
0f395b3e3b
YOLOv5 v5.0 Release patch 1 ( #2764 )
...
* torch.jit.trace(model, img, strict=False)
* Update check_file()
* Update hubconf.py
* Update README.md
2021-04-11 23:11:43 +02:00
Glenn Jocher
f5b8f7d54c
YOLOv5 v5.0 Release ( #2762 )
2021-04-11 19:23:47 +02:00
Ben Milanko
e2b7bc0b32
YouTube Livestream Detection ( #2752 )
...
* Youtube livestream detection
* dependancy update to auto install pafy
* Remove print
* include youtube_dl in deps
* PEP8 reformat
* youtube url check fix
* reduce lines
* add comment
* update check_requirements
* stream framerate fix
* Update README.md
* cleanup
* PEP8
* remove cap.retrieve() failure code
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-11 18:53:40 +02:00
Glenn Jocher
9029759cb3
Created using Colaboratory
2021-04-11 16:28:32 +02:00
Glenn Jocher
6dd1083bbb
Tensorboard model visualization bug fix ( #2758 )
...
This fix should allow for visualizing YOLOv5 model graphs correctly in Tensorboard by uncommenting line 335 in train.py:
```python
if tb_writer:
tb_writer.add_graph(torch.jit.trace(model, imgs, strict=False), []) # add model graph
```
The problem was that the detect() layer checks the input size to adapt the grid if required, and tracing does not seem to like this shape check (even if the shape is fine and no grid recomputation is required). The following will warn:
0cae7576a9/train.py (L335)
Solution is below. This is a YOLOv5s model displayed in TensorBoard. You can see the Detect() layer merging the 3 layers into a single output for example, and everything appears to work and visualize correctly.
```python
tb_writer.add_graph(torch.jit.trace(model, imgs, strict=False), [])
```
<img width="893" alt="Screenshot 2021-04-11 at 01 10 09" src="https://user-images.githubusercontent.com/26833433/114286928-349bd600-9a63-11eb-941f-7139ee6cd602.png ">
2021-04-11 01:33:55 +02:00
Glenn Jocher
0cae7576a9
utils/wandb_logging PEP8 reformat ( #2755 )
...
* wandb_logging PEP8 reformat
* Update wandb_utils.py
2021-04-10 21:09:23 +02:00
Glenn Jocher
b5de52c4cd
torch.cuda.amp bug fix ( #2750 )
...
PR https://github.com/ultralytics/yolov5/pull/2725 introduced a very specific bug that only affects multi-GPU trainings. Apparently the cause was using the torch.cuda.amp decorator in the autoShape forward method. I've implemented amp more traditionally in this PR, and the bug is resolved.
2021-04-09 18:19:49 +02:00
Glenn Jocher
fca5e2a48f
autocast enable=torch.cuda.is_available() ( #2748 )
2021-04-09 13:34:49 +02:00
Glenn Jocher
c03d590320
Add Hub results.pandas() method ( #2725 )
...
* Add Hub results.pandas() method
New method converts results from torch tensors to pandas DataFrames with column names.
This PR may partially resolve issue https://github.com/ultralytics/yolov5/issues/2703
```python
results = model(imgs)
print(results.pandas().xyxy[0])
xmin ymin xmax ymax confidence class name
0 57.068970 391.770599 241.383545 905.797852 0.868964 0 person
1 667.661255 399.303589 810.000000 881.396667 0.851888 0 person
2 222.878387 414.774231 343.804474 857.825073 0.838376 0 person
3 4.205386 234.447678 803.739136 750.023376 0.658006 5 bus
4 0.000000 550.596008 76.681190 878.669922 0.450596 0 person
```
* Update comments
torch example input now shown resized to size=640 and also now a multiple of P6 stride 64 (see https://github.com/ultralytics/yolov5/issues/2722#issuecomment-814785930 )
* apply decorators
* PEP8
* Update common.py
* pd.options.display.max_columns = 10
* Update common.py
2021-04-07 16:28:07 +02:00
Glenn Jocher
c8c8da6079
Update README with collapsable notes ( #2721 )
...
* Update README with collapsable notes.
* cleanup
* center table
2021-04-06 17:54:47 +02:00
Ayush Chaurasia
3067429307
Add support for list-of-directory data format for wandb ( #2719 )
2021-04-06 16:57:13 +02:00
Glenn Jocher
ec8979f1d2
Updated filename attributes for YOLOv5 Hub BytesIO ( #2718 )
...
Fix 2 for 'Model predict with forward will fail if PIL image does not have filename attribute' #2702
2021-04-06 13:18:56 +02:00
Glenn Jocher
74276d5189
Updated filename attributes for YOLOv5 Hub results ( #2708 )
...
Proposed fix for 'Model predict with forward will fail if PIL image does not have filename attribute' #2702
2021-04-05 22:20:09 +02:00
Glenn Jocher
9ccfa85249
pip install coremltools onnx ( #2690 )
...
Requested in https://github.com/ultralytics/yolov5/issues/2686
2021-04-02 13:00:46 +02:00
Glenn Jocher
17300a4c7b
autoShape forward im = np.asarray(im) # to numpy ( #2689 )
...
Slight speedup.
2021-04-02 12:36:38 +02:00
Glenn Jocher
2af059c0d8
PyTorch Hub model.save() increment as runs/hub/exp ( #2684 )
...
* PyTorch Hub model.save() increment as runs/hub/exp
This chane will align PyTorch Hub results saving with the existing unified results saving directory structure of
runs/
/train
/detect
/test
/hub
/exp
/exp2
...
* cleanup
2021-04-02 11:55:10 +02:00
Ayush Chaurasia
514ebcdf33
Fix : #2674 ( #2683 )
...
* Set resume flag to false
* Check existance of val dataset
2021-04-02 11:54:50 +02:00
Ding Yiwei
1148e2ea63
Add TransformerLayer, TransformerBlock, C3TR modules ( #2333 )
...
* yolotr
* transformer block
* Remove bias in Transformer
* Remove C3T
* Remove a deprecated class
* put the 2nd LayerNorm into the 2nd residual block
* move example model to models/hub, rename to -transformer
* Add module comments and TODOs
* Remove LN in Transformer
* Add comments for Transformer
* Solve the problem of MA with DDP
* cleanup
* cleanup find_unused_parameters
* PEP8 reformat
Co-authored-by: DingYiwei <846414640@qq.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-04-01 17:26:53 +02:00
Glenn Jocher
b8b862993d
Update README with Tips for Best Results tutorial ( #2682 )
...
* Update README with Tips for Best Results tutorial
* Update README.md
2021-04-01 15:01:00 +02:00
Glenn Jocher
877b826e3a
Created using Colaboratory
2021-04-01 11:31:27 +02:00
Glenn Jocher
51cc0962b5
Update README.md
2021-04-01 11:16:56 +02:00
Ayush Chaurasia
2a28ef374b
Set resume flag to false ( #2657 )
2021-03-31 13:47:54 +02:00
Glenn Jocher
1b475c1797
Created using Colaboratory
2021-03-30 20:07:18 +02:00
Phat Tran
9c803f2f7e
Add --label-smoothing eps argument to train.py (default 0.0) ( #2344 )
...
* Add label smoothing option
* Correct data type
* add_log
* Remove log
* Add log
* Update loss.py
remove comment (too versbose)
Co-authored-by: phattran <phat.tranhoang@cyberlogitec.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-03-29 18:45:46 +02:00
Benjamin Fineran
fd1679975b
add option to disable half precision in test.py ( #2507 )
...
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-03-29 17:15:26 +02:00
Youngjin Shin
7cdc5165a1
Update requirements.txt ( #2564 )
...
* Add opencv-contrib-python to requirements.txt
* Update requirements.txt
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-03-29 17:05:52 +02:00
Glenn Jocher
1b100cd53e
Created using Colaboratory ( #2649 )
2021-03-29 16:43:37 +02:00
Glenn Jocher
866bc7d640
Speed profiling improvements ( #2648 )
...
* Speed profiling improvements
* Update torch_utils.py
deepcopy() required to avoid adding elements to model.
* Update torch_utils.py
2021-03-29 15:19:07 +02:00
zzttqu
1e8ab3f5f2
Add tqdm pbar.close() ( #2644 )
...
When using tqdm, sometimes it can't print in one line and roll to next line.
2021-03-29 12:21:25 +02:00
Glenn Jocher
2bf34f50fd
PyTorch Hub amp.autocast() inference ( #2641 )
...
I think this should help speed up CUDA inference, as currently models may be running in FP32 inference mode on CUDA devices unnecesarily.
2021-03-28 20:23:40 +02:00
Glenn Jocher
ee169834bd
PyTorch Hub custom model to CUDA device fix ( #2636 )
...
Fix for #2630 raised by @Pro100rus32
2021-03-28 17:22:00 +02:00
Glenn Jocher
2e95cf3d79
Improve git_describe() fix 1 ( #2635 )
...
Add stderr=subprocess.STDOUT to catch error messages.
2021-03-28 17:09:06 +02:00
Ayush Chaurasia
518c09578e
W&B resume ddp from run link fix ( #2579 )
...
* W&B resume ddp from run link fix
* Native DDP W&B support for training, resuming
2021-03-28 16:11:36 +02:00
Ayush Chaurasia
dc51e80b00
Fix: evolve with wandb ( #2634 )
2021-03-28 16:09:35 +02:00
Glenn Jocher
6e8c5b7678
Improve git_describe() ( #2633 )
...
Catch 'fatal: not a git repository' returns and return '' instead (observed in GCP Hub checks).
2021-03-28 15:39:31 +02:00
Glenn Jocher
9b92d3ee76
FROM nvcr.io/nvidia/pytorch:21.03-py3 ( #2623 )
...
Update Docker FROM nvcr.io/nvidia/pytorch:21.03-py3
2021-03-27 18:35:53 +01:00
Glenn Jocher
2dfe32030a
Remove conflicting nvidia-tensorboard package ( #2622 )
...
Attempt to resolve tensorboard Docker error in https://github.com/ultralytics/yolov5/issues/2573
2021-03-27 18:31:53 +01:00
Glenn Jocher
005d7a8c54
Update Detections() self.n comment ( #2620 )
...
```python
self.n = len(self.pred) # number of images (batch size)
```
2021-03-26 21:19:15 +01:00
Ayush Chaurasia
8f6e447729
Fix Indentation in test.py ( #2614 )
...
* Fix Indentation in test.py
* CI fix
* Comply with PEP8: 80 characters per line
2021-03-26 20:47:11 +01:00
Glenn Jocher
a57f23d18b
Update detections() self.t = tuple() ( #2617 )
...
* Update detections() self.t = tuple()
Fix multiple results.print() bug.
* Update experimental.py
* Update yolo.py
2021-03-26 13:23:11 +01:00
Glenn Jocher
0ff5aeca61
Create date_modified() ( #2616 )
...
Updated device selection string with fallback for non-git directories.
```python
def select_device(device='', batch_size=None):
# device = 'cpu' or '0' or '0,1,2,3'
s = f'YOLOv5 🚀 {git_describe() or date_modified()} torch {torch.__version__} ' # string
...
```
2021-03-26 12:52:47 +01:00
maxupp
196bf10603
Add '*.mpo' to supported image formats ( #2615 )
...
Co-authored-by: Max Uppenkamp <max.uppenkamp@inform-software.com>
2021-03-26 12:45:22 +01:00
Glenn Jocher
77415a42e5
Update git_describe() for remote dir usage ( #2606 )
2021-03-26 01:44:00 +01:00
Glenn Jocher
fca16dc4b3
Remove Cython from requirements.txt ( #2604 )
...
Cython should be a dependency of the remaining packages in requirements.txt, so should be installed anyway even if not a direct requirement.
2021-03-25 21:48:25 +01:00
Glenn Jocher
3bb414890a
resume.py typo ( #2603 )
2021-03-25 20:55:20 +01:00
Glenn Jocher
d4456e43b2
Update segment2box() comment ( #2600 )
2021-03-25 15:12:49 +01:00
Glenn Jocher
ad05e37d99
Save webcam results, add --nosave option ( #2598 )
...
This updates the default detect.py behavior to automatically save all inference images/videos/webcams unless the new argument --nosave is used (python detect.py --nosave) or unless a list of streaming sources is passed (python detect.py --source streams.txt)
2021-03-25 14:09:49 +01:00
Max Kolomeychenko
16206692f2
Supervisely Ecosystem ( #2519 )
...
guide describes YOLOv5 apps collection in Supervisely Ecosystem
2021-03-25 00:57:34 +01:00
Glenn Jocher
333ccc5b0f
YOLOv5 PyTorch Hub models >> check_requirements() ( #2592 )
...
Improved user-feedback following requirements auto-update.
2021-03-24 17:51:39 +01:00
Glenn Jocher
75feeb797c
YOLOv5 PyTorch Hub models >> check_requirements() ( #2591 )
...
Prints 'Please restart runtime or rerun command for update to take effect.' following package auto-install to inform users to restart/rerun.
2021-03-24 16:42:54 +01:00
Glenn Jocher
8ace1b1b99
YOLOv5 PyTorch Hub models >> check_requirements() ( #2588 )
...
* YOLOv5 PyTorch Hub models >> check_requirements()
Update YOLOv5 PyTorch Hub requirements.txt path to cache path.
* Update hubconf.py
2021-03-24 16:23:54 +01:00
Glenn Jocher
9f98201dd9
W&B DDP fix 2 ( #2587 )
...
Revert unintentional change to test batch sizes caused by PR https://github.com/ultralytics/yolov5/pull/2125
2021-03-24 15:43:32 +01:00
Glenn Jocher
2bcc89d762
YOLOv5 PyTorch Hub models >> check_requirements() ( #2577 )
...
* Update hubconf.py with check_requirements()
Dependency checks have been missing from YOLOv5 PyTorch Hub model loading, causing errors in some cases when users are attempting to import hub models in unsupported environments. This should examine the YOLOv5 requirements.txt file and pip install any missing or version-conflict packages encountered.
This is highly experimental (!), please let us know if this creates problems in your custom workflows.
* Update hubconf.py
2021-03-24 15:42:00 +01:00
Glenn Jocher
e5b0200cd2
Update tensorboard>=2.4.1 ( #2576 )
...
* Update tensorboard>=2.4.1
Update tensorboard version to attempt to address https://github.com/ultralytics/yolov5/issues/2573 (tensorboard logging fail in Docker image).
* cleanup
2021-03-24 01:29:00 +01:00
Glenn Jocher
2b329b0945
Enhanced check_requirements() with auto-install ( #2575 )
...
* Update check_requirements() with auto-install
This PR builds on an idea I had to automatically install missing dependencies rather than simply report an error message.
YOLOv5 should now 1) display all dependency issues and not simply display the first missing dependency, and 2) attempt to install/update each missing/VersionConflict package.
* cleanup
* cleanup 2
* Check requirements.txt file exists
* cleanup 3
2021-03-24 01:05:59 +01:00
Ayush Chaurasia
1bf9365280
W&B DDP fix ( #2574 )
2021-03-23 16:54:34 +01:00
Glenn Jocher
0d891c601e
check_requirements() exclude pycocotools, thop ( #2571 )
...
Exclude non-critical packages from dependency checks in detect.py. pycocotools and thop in particular are not required for inference.
Issue first raised in https://github.com/ultralytics/yolov5/issues/1944 and also raised in https://github.com/ultralytics/yolov5/discussions/2556
2021-03-23 14:25:55 +01:00
Glenn Jocher
1c132a1f94
Update Detections() times=None ( #2570 )
...
Fix for results.tolist() method breaking after YOLOv5 Hub profiling PRshttps://github.com/ultralytics/yolov5/pull/2460 https://github.com/ultralytics/yolov5/pull/2459 and
2021-03-23 14:10:47 +01:00
Ayush Chaurasia
e8fc97aa38
Improved W&B integration ( #2125 )
...
* Init Commit
* new wandb integration
* Update
* Use data_dict in test
* Updates
* Update: scope of log_img
* Update: scope of log_img
* Update
* Update: Fix logging conditions
* Add tqdm bar, support for .txt dataset format
* Improve Result table Logger
* Init Commit
* new wandb integration
* Update
* Use data_dict in test
* Updates
* Update: scope of log_img
* Update: scope of log_img
* Update
* Update: Fix logging conditions
* Add tqdm bar, support for .txt dataset format
* Improve Result table Logger
* Add dataset creation in training script
* Change scope: self.wandb_run
* Add wandb-artifact:// natively
you can now use --resume with wandb run links
* Add suuport for logging dataset while training
* Cleanup
* Fix: Merge conflict
* Fix: CI tests
* Automatically use wandb config
* Fix: Resume
* Fix: CI
* Enhance: Using val_table
* More resume enhancement
* FIX : CI
* Add alias
* Get useful opt config data
* train.py cleanup
* Cleanup train.py
* more cleanup
* Cleanup| CI fix
* Reformat using PEP8
* FIX:CI
* rebase
* remove uneccesary changes
* remove uneccesary changes
* remove uneccesary changes
* remove unecessary chage from test.py
* FIX: resume from local checkpoint
* FIX:resume
* FIX:resume
* Reformat
* Performance improvement
* Fix local resume
* Fix local resume
* FIX:CI
* Fix: CI
* Imporve image logging
* (:(:Redo CI tests:):)
* Remember epochs when resuming
* Remember epochs when resuming
* Update DDP location
Potential fix for #2405
* PEP8 reformat
* 0.25 confidence threshold
* reset train.py plots syntax to previous
* reset epochs completed syntax to previous
* reset space to previous
* remove brackets
* reset comment to previous
* Update: is_coco check, remove unused code
* Remove redundant print statement
* Remove wandb imports
* remove dsviz logger from test.py
* Remove redundant change from test.py
* remove redundant changes from train.py
* reformat and improvements
* Fix typo
* Add tqdm tqdm progress when scanning files, naming improvements
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-03-23 00:44:50 +01:00
Glenn Jocher
ed2c74218d
Created using Colaboratory
2021-03-14 23:32:39 -07:00
Glenn Jocher
9b11f0c58b
PyTorch Hub models default to CUDA:0 if available ( #2472 )
...
* PyTorch Hub models default to CUDA:0 if available
* device as string bug fix
2021-03-14 23:16:17 -07:00
Glenn Jocher
2d41e70e82
Scipy kmeans-robust autoanchor update ( #2470 )
...
Fix for https://github.com/ultralytics/yolov5/issues/2394
2021-03-14 21:58:12 -07:00
Yann Defretin
38ff499b26
Update autosplit() with annotated_only option ( #2466 )
...
* Be able to create dataset from annotated images only
Add the ability to create a dataset/splits only with images that have an annotation file, i.e a .txt file, associated to it. As we talked about this, the absence of a txt file could mean two things:
* either the image wasn't yet labelled by someone,
* either there is no object to detect.
When it's easy to create small datasets, when you have to create datasets with thousands of images (and more coming), it's hard to track where you at and you don't want to wait to have all of them annotated before starting to train. Which means some images would lack txt files and annotations, resulting in label inconsistency as you say in #2313 . By adding the annotated_only argument to the function, people could create, if they want to, datasets/splits only with images that were labelled, for sure.
* Cleanup and update print()
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-03-14 17:11:27 -07:00
Glenn Jocher
6f718cee74
Created using Colaboratory
2021-03-13 20:20:09 -08:00
Glenn Jocher
20d879db36
Update tutorial.ipynb
2021-03-13 20:05:21 -08:00
Glenn Jocher
f813f6dcc8
autoShape() speed profiling update ( #2460 )
2021-03-13 20:00:03 -08:00
Glenn Jocher
569757ecc0
Add autoShape() speed profiling ( #2459 )
...
* Add autoShape() speed profiling
* Update common.py
* Create README.md
* Update hubconf.py
* cleanuip
2021-03-13 19:50:34 -08:00
Glenn Jocher
747c2653ee
CVPR 2021 Argoverse-HD autodownload curl ( #2455 )
...
curl preferred over wget for slightly better cross platform compatibility (i.e. out of the box macos compatible).
2021-03-12 22:27:53 -08:00
Glenn Jocher
08d4918d7f
labels.jpg class names ( #2454 )
...
* labels.png class names
* fontsize=10
2021-03-12 22:15:41 -08:00
Glenn Jocher
f4197214aa
Update test.py --task train val study ( #2453 )
...
* Update test.py --task train val study
* update argparser --task
2021-03-12 22:08:42 -08:00
Glenn Jocher
f01f3223d5
Integer printout ( #2450 )
...
* Integer printout
* test.py 'Labels'
* Update train.py
2021-03-12 13:35:44 -08:00
Glenn Jocher
886f1c03d8
DDP after autoanchor reorder ( #2421 )
2021-03-09 23:43:46 -08:00
Glenn Jocher
d5ca8ca34e
CVPR 2021 Argoverse-HD autodownload fix ( #2418 )
2021-03-09 21:07:27 -08:00
Kartikeya Sharma
c51dfec8ea
CVPR 2021 Argoverse-HD dataset autodownload support ( #2400 )
...
* added argoverse-download ability
* bugfix
* add support for Argoverse dataset
* Refactored code
* renamed to argoverse-HD
* unzip -q and YOLOv5
small cleanup items
* add image counts
Co-authored-by: Kartikeya Sharma <kartikes@trinity.vision.cs.cmu.edu>
Co-authored-by: Kartikeya Sharma <kartikes@trinity-0-32.eth>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-03-09 19:26:49 -08:00
Glenn Jocher
e8a2b83268
GCP sudo docker userdata.sh ( #2393 )
...
* GCP sudo docker
* cleanup
2021-03-07 20:21:49 -08:00
Glenn Jocher
7c2c95732c
AWS wait && echo "All tasks done." ( #2391 )
2021-03-07 20:18:30 -08:00
Glenn Jocher
ba18528b47
bbox_iou() stability and speed improvements ( #2385 )
2021-03-06 13:07:34 -08:00
Jan Hajek
7a0a81fd1d
GPU export options ( #2297 )
...
* option for skip last layer and cuda export support
* added parameter device
* fix import
* cleanup 1
* cleanup 2
* opt-in grid
--grid will export with grid computation, default export will skip grid (same as current)
* default --device cpu
GPU export causes ONNX and CoreML errors.
Co-authored-by: Jan Hajek <jan.hajek@gmail.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-03-06 12:02:10 -08:00
Yonghye Kwon
cd8ed3521d
image weights compatible faster random index generator v2 for mosaic augmentation ( #2383 )
...
image weights compatible faster random index generator v2 for mosaic augmentation
2021-03-05 22:58:26 -08:00
Glenn Jocher
c64fe219b4
ENV HOME=/usr/src/app ( #2382 )
...
Set HOME environment variable per Binder requirements.
https://github.com/binder-examples/minimal-dockerfile
2021-03-05 15:53:57 -08:00
Glenn Jocher
692e1f31dc
--no-cache notebook ( #2381 )
2021-03-05 15:26:27 -08:00
Yonghye Kwon
300d518f73
Faster random index generator for mosaic augmentation ( #2345 )
...
* faster random index generator for mosaic augementation
We don't need to access list to generate random index
It makes augmentation slower.
* Update datasets.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-03-05 13:06:18 -08:00
Glenn Jocher
e931b9da33
Resume with custom anchors fix ( #2361 )
...
* Resume with custom anchors fix
* Update train.py
2021-03-03 21:06:36 -08:00
Glenn Jocher
a3ecf0fd64
Anchor override ( #2350 )
2021-03-02 23:08:21 -08:00
Glenn Jocher
fe6ebb96bb
Created using Colaboratory
2021-03-02 19:20:51 -08:00
Ryan Avery
2c56ad5436
Confusion matrix background axis swap ( #2114 )
2021-03-02 16:09:52 -08:00
Glenn Jocher
ab86cec854
FROM nvcr.io/nvidia/pytorch:21.02-py3 ( #2341 )
2021-03-02 13:01:59 -08:00
Glenn Jocher
fab5085674
EMA bug fix 2 ( #2330 )
...
* EMA bug fix 2
* update
2021-03-01 17:13:34 -08:00
Glenn Jocher
fd96810518
remove TTA 1 pixel offset ( #2325 )
2021-02-28 21:14:08 -08:00
Glenn Jocher
c2026a5f35
Update Dockerfile install htop ( #2320 )
2021-02-27 15:55:31 -08:00
Glenn Jocher
cd30d838eb
Update test.py ( #2319 )
2021-02-27 15:28:23 -08:00
Glenn Jocher
dfeec198cb
final_epoch EMA bug fix ( #2317 )
2021-02-27 12:51:33 -08:00
oleg
cbd55da5d2
Update yolo.py ( #2120 )
...
* Avoid mutable state in Detect
* LoadImages() pathlib update (#2140 )
* Unique *.cache filenames fix (#2134 )
* fix #2121
* Update test.py
* Update train.py
* Update autoanchor.py
* Update datasets.py
* Update log_dataset.py
* Update datasets.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
* Update train.py test batch_size (#2148 )
* Update train.py
* Update loss.py
* Update train.py (#2149 )
* Linear LR scheduler option (#2150 )
* Linear LR scheduler option
* Update train.py
* Update data-autodownload background tasks (#2154 )
* Update get_coco.sh
* Update get_voc.sh
* Update detect.py (#2167 )
Without this cv2.imshow opens a window but nothing is visible
* Update requirements.txt (#2173 )
* Update utils/datasets.py to support .webp files (#2174 )
Simply added 'webp' as an image format to the img_formats array so that webp image files can be used as training data.
* Changed socket port and added timeout (#2176 )
* PyTorch Hub results.save('path/to/dir') (#2179 )
* YOLOv5 Segmentation Dataloader Updates (#2188 )
* Update C3 module
* Update C3 module
* Update C3 module
* Update C3 module
* update
* update
* update
* update
* update
* update
* update
* update
* update
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* update
* update
* update
* update
* updates
* updates
* updates
* updates
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update datasets
* update
* update
* update
* update attempt_downlaod()
* merge
* merge
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* parameterize eps
* comments
* gs-multiple
* update
* max_nms implemented
* Create one_cycle() function
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* GitHub API rate limit fix
* update
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* astuple
* epochs
* update
* update
* ComputeLoss()
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* merge
* merge
* merge
* merge
* update
* update
* update
* update
* commit=tag == tags[-1]
* Update cudnn.benchmark
* update
* update
* update
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* update
* update
* update
* update
* update
* mosaic9
* update
* update
* update
* update
* update
* update
* institute cache versioning
* only display on existing cache
* reverse cache exists booleans
* Created using Colaboratory
* YOLOv5 PyTorch Hub results.save() method retains filenames (#2194 )
* save results with name
* debug
* save original imgs names
* Update common.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
* TTA augument boxes one pixel shifted in de-flip ud and lr (#2219 )
* TTA augument boxes one pixel shifted in de-flip ud and lr
* PEP8 reformat
Co-authored-by: Jaap van de Loosdrecht <jaap.van.de.loosdrecht@nhlstenden.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
* LoadStreams() frame loss bug fix (#2222 )
* Update yolo.py channel array (#2223 )
* Add check_imshow() (#2231 )
* Add check_imshow()
* Update general.py
* Update general.py
* Update CI badge (#2230 )
* Add isdocker() (#2232 )
* Add isdocker()
* Update general.py
* Update general.py
* YOLOv5 Hub URL inference bug fix (#2250 )
* Update common.py
* Update common.py
* Update common.py
* Improved hubconf.py CI tests (#2251 )
* Unified hub and detect.py box and labels plotting (#2243 )
* reset head
* Update inference default to multi_label=False (#2252 )
* Update inference default to multi_label=False
* bug fix
* Update plots.py
* Update plots.py
* Robust objectness loss balancing (#2256 )
* Created using Colaboratory
* Update minimum stride to 32 (#2266 )
* Dynamic ONNX engine generation (#2208 )
* add: dynamic onnx export
* delete: test onnx inference
* fix dynamic output axis
* Code reduction
* fix: dynamic output axes, dynamic input naming
* Remove fixed axes
Co-authored-by: Shivam Swanrkar <ss8464@nyu.edu>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
* Update greetings.yml for auto-rebase on PR (#2272 )
* Update Dockerfile with apt install zip (#2274 )
* FLOPS min stride 32 (#2276 )
Signed-off-by: xiaowo1996 <429740343@qq.com>
* Update README.md
* Amazon AWS EC2 startup and re-startup scripts (#2185 )
* Amazon AWS EC2 startup and re-startup scripts
* Create resume.py
* cleanup
* Amazon AWS EC2 startup and re-startup scripts (#2282 )
* Update train.py (#2290 )
* Update train.py
* Update train.py
* Update train.py
* Update train.py
* Create train.py
* Improved model+EMA checkpointing (#2292 )
* Enhanced model+EMA checkpointing
* update
* bug fix
* bug fix 2
* always save optimizer
* ema half
* remove model.float()
* model half
* carry ema/model in fp32
* rm model.float()
* both to float always
* cleanup
* cleanup
* Improved model+EMA checkpointing 2 (#2295 )
* Fix labels being missed when image extension appears twice in filename (#2300 )
* W&B entity support (#2298 )
* W&B entity support
* shorten wandb_entity to entity
Co-authored-by: Jan Hajek <jan.hajek@gmail.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
* Avoid mutable state in Detect
* Update yolo and remove .to(device)
Co-authored-by: Oleg Boiko <oboiko@chegg.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: train255 <thanhdd.it@gmail.com>
Co-authored-by: ab-101 <56578530+ab-101@users.noreply.github.com>
Co-authored-by: Transigent <wbdsmith@optusnet.com.au>
Co-authored-by: NanoCode012 <kevinvong@rocketmail.com>
Co-authored-by: Daniel Khromov <danielkhromov@gmail.com>
Co-authored-by: VdLMV <jaap@vdlmv.nl>
Co-authored-by: Jaap van de Loosdrecht <jaap.van.de.loosdrecht@nhlstenden.com>
Co-authored-by: Yann Defretin <kinoute@gmail.com>
Co-authored-by: Aditya Lohia <64709773+aditya-dl@users.noreply.github.com>
Co-authored-by: Shivam Swanrkar <ss8464@nyu.edu>
Co-authored-by: xiaowo1996 <429740343@qq.com>
Co-authored-by: Iden Craven <iden.craven@gmail.com>
Co-authored-by: Jan Hajek <toretak@users.noreply.github.com>
Co-authored-by: Jan Hajek <jan.hajek@gmail.com>
2021-02-26 15:07:40 -08:00
Jan Hajek
efa4946d15
W&B entity support ( #2298 )
...
* W&B entity support
* shorten wandb_entity to entity
Co-authored-by: Jan Hajek <jan.hajek@gmail.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-02-25 19:18:19 -08:00
Iden Craven
a82dce7faa
Fix labels being missed when image extension appears twice in filename ( #2300 )
2021-02-25 18:05:38 -08:00
Glenn Jocher
71dd2768f2
Improved model+EMA checkpointing 2 ( #2295 )
2021-02-24 21:03:21 -08:00
Glenn Jocher
ec1d8496ba
Improved model+EMA checkpointing ( #2292 )
...
* Enhanced model+EMA checkpointing
* update
* bug fix
* bug fix 2
* always save optimizer
* ema half
* remove model.float()
* model half
* carry ema/model in fp32
* rm model.float()
* both to float always
* cleanup
* cleanup
2021-02-24 18:26:46 -08:00
Glenn Jocher
ca5b10b759
Update train.py ( #2290 )
...
* Update train.py
* Update train.py
* Update train.py
* Update train.py
* Create train.py
2021-02-24 13:31:20 -08:00
Glenn Jocher
0070995bd5
Amazon AWS EC2 startup and re-startup scripts ( #2282 )
2021-02-24 01:43:59 -08:00
Glenn Jocher
d5d275b6e9
Amazon AWS EC2 startup and re-startup scripts ( #2185 )
...
* Amazon AWS EC2 startup and re-startup scripts
* Create resume.py
* cleanup
2021-02-23 23:10:14 -08:00
Glenn Jocher
7a6870b81f
Update README.md
2021-02-23 11:27:44 -08:00
xiaowo1996
83dc1b4484
FLOPS min stride 32 ( #2276 )
...
Signed-off-by: xiaowo1996 <429740343@qq.com>
2021-02-23 09:38:56 -08:00
Glenn Jocher
cc79f3a9ea
Update Dockerfile with apt install zip ( #2274 )
2021-02-22 22:50:00 -08:00
Glenn Jocher
32dd1614f4
Update greetings.yml for auto-rebase on PR ( #2272 )
2021-02-22 18:34:07 -08:00
Aditya Lohia
95aefea493
Dynamic ONNX engine generation ( #2208 )
...
* add: dynamic onnx export
* delete: test onnx inference
* fix dynamic output axis
* Code reduction
* fix: dynamic output axes, dynamic input naming
* Remove fixed axes
Co-authored-by: Shivam Swanrkar <ss8464@nyu.edu>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-02-21 21:50:44 -08:00
Glenn Jocher
e27ca0d845
Update minimum stride to 32 ( #2266 )
2021-02-21 21:46:42 -08:00
Glenn Jocher
095d2c11d8
Created using Colaboratory
2021-02-20 13:21:58 -08:00
Glenn Jocher
6f5d6fcdaa
Robust objectness loss balancing ( #2256 )
2021-02-20 11:19:01 -08:00
Glenn Jocher
c09964c27c
Update inference default to multi_label=False ( #2252 )
...
* Update inference default to multi_label=False
* bug fix
* Update plots.py
* Update plots.py
2021-02-19 15:39:09 -08:00
Glenn Jocher
ab2da5edc8
Merge remote-tracking branch 'origin/master'
2021-02-19 15:21:04 -08:00
Glenn Jocher
47faf95079
reset head
2021-02-19 15:20:41 -08:00
Yann Defretin
5f42643a53
Unified hub and detect.py box and labels plotting ( #2243 )
2021-02-19 12:38:05 -08:00
Glenn Jocher
db28ce61ac
Improved hubconf.py CI tests ( #2251 )
2021-02-19 12:35:38 -08:00
Glenn Jocher
9d87307784
YOLOv5 Hub URL inference bug fix ( #2250 )
...
* Update common.py
* Update common.py
* Update common.py
2021-02-19 11:22:42 -08:00
Glenn Jocher
d2e754b67b
Add isdocker() ( #2232 )
...
* Add isdocker()
* Update general.py
* Update general.py
2021-02-16 15:58:07 -08:00
Glenn Jocher
5a40ce65ce
Update CI badge ( #2230 )
2021-02-16 15:27:24 -08:00
Glenn Jocher
26c2e54c8f
Add check_imshow() ( #2231 )
...
* Add check_imshow()
* Update general.py
* Update general.py
2021-02-16 13:56:47 -08:00
Glenn Jocher
f8464b4f66
Update yolo.py channel array ( #2223 )
2021-02-15 21:21:53 -08:00
Glenn Jocher
7b833e37bf
LoadStreams() frame loss bug fix ( #2222 )
2021-02-15 11:02:20 -08:00
VdLMV
3ff783c18f
TTA augument boxes one pixel shifted in de-flip ud and lr ( #2219 )
...
* TTA augument boxes one pixel shifted in de-flip ud and lr
* PEP8 reformat
Co-authored-by: Jaap van de Loosdrecht <jaap.van.de.loosdrecht@nhlstenden.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-02-15 10:49:22 -08:00
Daniel Khromov
3e560e2fae
YOLOv5 PyTorch Hub results.save() method retains filenames ( #2194 )
...
* save results with name
* debug
* save original imgs names
* Update common.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-02-12 15:37:51 -08:00
Glenn Jocher
17ac94b796
Created using Colaboratory
2021-02-11 22:39:37 -08:00
Glenn Jocher
bdd88e1ed7
YOLOv5 Segmentation Dataloader Updates ( #2188 )
...
* Update C3 module
* Update C3 module
* Update C3 module
* Update C3 module
* update
* update
* update
* update
* update
* update
* update
* update
* update
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* update
* update
* update
* update
* updates
* updates
* updates
* updates
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update datasets
* update
* update
* update
* update attempt_downlaod()
* merge
* merge
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* parameterize eps
* comments
* gs-multiple
* update
* max_nms implemented
* Create one_cycle() function
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* GitHub API rate limit fix
* update
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* ComputeLoss
* astuple
* epochs
* update
* update
* ComputeLoss()
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* merge
* merge
* merge
* merge
* update
* update
* update
* update
* commit=tag == tags[-1]
* Update cudnn.benchmark
* update
* update
* update
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* update
* update
* update
* update
* update
* mosaic9
* update
* update
* update
* update
* update
* update
* institute cache versioning
* only display on existing cache
* reverse cache exists booleans
2021-02-11 21:22:45 -08:00
Glenn Jocher
404749a33c
PyTorch Hub results.save('path/to/dir') ( #2179 )
2021-02-10 16:10:43 -08:00
NanoCode012
a5d5f9262d
Changed socket port and added timeout ( #2176 )
2021-02-10 13:01:48 -08:00
Transigent
c9bda112ae
Update utils/datasets.py to support .webp files ( #2174 )
...
Simply added 'webp' as an image format to the img_formats array so that webp image files can be used as training data.
2021-02-10 00:16:38 -08:00
Glenn Jocher
ace3e02e40
Update requirements.txt ( #2173 )
2021-02-09 22:03:29 -08:00
ab-101
c32b0aff76
Update detect.py ( #2167 )
...
Without this cv2.imshow opens a window but nothing is visible
2021-02-08 23:13:40 -08:00
Glenn Jocher
a5359f6c32
Update data-autodownload background tasks ( #2154 )
...
* Update get_coco.sh
* Update get_voc.sh
2021-02-06 22:13:39 -08:00
Glenn Jocher
6b634c6b87
Linear LR scheduler option ( #2150 )
...
* Linear LR scheduler option
* Update train.py
2021-02-06 11:26:54 -08:00
Glenn Jocher
ad839eda38
Update train.py ( #2149 )
2021-02-06 11:21:04 -08:00
Glenn Jocher
86897e3663
Update train.py test batch_size ( #2148 )
...
* Update train.py
* Update loss.py
2021-02-06 10:29:32 -08:00
train255
e9b3de463a
Unique *.cache filenames fix ( #2134 )
...
* fix #2121
* Update test.py
* Update train.py
* Update autoanchor.py
* Update datasets.py
* Update log_dataset.py
* Update datasets.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-02-05 11:12:43 -08:00
Glenn Jocher
4bdc5a397e
LoadImages() pathlib update ( #2140 )
2021-02-05 09:06:23 -08:00
Ayush Chaurasia
73a0669930
Start setup for improved W&B integration ( #1948 )
...
* Add helper functions for wandb and artifacts
* cleanup
* Reorganize files
* Update wandb_utils.py
* Update log_dataset.py
We can remove this code, as the giou hyp has been deprecated for a while now.
* Reorganize and update dataloader call
* yaml.SafeLoader
* PEP8 reformat
* remove redundant checks
* Add helper functions for wandb and artifacts
* cleanup
* Reorganize files
* Update wandb_utils.py
* Update log_dataset.py
We can remove this code, as the giou hyp has been deprecated for a while now.
* Reorganize and update dataloader call
* yaml.SafeLoader
* PEP8 reformat
* remove redundant checks
* Update util files
* Update wandb_utils.py
* Remove word size
* Change path of labels.zip
* remove unused imports
* remove --rect
* log_dataset.py cleanup
* log_dataset.py cleanup2
* wandb_utils.py cleanup
* remove redundant id_count
* wandb_utils.py cleanup2
* rename cls
* use pathlib for zip
* rename dataloader to dataset
* Change import order
* Remove redundant code
* remove unused import
* remove unused imports
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-02-01 21:38:41 -08:00
Glenn Jocher
9646ca438a
Update plot_study() ( #2112 )
2021-02-01 13:51:11 -08:00
Glenn Jocher
be9edffded
Update test.py --task speed and study ( #2099 )
...
* Add --speed benchmark
* test range 256 - 1536
* update
* update
* update
* update
2021-01-31 13:58:49 -08:00
Glenn Jocher
a18efc3a73
Add variable-stride inference support ( #2091 )
2021-01-30 13:47:23 -08:00
Glenn Jocher
aa02b94825
Add Kaggle badge ( #2090 )
2021-01-30 11:51:16 -08:00
Glenn Jocher
eeb2bbf648
Add Kaggle badge ( #2090 )
...
* Update README.md
* Update greetings.yml
* Created using Colaboratory
2021-01-30 11:48:03 -08:00
Glenn Jocher
170d12e506
Add Amazon Deep Learning AMI environment ( #2085 )
...
* Update greetings.yml
* Update README.md
2021-01-29 13:49:00 -08:00
Glenn Jocher
64628d6fc5
Update tutorial.ipynb
2021-01-29 13:40:03 -08:00
Glenn Jocher
6e6f77be47
Add YOLOv5-P6 models ( #2083 )
2021-01-29 11:57:29 -08:00
Glenn Jocher
6bfa9c2422
GhostConv update ( #2082 )
2021-01-29 11:25:01 -08:00
Glenn Jocher
2acbe9699a
W&B epoch logging update ( #2073 )
2021-01-28 18:57:24 -08:00
Glenn Jocher
630ec06af6
Update to colors.TABLEAU_COLORS ( #2069 )
2021-01-28 12:37:21 -08:00
Glenn Jocher
f639e14e4d
Metric-Confidence plots feature addition ( #2057 )
...
* Metric-Confidence plots feature addition
* cleanup
* Metric-Confidence plots feature addition
* cleanup
* Update run-once lines
* cleanup
* save all 4 curves to wandb
2021-01-27 17:10:53 -08:00
Glenn Jocher
2a835c79a9
Update run-once lines ( #2058 )
2021-01-27 16:01:24 -08:00
Glenn Jocher
f59f80114c
Add 'exclude' tuple to check_requirements() ( #2041 )
2021-01-26 21:17:36 -08:00
Glenn Jocher
59c21c7bcb
W&B log epoch ( #1946 )
...
* W&B log epoch
* capitalize
* W&B log epoch
* capitalize
* Update train.py
New try using https://docs.wandb.ai/library/log#incremental-logging
* Update train.py
* Update test.py
* Update train.py
* Update plots.py
* Update train.py
* Update train.py
* label plot step -1
* update
* update
* update
* update
* update
* update
* Update train.py
* Update train.py
2021-01-26 21:16:01 -08:00
Glenn Jocher
08d3119e09
Add histogram equalization fcn ( #2049 )
2021-01-26 17:30:42 -08:00
ramonhollands
d68afedb32
Confusion matrix native image-space fix ( #2046 )
...
Make sure the labels and predictions are equally scaled on confusion_matrix.process_batch
2021-01-26 13:39:19 -08:00
Glenn Jocher
8fcbe43423
Check im.format during dataset caching ( #2042 )
...
* Check im.format during dataset caching
* Update datasets.py
2021-01-25 20:55:35 -08:00
Glenn Jocher
a41d910c5d
data-autodownload background tasks ( #2034 )
2021-01-24 18:01:58 -08:00
Glenn Jocher
3551b072b3
Docker pyYAML>=5.3.1 fix ( #2031 )
2021-01-24 11:54:15 -08:00
Glenn Jocher
c76c607265
PyYAML==5.4.1 ( #2030 )
2021-01-24 10:05:40 -08:00
Glenn Jocher
9a3da79b4a
Update requirements.txt ( #2021 )
...
* Update requirements.txt
* Update ci-testing.yml
* Update hubconf.py
2021-01-23 12:51:04 -08:00
Glenn Jocher
2fc4760257
Update autoshape .print() and .save() ( #2022 )
2021-01-22 16:38:06 -08:00
Glenn Jocher
3b7feeafdf
Update general.py check_git_status() fix ( #2020 )
2021-01-22 15:59:01 -08:00
Glenn Jocher
aac33f87ad
Update inference multiple-counting ( #2019 )
...
* Update inference multiple-counting
* update github check
2021-01-22 15:39:08 -08:00
Glenn Jocher
85b75d6018
Update ci-testing.yml ( #2018 )
2021-01-22 15:22:54 -08:00
Glenn Jocher
77fd83225f
Update google_utils.py ( #2017 )
2021-01-22 15:08:42 -08:00
Glenn Jocher
8dc68fcbcb
Update Dockerfile ( #2016 )
2021-01-22 14:26:58 -08:00
Glenn Jocher
1445ab2b27
check_git_status() Windows fix ( #2015 )
...
* check_git_status() Windows fix
* Update general.py
* Update general.py
* Update general.py
* Update general.py
* Update general.py
* Update general.py
2021-01-22 12:37:12 -08:00
Glenn Jocher
046c37e465
verbose on final_epoch ( #1997 )
2021-01-20 18:27:38 -08:00
Glenn Jocher
d9212140b3
Add xywhn2xyxy() ( #1983 )
2021-01-19 13:33:52 -08:00
Glenn Jocher
1ca2d26b9f
Update Dockerfile ( #1982 )
2021-01-19 11:45:15 -08:00
Glenn Jocher
b1cf25dd9a
check_git_status() asserts ( #1977 )
2021-01-18 10:49:28 -08:00
Abhiram V
e9941d50fa
Update train.py with yaml.SafeLoader ( #1972 )
2021-01-18 10:49:08 -08:00
Abhiram V
17751b9891
Update autoanchor.py with yaml.SafeLoader ( #1971 )
2021-01-18 10:47:42 -08:00
Abhiram V
4501169547
Update yolo.py with yaml.SafeLoader ( #1970 )
2021-01-18 10:47:00 -08:00
Abhiram V
91c30e4eff
Update test.py with yaml.SafeLoader ( #1969 )
2021-01-18 10:46:46 -08:00
Abhiram V
35400dc7b7
Update plots.py with yaml.SafeLoader ( #1968 )
2021-01-18 10:46:20 -08:00
huntr.dev | the place to protect open source
b5d851d653
Security Fix for Arbitrary Code Execution - huntr.dev ( #1962 )
...
Co-authored-by: Anon-Artist <61599526+Anon-Artist@users.noreply.github.com>
Co-authored-by: Jamie Slome <jamie@418sec.com>
2021-01-17 14:10:16 -08:00
Glenn Jocher
18c25889dc
Update tutorial.ipynb
2021-01-17 13:11:28 -08:00
Glenn Jocher
3a42abd18a
Created using Colaboratory
2021-01-17 13:04:16 -08:00
Glenn Jocher
b26a2f6242
check_git_status() when not exist /workspace ( #1966 )
2021-01-17 11:55:25 -08:00
Glenn Jocher
e8a41e8916
prevent check_git_status() in docker images ( #1951 )
...
* prevent check_git_status() running docker images
* Update general.py
2021-01-16 01:15:38 -08:00
Glenn Jocher
ca9babb8e6
Add ComputeLoss() class ( #1950 )
2021-01-15 13:50:24 -08:00
Glenn Jocher
f4a78e1b40
W&B mosaic log bug fix ( #1949 )
2021-01-15 12:09:53 -08:00
lorne
03ebe6ea14
Add nn.SiLU inplace in attempt_load() ( #1940 )
...
* sleep 3 sec to load data .
* Update train.py
* Add nn.SiLU inplace in attempt_load()
Co-authored-by: wangliang <wangliang@codingapi.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-01-15 09:58:41 -08:00
Glenn Jocher
777032efbc
Daemon thread mosaic plots fix ( #1943 )
2021-01-14 13:16:48 -08:00
NanoCode012
3a56cac414
Fix batch-size on resume for multi-gpu ( #1942 )
2021-01-14 09:53:13 -08:00
Glenn Jocher
b75c432ea0
GitHub API rate limit fallback ( #1930 )
2021-01-13 21:09:50 -08:00
Glenn Jocher
051e9e80de
check_git_status() bug fix ( #1925 )
2021-01-13 10:25:53 -08:00
Glenn Jocher
509dd51aca
check_git_status() improvements ( #1916 )
...
* check_online()
* Update general.py
* update check_git_status()
* reverse rev-parse order
* fetch
* improved responsiveness
* comment
* comment
* remove hyp['giou'] compat warning
2021-01-12 21:51:49 -08:00
Glenn Jocher
dd03b20ba5
colorstr() updates ( #1909 )
...
* W&B ImportError message fix
* colorstr() updates
* colorstr() updates
* colorstr() default to 'blue', 'bold'
* train: magenta
* train: blue
2021-01-12 10:33:15 -08:00
Glenn Jocher
1d1c0567a4
PyTorch Hub results.render() ( #1897 )
2021-01-10 20:06:11 -08:00
Glenn Jocher
ffef77124e
Update torch_utils.py ( #1895 )
2021-01-10 12:26:29 -08:00
Glenn Jocher
0f11aaf551
GitHub API rate limit newline ( #1894 )
2021-01-10 11:47:00 -08:00
Glenn Jocher
d06ad3bc3d
GitHub API rate limit fix ( #1894 )
2021-01-10 11:42:45 -08:00
Glenn Jocher
6ab589583c
Add colorstr() ( #1887 )
...
* Add colorful()
* update
* newline fix
* add git description
* --always
* update loss scaling
* update loss scaling 2
* rename to colorstr()
2021-01-09 15:24:18 -08:00
Glenn Jocher
3e25f1e9e5
auto-verbose if nc <=20 ( #1869 )
2021-01-07 15:47:28 -08:00
Glenn Jocher
fda8df7e88
actions/stale@v3 ( #1868 )
2021-01-07 11:25:43 -08:00
Glenn Jocher
fea9c9b80c
nn.SiLU() citation correction ( #1713 )
2021-01-06 20:58:41 -08:00
Glenn Jocher
e77c77f580
Add check_requirements() ( #1853 )
...
* Add check_requirements()
* add import
* parameterize filename
* add to detect, test
2021-01-06 16:35:40 -08:00
Tommy in Tongji
135ec5c5ce
W&B ID reset on training completion ( #1852 )
...
* Update train.py
Fix the bug of always the same W&B ID and continue overwrite with the old logging.
BUG report
https://github.com/ultralytics/yolov5/issues/1851
* Fix the bug of duplicate W&B ID
fix the bug of https://github.com/ultralytics/yolov5/issues/1851
If we had trained on yolov5s.pt, the program will generate a new unique W&B ID.
If we hadn't, the program will keep the old code, we can still use --resume aug.
* Update general.py
* revert train.py changes
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-01-06 16:27:22 -08:00
Glenn Jocher
69be8e738f
YOLOv5 v4.0 Release ( #1837 )
...
* Update C3 module
* Update C3 module
* Update C3 module
* Update C3 module
* update
* update
* update
* update
* update
* update
* update
* update
* update
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* updates
* update
* update
* update
* update
* updates
* updates
* updates
* updates
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update datasets
* update
* update
* update
* update attempt_downlaod()
* merge
* merge
* update
* update
* update
* update
* update
* update
* update
* update
* update
* update
* parameterize eps
* comments
* gs-multiple
* update
* max_nms implemented
* Create one_cycle() function
* update
* update
* update
* update
* update
* update
* update
* update study.png
* update study.png
* Update datasets.py
2021-01-04 19:54:09 -08:00
Glenn Jocher
0e341c5660
Create one_cycle() function ( #1836 )
2021-01-04 15:49:08 -08:00
Rohan Dubey
7dddb1d928
Remove unused code ( #1830 )
...
* Add files via upload
* Add files via upload
2021-01-04 13:04:13 -08:00
Glenn Jocher
9f5a18bb80
Torch CUDA synchronize update ( #1826 )
...
* torch.cuda.synchronize() update
* torch.cuda.synchronize() update
* torch.cuda.synchronize() update
* newline
2021-01-03 11:23:12 -08:00
Glenn Jocher
0b6266f5e0
Update yolov3-tiny.yaml ( #1823 )
2021-01-02 13:01:05 -08:00
dependabot-preview[bot]
ccd1af004a
Create Dependabot config file ( #1743 )
...
* Create Dependabot config file
* Update greetings.yml
* Update greetings.yml
* Update dependabot.yml
* Update dependabot.yml
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2021-01-02 11:58:22 -08:00
Glenn Jocher
7180b22e2d
DDP Multi-GPU --resume bug fix ( #1810 )
2020-12-30 12:40:45 -08:00
Glenn Jocher
73cf75faa8
Created using Colaboratory
2020-12-27 13:38:12 -08:00
Glenn Jocher
b096221b1f
Created using Colaboratory
2020-12-27 13:36:17 -08:00
NanoCode012
14b0abe2d0
autoShape() default for PyTorch Hub models ( #1692 )
...
* Add autoshape parameter
* Remove autoshape call in ReadMe
* Update hubconf.py
* file/URI inputs and autoshape check passthrough
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-12-26 19:58:26 -08:00
Glenn Jocher
c0ffcdf998
Display correct CUDA devices ( #1776 )
...
* Display correct CUDA devices
* cleanup
2020-12-24 13:01:35 -08:00
Glenn Jocher
8a81839cad
Update tutorial.ipynb
2020-12-23 12:43:10 -08:00
Glenn Jocher
98a46d8e82
Update README.md ( #1764 )
2020-12-22 23:03:08 -08:00
Glenn Jocher
720afe68e9
FROM nvcr.io/nvidia/pytorch:20.12-py3 ( #1763 )
2020-12-22 20:53:44 -08:00
Glenn Jocher
9922c1183f
leaf Variable inplace bug fix ( #1759 )
2020-12-22 17:27:40 -08:00
Glenn Jocher
3004fb5bc1
Automatic m.half() profile on x.half()
2020-12-21 15:20:33 -08:00
Glenn Jocher
0bd9c48609
Update torch_utils.py
...
FLOPS to GFLOPS
2020-12-21 13:29:52 -08:00
Glenn Jocher
394d1c89f3
Input channel yaml['ch'] addition ( #1741 )
2020-12-19 10:54:01 -08:00
Durgesh
ab0db8d104
Fix: Seaborn error due to histplot ( #1740 )
2020-12-19 09:30:43 -08:00
Glenn Jocher
685d601308
Increase plot_labels() speed ( #1736 )
2020-12-18 18:05:38 -08:00
Glenn Jocher
49abc722fc
Update profile_idetection() ( #1727 )
2020-12-18 01:19:17 -08:00
Glenn Jocher
d5289b54c4
clean_str() function addition ( #1674 )
...
* clean_str() function addition
* cleanup
* add euro symbol €
* add closing exclamation (spanish)
* cleanup
2020-12-17 17:20:20 -08:00
Glenn Jocher
7e161d9774
Single class train update ( #1719 )
2020-12-17 12:02:03 -08:00
Glenn Jocher
6bd5e8bca7
nn.SiLU() export support ( #1713 )
2020-12-16 17:55:57 -08:00
Glenn Jocher
c923fbff90
W&B artifacts feature addition ( #1712 )
...
* Log artifacts
* cleanup
2020-12-16 17:52:12 -08:00
Polydefkis Gkagkos
1fc9d42a64
NMS --classes 0 bug fix ( #1710 )
2020-12-16 08:58:51 -08:00
Glenn Jocher
8bc0027afc
Update loss criteria constructor ( #1711 )
2020-12-16 08:39:35 -08:00
Glenn Jocher
799724108f
Update C3 module ( #1705 )
2020-12-15 22:13:08 -08:00
Glenn Jocher
7947c86b57
Update COCO train postprocessing ( #1702 )
2020-12-15 21:50:28 -08:00
NanoCode012
035ac82ed0
Fix torch multi-GPU --device error ( #1701 )
...
* Fix torch GPU error
* Update torch_utils.py
single-line device =
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-12-15 20:42:14 -08:00
Glenn Jocher
69ea70cd3b
Add idetection_profile() function to plots.py ( #1700 )
2020-12-15 18:35:47 -08:00
Glenn Jocher
e92245a38c
Simplified PyTorch hub for custom models ( #1677 )
2020-12-12 11:42:27 -08:00
Glenn Jocher
f7a923b446
Simplified PyTorch hub for custom models ( #1677 )
2020-12-12 11:37:53 -08:00
Glenn Jocher
87ca35b922
Simplified PyTorch hub for custom models ( #1677 )
2020-12-12 11:16:57 -08:00
Glenn Jocher
54043a9fa4
Streaming --save-txt bug fix ( #1672 )
...
* Streaming --save-txt bug fix
* cleanup
2020-12-11 15:45:32 -08:00
Glenn Jocher
bc52ea2d5f
Profile() feature addition
2020-12-11 09:34:27 -08:00
Glenn Jocher
ada90e3901
Profile() feature addition ( #1673 )
...
* Profile() feature addition
* cleanup
2020-12-11 09:30:39 -08:00
Glenn Jocher
94a7f55c4e
FReLU bias=False bug fix ( #1666 )
2020-12-10 13:06:15 -08:00
Glenn Jocher
b2bef8f6d8
vast.ai compatability updates ( #1657 )
2020-12-10 06:00:47 -08:00
Glenn Jocher
2e8e02745b
vast.ai compatability updates ( #1657 )
2020-12-09 19:01:08 -08:00
Glenn Jocher
fa8f1fb0e9
Simplify autoshape() post-process ( #1653 )
...
* Simplify autoshape() post-process
* cleanup
* cleanup
2020-12-09 07:44:06 -08:00
Glenn Jocher
84f9bb5d92
Normalized mosaic plotting bug fix ( #1647 )
2020-12-08 18:44:13 -08:00
Glenn Jocher
86f4247515
Hybrid auto-labelling support ( #1646 )
2020-12-08 18:15:39 -08:00
Glenn Jocher
0bb43953eb
Reinstate PR curve sentinel values ( #1645 )
2020-12-08 17:40:49 -08:00
Glenn Jocher
b53c8ac179
Create codeql-analysis.yml ( #1644 )
...
* Create codeql-analysis.yml
* Update ci-testing.yml
2020-12-08 17:03:16 -08:00
Glenn Jocher
68e6ab668b
Hub device mismatch bug fix ( #1619 )
2020-12-06 17:53:38 +01:00
Glenn Jocher
791dadb51c
Pycocotools best.pt after COCO train ( #1616 )
...
* Pycocotools best.pt after COCO train
* cleanup
2020-12-06 14:58:33 +01:00
Glenn Jocher
d929bb656c
Implement default class names ( #1609 )
2020-12-06 12:41:37 +01:00
Glenn Jocher
efa7a915d8
Update download_weights.sh with usage example ( #1613 )
2020-12-06 10:09:09 +01:00
Glenn Jocher
8918e63476
Increase FLOPS robustness ( #1608 )
2020-12-05 11:41:34 +01:00
Glenn Jocher
ba48f867ea
Add bias to Classify() ( #1601 )
2020-12-04 15:06:33 +01:00
Glenn Jocher
f010147578
Update matplotlib.use('Agg') tight ( #1583 )
...
* Update matplotlib tight_layout=True
* udpate
* udpate
* update
* png to ps
* update
* update
2020-12-02 15:53:16 +01:00
Glenn Jocher
784feae30a
Update matplotlib svg backend ( #1580 )
2020-12-02 14:05:12 +01:00
SergioSanchezMontesUAM
2c99560a98
Update .gitignore datasets dir ( #1577 )
2020-12-02 13:01:22 +01:00
Hu Ye
577f298d9b
plot_images() scale bug fix ( #1566 )
...
fix bugs in plot_images
2020-12-01 11:29:59 +01:00
Glenn Jocher
b6ed1104a6
Daemon thread plotting ( #1561 )
...
* Daemon thread plotting
* remove process_batch
* plot after print
2020-11-30 16:44:14 +01:00
Glenn Jocher
68211f72c9
FROM nvcr.io/nvidia/pytorch:20.10-py3 ( #1553 )
...
* FROM pytorch/pytorch:latest
* FROM nvcr.io/nvidia/pytorch:20.10-py3
2020-11-29 17:47:51 +01:00
Glenn Jocher
cff9263490
f.read().strip() ( #1551 )
2020-11-29 11:59:52 +01:00
Glenn Jocher
9fa7f9f598
f.read().strip()
2020-11-29 11:58:14 +01:00
Glenn Jocher
96a84468b9
Update labels_to_image_weights() ( #1545 )
2020-11-28 12:25:45 +01:00
Glenn Jocher
97a5227a1a
Ignore W&B logging dir wandb/ ( #1534 )
2020-11-27 01:38:09 +01:00
Glenn Jocher
5dbf0c96f4
FROM nvcr.io/nvidia/pytorch:20.11-py3
2020-11-27 01:28:33 +01:00
Glenn Jocher
c9798ae0e1
Update plot_study_txt() ( #1533 )
2020-11-26 22:18:17 +01:00
Glenn Jocher
0f2057ed33
Targets scaling bug fix ( #1529 )
2020-11-26 18:33:28 +01:00
Glenn Jocher
2c3efa430b
Mosaic plots bug fix ( #1526 )
2020-11-26 14:02:22 +01:00
Glenn Jocher
12499f1c01
--image_weights bug fix ( #1524 )
2020-11-26 13:25:51 +01:00
Glenn Jocher
9728e2b8ae
--image_weights bug fix ( #1524 )
2020-11-26 11:49:01 +01:00
Glenn Jocher
e9a0ae6f19
Cache bug fix ( #1513 )
...
* Caching bug fix #1508
* np.zeros((0,5)) x2
2020-11-25 20:33:14 +01:00
yxNONG
b3ceffb513
Add QFocalLoss() ( #1482 )
...
* Update loss.py
implement the quality focal loss which is a more general case of focal loss
more detail in https://arxiv.org/abs/2006.04388
In the obj loss (or the case cls loss with label smooth), the targets is no long barely be 0 or 1 (can be 0.7), in this case, the normal focal loss is not work accurately
quality focal loss in behave the same as focal loss when the target is equal to 0 or 1, and work accurately when targets in (0, 1)
example:
targets:
tensor([[0.6225, 0.0000, 0.0000],
[0.9000, 0.0000, 0.0000],
[1.0000, 0.0000, 0.0000]])
___________________________
pred_prob:
tensor([[0.6225, 0.2689, 0.1192],
[0.7773, 0.5000, 0.2227],
[0.8176, 0.8808, 0.1978]])
____________________________
focal_loss
tensor([[0.0937, 0.0328, 0.0039],
[0.0166, 0.1838, 0.0199],
[0.0039, 1.3186, 0.0145]])
______________
qfocal_loss
tensor([[7.5373e-08, 3.2768e-02, 3.9179e-03],
[4.8601e-03, 1.8380e-01, 1.9857e-02],
[3.9233e-03, 1.3186e+00, 1.4545e-02]])
we can see that targets[0][0] = 0.6255 is almost the same as pred_prob[0][0] = 0.6225,
the targets[1][0] = 0.9 is greater then pred_prob[1][0] = 0.7773 by 0.1227
however, the focal loss[0][0] = 0.0937 larger then focal loss[1][0] = 0.0166 (which against the purpose of focal loss)
for the quality focal loss , it implement the case of targets not equal to 0 or 1
* Update loss.py
2020-11-25 19:32:27 +01:00
Glenn Jocher
7d629fde05
Update README.md
2020-11-25 11:00:29 +01:00
Glenn Jocher
d336b31f20
Update README.md
2020-11-25 11:00:00 +01:00
Glenn Jocher
2026d4c5eb
Update caching ( #1496 )
2020-11-24 16:25:21 +01:00
Glenn Jocher
bde5d9aaaa
Update caching ( #1496 )
2020-11-24 16:23:00 +01:00
Glenn Jocher
0822cda781
Update caching ( #1496 )
2020-11-24 16:22:02 +01:00
Glenn Jocher
89c7a5b8dc
Update caching ( #1496 )
2020-11-24 16:13:04 +01:00
igornishka
44f42b1589
changed prints to logging in utils/datasets ( #1315 )
...
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-11-24 16:03:19 +01:00
Glenn Jocher
7aeef2dca5
Prevent PR plotting ( #1489 )
2020-11-24 00:46:01 +01:00
Glenn Jocher
0ddf12e108
Update tutorial.ipynb
2020-11-23 23:38:57 +01:00
Glenn Jocher
bcac052eb9
Creado con Colaboratory
2020-11-23 23:37:23 +01:00
Glenn Jocher
8c0e7092a2
Update README.md
2020-11-23 19:28:35 +01:00
Glenn Jocher
354109c54c
Autosplit ( #1488 )
2020-11-23 18:35:25 +01:00
Glenn Jocher
4798e66fdf
Autosplit ( #1488 )
2020-11-23 17:18:21 +01:00
Glenn Jocher
0a3ff71ae0
Confusion matrix ( #1474 )
...
* initial commit
* add plotting
* matrix to cpu
* bug fix
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* seaborn pandas to requirements.txt
* seaborn pandas to requirements.txt
* update wandb plotting
* remove pandas
* if plots
* if plots
* if plots
* if plots
* if plots
* initial commit
* add plotting
* matrix to cpu
* bug fix
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* update plot
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* cleanup
* seaborn pandas to requirements.txt
* seaborn pandas to requirements.txt
* update wandb plotting
* remove pandas
* if plots
* if plots
* if plots
* if plots
* if plots
* Cat apriori to autolabels
* cleanup
2020-11-23 15:27:14 +01:00
Glenn Jocher
95fa65339f
Cat apriori to autolabels ( #1484 )
2020-11-23 13:38:47 +01:00
Glenn Jocher
201bafc7cf
Sync train and test iou_thresh ( #1465 )
...
* Sync train and test iou_thresh
* Sync train and test iou_thresh
* weights names .lower()
* Notebook update
2020-11-21 12:38:35 +01:00
Glenn Jocher
d81bc47823
Creado con Colaboratory
2020-11-20 13:14:57 +01:00
Glenn Jocher
a70e554fc3
Remove redundant downloads mirror ( #1461 )
2020-11-20 13:10:56 +01:00
Glenn Jocher
46c43b7b17
Creado con Colaboratory
2020-11-20 12:46:46 +01:00
Glenn Jocher
394131c2aa
Use torchvision.ops.nms ( #1460 )
2020-11-20 11:23:36 +01:00
Glenn Jocher
199c9c7874
Detection() device bug fix ( #1455 )
2020-11-19 13:45:36 +01:00
yujun
05a955a3f6
FLOPS computation device bug fix ( #1447 )
...
* Update torch_utils.py
fix issue#113 , inputs device should be same with model parameters' device
* Update torch_utils.py
* Update torch_utils.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-11-19 12:56:20 +01:00
Glenn Jocher
af8aee76b3
Update greetings.yml ( #1442 )
...
* Update greetings.yml
* Update --feature-request.md
* Update --bug-report.md
* Rename --bug-report.md to bug-report.md
* Rename -question.md to question.md
* Rename --feature-request.md to feature-request.md
* Update greetings.yml
* Update greetings.yml
2020-11-19 00:26:33 +01:00
Glenn Jocher
225845e781
Update test.py for IoU in native image-space ( #1439 )
...
* Update test.py for IoU in native image-space
* remove redundant
* gn to device
* remove output scale_coords
* --img-size correction
* update
* native-space labels
* pred to predn
* remove clip_coords()
2020-11-18 22:50:21 +01:00
Glenn Jocher
df0e408962
Merge remote-tracking branch 'origin/master'
2020-11-18 12:27:37 +01:00
Glenn Jocher
64bce3c822
Update labels.png with rectangles fix ( #1432 )
2020-11-18 12:27:30 +01:00
Glenn Jocher
bd29a1c946
PosixPath to str webcam bug fix ( #1437 )
2020-11-18 10:03:41 +01:00
Glenn Jocher
1542ccadb2
Update labels.png with rectangles ( #1432 )
2020-11-18 00:17:33 +01:00
asim266
9ef4760b74
Rename precision_recall_curve.png bug fix ( #1431 )
...
* fix error in train.py line 400, changed precision-recall_curve.png to precision_recall_curve.png and fix error in test.py of {wandb.init() before wandb.log()} by importing wand and initializing it before wand.log()
* Update test.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-11-17 23:47:27 +01:00
Glenn Jocher
412b113ac6
W&B logging bug fix ( #1399 )
2020-11-17 19:17:57 +01:00
Glenn Jocher
4250f84dfb
Update PR curve ( #1428 )
...
* Update PR curve
* legend outside
* list(Path().glob())
2020-11-17 17:29:55 +01:00
Jacobsolawetz
8d2d6d2349
Update img2label_paths() ( #1414 )
2020-11-17 13:26:06 +01:00
Glenn Jocher
97c6a59dd1
PANet anchor order correction ( #1420 )
2020-11-17 10:13:00 +01:00
Glenn Jocher
311de00855
PyTorch Hub and autoShape update ( #1415 )
2020-11-16 23:20:17 +01:00
Glenn Jocher
2aaaec3cca
PyTorch Hub and autoShape update ( #1415 )
2020-11-16 23:16:35 +01:00
Glenn Jocher
7816c0c2d3
PyTorch Hub and autoShape update ( #1415 )
2020-11-16 23:15:43 +01:00
Glenn Jocher
93fc607f07
PyTorch Hub and autoShape update ( #1415 )
2020-11-16 23:14:07 +01:00
Glenn Jocher
f5429260ca
PyTorch Hub and autoShape update ( #1415 )
...
* PyTorch Hub and autoShape update
* comment x for imgs
* reduce comment
2020-11-16 23:09:55 +01:00
Glenn Jocher
92c9b72832
Matplotlib AGG backend ( #1413 )
2020-11-16 16:34:07 +01:00
Glenn Jocher
548a98a391
Recursive directories dataset capability ( #1408 )
...
* Recursive directories dataset capability
* x.split('.')[-1]
* f += glob.glob(f"{p}{os.sep}**.*", recursive=True)
* f += glob.glob(str(p / '**.*'), recursive=True)
* remove . from image and vid formats
* .txt to txt
* str(p / '**' / '*.*')
2020-11-16 16:24:57 +01:00
Glenn Jocher
9c91aeae10
W&B logging add hyperparameters ( #1399 )
...
* W&B logging add hyperparameters
* hyp bug fix and image logging updates
* if plots and wandb:
* cleanup
* wandb/ gitignore add
* cleanup 2
* cleanup 3
* move wandb import to top of file
* wandb evolve
* update import
* wandb.run.finish()
* default anchors: 3
2020-11-16 13:35:34 +01:00
Glenn Jocher
b7007d03b4
Creado con Colaboratory
2020-11-15 11:23:43 +01:00
Glenn Jocher
9f27902368
Improved FLOPS computation ( #1398 )
2020-11-14 14:48:55 +01:00
Glenn Jocher
d8f5fcfe87
Improved FLOPS computation ( #1398 )
...
* Improved FLOPS computation
* update comment
2020-11-14 14:39:46 +01:00
Glenn Jocher
0c26c4e831
Increase pycocotools robustness ( #1396 )
2020-11-14 13:53:58 +01:00
Glenn Jocher
9b0f6e33ee
Increase pycocotools robustness ( #1396 )
2020-11-14 13:09:04 +01:00
Glenn Jocher
cf581305db
Creado con Colaboratory
2020-11-14 12:07:31 +01:00
Glenn Jocher
fe341fa44d
Utils reorganization ( #1392 )
...
* Utils reorganization
* Add new utils files
* cleanup
* simplify
* reduce datasets.py
* remove evolve.sh
* loadWebcam cleanup
2020-11-14 11:50:32 +01:00
Glenn Jocher
379396e896
Yaml constructor posixpath --resume bug fix ( #1390 )
...
* resume fix for yaml constructor posixpath error
* fix update
* remove weights/ dir backup
2020-11-13 19:03:02 +01:00
Glenn Jocher
c4addd7761
Unified '/project/name' results saving ( #1377 )
...
* Project/name update
* Update ci-testing.yml
* address project with path separator failure mode
* Project/name update
* address project with path separator failure mode
* Update ci-testing.yml
* detect.py default --name bug fix
* missing rstrip PR
* train/exp0 to train/exp
2020-11-12 23:37:46 +01:00
weida wang
04081f8102
Trailing --save-txt whitespace bug fix ( #1374 )
...
* update Write results
* Update detect.py
* Update test.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-11-12 17:37:16 +01:00
Glenn Jocher
ce3872f86c
W&B evolution bug fix ( #1373 )
2020-11-12 12:55:52 +01:00
Glenn Jocher
f6b3c96966
Update tutorial.ipynb
2020-11-11 16:15:20 +01:00
Glenn Jocher
9cd46427e4
Creado con Colaboratory
2020-11-11 16:11:49 +01:00
Glenn Jocher
104f5418ea
Creado con Colaboratory
2020-11-10 17:46:36 +01:00
Glenn Jocher
7841d7ba88
Update README.md
2020-11-10 17:12:35 +01:00
Glenn Jocher
6ff0d916fb
Update download_weights.sh ( #1338 )
2020-11-10 15:04:14 +01:00
Glenn Jocher
27138c2ebb
Update download_weights.sh ( #1338 )
2020-11-10 14:28:45 +01:00
Glenn Jocher
67bf9a974e
Replace 'ground truth' with 'labels' ( #1337 )
...
* Replace 'ground truth' with 'labels'
* Using torch... update
2020-11-10 14:15:03 +01:00
Khiem Doan
1c8464e199
Use pathlib instead of low-level module ( #1329 )
...
* Use pathlib instead of low-level module
* Use pathlib instead of low-level module
* Update detect.py
* Update test.py
* reformat
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-11-10 13:01:19 +01:00
Glenn Jocher
19e2482458
PyTorch version to screen and cleanup ( #1325 )
...
* Create flatten_recursive() helper function
* cleanup
* print torch version
2020-11-09 12:24:11 +01:00
Glenn Jocher
81d320109f
--save-txt store_true fix ( #1323 )
2020-11-08 19:53:48 +01:00
Glenn Jocher
177f39e98e
onnx>=1.8.0
2020-11-08 19:41:54 +01:00
Glenn Jocher
4821d076e2
Increment train, test, detect runs/ ( #1322 )
...
* Increment train, test, detect runs/
* Update ci-testing.yml
* inference/images to data/images
* move images
* runs/exp to runs/train/exp
* update 'results saved to %s' str
2020-11-08 19:39:05 +01:00
Glenn Jocher
d3e7778151
imap bug fix
2020-11-07 02:27:31 +01:00
Glenn Jocher
194f16844e
Multi-threaded image caching
2020-11-07 02:18:18 +01:00
Glenn Jocher
ea7e78cb11
Grid indices overflow bug fix ( #1316 )
2020-11-06 19:17:50 +01:00
Glenn Jocher
58f8ba771e
Creado con Colaboratory
2020-11-06 17:12:23 +01:00
Glenn Jocher
fed5d9cdfb
Grid indices overflow bug fix ( #1313 )
2020-11-06 13:40:11 +01:00
Glenn Jocher
bd5cfff8fb
Creado con Colaboratory
2020-11-05 20:01:33 +01:00
Glenn Jocher
ebe563e701
Created using Colaboratory
2020-11-05 19:47:35 +01:00
Glenn Jocher
9ac9ec3449
Created using Colaboratory
2020-11-05 18:34:15 +01:00
Glenn Jocher
74b34872fd
Add Weights & Biases tutorial ( #1290 )
2020-11-05 02:30:13 +01:00
Glenn Jocher
15a10609fe
autoshape() update for PIL greyscale inputs ( #1279 )
...
* autoshape update for PIL greyscale inputs
* autoshape update for PIL greyscale inputs
2020-11-04 14:20:11 +01:00
Junghoon Kim
187f7c2ed1
Change optimizer parameters group method ( #1239 )
...
* Change optimizer parameters group method
* Add torch nn
* Change isinstance method(torch.Tensor to nn.Parameter)
* parameter freeze fix, PEP8 reformat
* freeze bug fix
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-11-02 00:08:36 +01:00
Ayush Chaurasia
96fcde40b8
W&B feature improvements ( #1258 )
...
* W&B feature improvements
This PR add:
* Class to id labels. Now, the caption of bounding boxes will display the class name and the class confidence score.
* The project name is set to "Yolov5" and the run name will be set to opt.logdir
* cleanup
* remove parenthesis on caption
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-11-01 20:54:29 +01:00
Glenn Jocher
2062765e06
auto-download v3.1 models ( #1259 )
2020-11-01 20:11:41 +01:00
Ayush Chaurasia
ca290dca24
Weights & Biases (W&B) Feature Addition ( #1235 )
...
* Add wandb metric logging and bounding box debugging
* Improve formatting, readability
* Remove mutliple path for init, improve formatting
* Add wandb params
* Remove typecasting in bbox coordinates and reformat
* Cleanup
* add wandb to requirements.txt
* minor updates to test.py
* general reorg
* reduce --log-imgs to 10
* clean wandb import
* reverse wandb import assert
* add except AssertionError to try import
* move wandb init to all global ranks
* replace print() with logger.info()
* replace print() with logger.info()
* move wandb.init() bug fix
* project PosixPath to basename bug fix
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-10-31 20:16:35 +01:00
Glenn Jocher
c8c5ef36c9
PyTorch 1.7.0 Compatibility Updates ( #1233 )
...
* torch 1.7.0 compatibility updates
* add inference verification
2020-10-28 15:03:50 +01:00
Glenn Jocher
453acdec67
Update tensorboard logging
2020-10-26 01:08:33 +01:00
Glenn Jocher
7f1640695b
Update hubconf.py ( #1210 )
2020-10-26 01:06:54 +01:00
Glenn Jocher
d3dad42256
Move generated *.json annotations into runs/test ( #1209 )
...
* Move generated *.json annotations into runs/test
* list and string robust
2020-10-25 18:19:44 +01:00
oleg
19c8b2c9b9
Adding --save-dir and --save-conf options to test.py ( #1182 )
...
* Adding --output and --save-conf options to test.py
* Update help fields
* Update test.py
* Make arguments and comments uniform with test.py
* Remove previous and print save_dir on finish
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-10-25 16:50:21 +01:00
Glenn Jocher
0a52ae16dc
README Update ( #1207 )
...
* README Update
* Update README.md
* README Update
* Update README.md
2020-10-25 14:05:28 +01:00
Glenn Jocher
8e9b3d0205
Precision-Recall Curve feature update #1206
2020-10-25 12:59:16 +01:00
Glenn Jocher
ed85038c38
Precision-Recall Curve feature update ( #1206 )
...
* Precision-Recall Curve feature update
* sentinel value update
2020-10-25 12:55:52 +01:00
Glenn Jocher
7fe4a6bc06
FROM nvcr.io/nvidia/pytorch:20.10-py3
2020-10-25 10:49:33 +01:00
Glenn Jocher
481d46cffb
Improved corruption handling during scan and cache ( #999 )
2020-10-24 15:09:19 +02:00
Glenn Jocher
d61930e017
Improved corruption handling during scan and cache ( #999 )
2020-10-24 14:50:50 +02:00
Glenn Jocher
0fda95aaf4
Update cache out-of-date warning
2020-10-23 15:13:42 +02:00
Osama Akhtar
83deec133d
Add confidence score to label txt files ( #994 )
...
* add contrast to conf/class against bbox rectangle color
* added feature to save conf in txt labels
* Update general.py
* Update detect.py
* Update detect.py
* Update detect.py
save_conf variable removed as only used once, so we can use opt.save_conf instead.
* Update detect.py
* Update detect.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-10-20 14:20:27 +02:00
Yi_Zhang
f532bc68a9
GhostConv() bug fix ( #1176 )
2020-10-20 13:42:11 +02:00
Shiwei Song
9291daa6f7
fix padding for rectangular inference ( #1165 )
...
Co-authored-by: swsong <swsong@stratosphere.mobi>
2020-10-19 12:22:22 +02:00
Glenn Jocher
3b57cb5641
Simplified inference ( #1153 )
2020-10-15 20:10:08 +02:00
Jirka Borovec
c67e72200e
fix compatibility for hyper config ( #1146 )
...
* fix/hyper
* Hyp giou check to train.py
* restore general.py
* train.py overwrite fix
* restore general.py and pep8 update
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-10-15 15:05:58 +02:00
Glenn Jocher
4d3680c81d
Minor import and spelling updates ( #1133 )
2020-10-13 17:24:27 +02:00
Glenn Jocher
4346b13a40
Dataset download bash script updates ( #1132 )
2020-10-13 15:58:03 +02:00
Jirka Borovec
00917a6225
update expt name comment and folder parsing for training ( #978 )
...
* comment
* fix parsing
* fix evolve
* folder
* tqdm
* Update train.py
* Update train.py
* reinstate anchors into meta dict
anchor evolution is working correctly now
* reinstate logger
prefer the single line readout for concise logging, which helps simplify notebook and tutorials etc.
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-10-13 14:10:21 +02:00
Glenn Jocher
0ada058f63
Generalized regression criterion renaming ( #1120 )
2020-10-11 17:25:17 +02:00
Glenn Jocher
10c85bf4eb
FROM nvcr.io/nvidia/pytorch:20.09-py3
2020-10-11 16:25:14 +02:00
Glenn Jocher
d45e349a1e
Rearrange export input after checks ( #1118 )
...
img size checks are warnings rather than errors, so current implementation allows improperly formed model inputs.
2020-10-11 16:23:36 +02:00
Glenn Jocher
d87cf7ecb9
Update requirements.txt coremltools==4.0
2020-10-11 16:21:39 +02:00
Glenn Jocher
c2403d785c
fuse() bug fix
2020-10-11 00:42:54 +02:00
Glenn Jocher
5fac5ad165
Precision-Recall Curve Feature Addition ( #1107 )
...
* initial commit
* Update general.py
Indent update
* Update general.py
refactor duplicate code
* 200 dpi
2020-10-09 14:50:59 +02:00
Glenn Jocher
9eae82e3a3
Update stale.yml exempt-issue-labels bug fix ( #1098 )
2020-10-08 16:41:04 +02:00
NanoCode012
77940c3f42
Remove ignore for git files ( #1099 )
2020-10-08 15:07:27 +02:00
Frederik
d11504aee1
Remove image open on macos ( #1086 )
...
* added option to not open on save
* Update detect.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-10-07 16:16:10 +02:00
Glenn Jocher
5b8cf247af
venv* ignore update
2020-10-06 15:17:12 +02:00
Glenn Jocher
124f0e8212
torchvision nms bug fix
2020-10-06 15:09:24 +02:00
Glenn Jocher
66676eb039
init_torch_seeds >> init_seeds bug fix
2020-10-06 15:00:47 +02:00
Glenn Jocher
883924d9dc
classifier, export, torch seed updates
2020-10-06 14:54:02 +02:00
Jiacong Fang
c5d2331897
Fix increment_dir to use run_xxx for logdir ( #1058 )
...
* Fix increment_dir to use run_xxx for logdir
Rerunning train.py with logdir in the form of `run_xxx` causes index slicing in
```
n = max([int(x[len(dir):x.find('_') if '_' in Path(x).name else None]) for x in d]) + 1 # increment
```
to underflow.
* Replace find with rfind
2020-10-05 15:46:32 +02:00
Glenn Jocher
35fe98543c
Update requirements.txt coremltools==4.0b4
2020-10-05 01:47:04 +02:00
Mingyu Wang
2d2371d2d1
Update get_voc.sh data download URLs ( #1077 )
2020-10-04 19:35:05 +02:00
Glenn Jocher
a12698f4c9
Update ci-testing.yml reflecting sys.path additions ( #869 )
...
* Update ci-testing.yml
* Update yolo.py
* Update ci-testing.yml
* Update export.py
* Update yolo.py
2020-10-04 18:50:32 +02:00
PetrDvoracek
d55c326dda
export.py folder sys.path addition ( #1052 )
2020-10-04 17:42:05 +02:00
haoyuefan
7220cee1d1
mosaic4 bottom left image fix ( #1021 )
...
fix a bug in load_mosaic
2020-09-23 09:51:33 -07:00
Guilhen
702c4fa53e
adding the configuration to deploy yolov5 in in app engine ( #964 )
...
* add the configuration to deploy yolov5 in a docker container in app engine on google cloud
* remove the duplicated requirements, place the google app engine files in utils
* remove the unused requirements
Co-authored-by: guilhembau <guilhem@6dbytes.com>
2020-09-22 11:48:44 -07:00
stone99
b8f656742d
feat: add rtmp support ( #1009 )
...
* feat: add rtmp support
* Update detect.py
pass tuple to source.startswith()
Co-authored-by: ryan.fu <ryan.fu@aylaasia.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-09-22 11:37:49 -07:00
Glenn Jocher
4fce0096fa
model.add_nms() method
2020-09-20 16:31:40 -07:00
Glenn Jocher
2f77cf33f6
.fuse() additional error checking
2020-09-20 12:04:20 -07:00
Glenn Jocher
89655a84f2
.fuse() gradient introduction bug fix
2020-09-20 11:57:19 -07:00
Glenn Jocher
c4cb78570c
add NMS to pretrained pytorch hub models
2020-09-18 18:17:11 -07:00
Glenn Jocher
5a9c5c1d3b
add mosaic and warmup to hyperparameters ( #931 )
2020-09-13 14:08:06 -07:00
Glenn Jocher
f1c63e2784
add mosaic and warmup to hyperparameters ( #931 )
2020-09-13 14:03:54 -07:00
Glenn Jocher
806e75f2b1
self.label_files bug fix ( #958 )
2020-09-13 11:38:23 -07:00
Glenn Jocher
6062bb7dee
print self.yaml['nc'] override update
2020-09-11 17:44:11 -07:00
Glenn Jocher
a62a45b2dd
prevent testloader caching on --notest
2020-09-11 16:59:13 -07:00
tomguluson92
35dc935504
remove `nn.Conv2d` in default settings ( #949 )
2020-09-11 16:35:48 -07:00
Glenn Jocher
c54e39464c
check_file() assert unique
2020-09-11 14:33:06 -07:00
Glenn Jocher
720645d96a
LoadImagesAndLabels() /images/ to /labels/ fix ( #928 )
2020-09-10 12:29:05 -07:00
Glenn Jocher
d49c52eee3
_RepeatSampler outside of InfiniteDataLoader
2020-09-10 12:27:35 -07:00
Glenn Jocher
bb8872ea5f
Dockerfile sudo docker "kill all" bug fix
2020-09-08 00:56:35 -07:00
Glenn Jocher
cab36f72a8
add .git to .dockerignore
2020-09-06 22:53:12 -07:00
Glenn Jocher
9c0efdde9f
glob.glob(recursive=True) search ( #917 )
2020-09-06 22:52:28 -07:00
Glenn Jocher
c8e51812a5
hyp evolution force-autoanchor fix
2020-09-04 13:13:10 -07:00
Glenn Jocher
c687d5c129
reorganize train initialization steps
2020-09-04 12:25:53 -07:00
Glenn Jocher
bc1fd13a7a
gsutil cp hyp evolution bug fix ( #876 )
2020-09-03 20:29:08 -07:00
Glenn Jocher
44cdcc7e0b
hyp['anchors'] evolution update
2020-09-03 12:54:22 -07:00
Glenn Jocher
ffe9eb4238
remove if platform.system() == 'Darwin' checks
2020-09-03 11:41:33 -07:00
Glenn Jocher
23a7f29e2d
Update hyp.finetune.yaml on 306 VOC generations result
2020-09-03 01:20:30 -07:00
Glenn Jocher
0a0675da12
Merge remote-tracking branch 'origin/master'
2020-09-03 01:07:48 -07:00
Glenn Jocher
354a97e4ef
Create sotabench.py
2020-09-03 01:06:59 -07:00
NanoCode012
d8274d0434
Fix results_file not renaming ( #903 )
2020-09-03 00:47:50 -07:00
Glenn Jocher
281d78c105
Update train.py ( #902 )
...
* Update train.py with simplified ckpt names
* Return default hyps to hyp.scratch.yaml
Leave line commented for future use once mystery of best finetuning hyps to apply becomes clearer.
* Force test_batch*_pred.jpg replot on final epoch
This will allow you to see predictions final testing run after training completes in runs/exp0
2020-09-02 15:08:43 -07:00
Glenn Jocher
d68179953d
Update export.py
2020-09-02 13:23:29 -07:00
Naman Gupta
6f3db5e662
Remove autoanchor and class checks on resumed training ( #889 )
...
* Class frequency not calculated on resuming training
Calculation of class frequency is not needed when resuming training.
Anchors can still be recalculated whether resuming or not.
* Check rank for autoanchor
* Update train.py
no autoanchor checks on resume
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-09-02 09:05:31 -07:00
tkianai
c5969f79f5
add support for DWConv fuse operation ( #898 )
...
* the value should be a list to unpacking
* filter the None labels
* update readme to remove apex dependency
* add support for DWConv fuse operation
2020-09-01 22:18:42 -07:00
Glenn Jocher
d3f9bf2bb7
Update datasets.py
2020-09-01 17:02:47 -07:00
NanoCode012
901243c780
Fix relative path for VOC download ( #880 )
...
Cleaned up code
2020-08-31 16:06:10 -07:00
Glenn Jocher
3e04d20c7d
Merge remote-tracking branch 'origin/master'
2020-08-31 11:07:00 -07:00
Glenn Jocher
f06e2d518c
opt.image_weights bug fix ( #885 )
2020-08-31 11:05:37 -07:00
NanoCode012
1e15aad6f9
Add InfiniteDataLoader class ( #876 )
...
* Add InfiniteDataLoader
Only initializes at first epoch. Saves time.
* Moved class to a better location
2020-08-31 11:01:25 -07:00
Glenn Jocher
69ff781ca5
opt.img_weights bug fix ( #885 )
2020-08-31 10:33:07 -07:00
Glenn Jocher
987c226849
seaborn plotting correlogram addition
2020-08-29 15:13:58 -07:00
Glenn Jocher
08e97a2f88
Update hyperparameters to add lrf, anchors
2020-08-28 14:58:43 -07:00
rafale77
9776e70988
torch.ops.torchvision.nms ( #860 )
...
Don't load the entire torchvision library just for nms when the function is already in the torch library.
2020-08-27 11:13:41 -07:00
Glenn Jocher
0c01afc390
Update Dockerfile to upgrade pip
2020-08-26 14:44:43 -07:00
Glenn Jocher
62e037419f
Update Dockerfile FROM nvcr.io/nvidia/pytorch:20.08-py3
2020-08-26 00:44:34 -07:00
Glenn Jocher
31d6c389f2
Update general.py plot_evolution()
2020-08-25 23:08:14 -07:00
Glenn Jocher
1e7674d4dd
Update export.py --img-size comment
2020-08-25 23:07:22 -07:00
Glenn Jocher
a21bd0687c
Update train.py forward simplification
2020-08-25 13:48:03 -07:00
Willie Maddox
455f7b8f76
Update general.py ( #823 )
...
Fixes #822
`init_seeds` from `torch_utils` import is being overwritten by function `init_seeds` in `general.py`
2020-08-25 13:01:17 -07:00
Glenn Jocher
5a7d79fbe6
Update general.py bbox_iou() with eps improvements ( #736 )
...
eps reduced to 1e-9 for additional precaution.
2020-08-25 12:56:39 -07:00
Glenn Jocher
82ed33a052
generalize webcam detection with opt.source.isnumeric() (yolov3 #1462 )
2020-08-25 11:07:38 -07:00
Glenn Jocher
09402a2174
torch.from_tensor() bug fix
2020-08-25 03:14:17 -07:00
Glenn Jocher
4fb8cb353f
Update export.py with v3.0 Hardswish() support ( #831 )
2020-08-24 21:59:26 -07:00
Glenn Jocher
4d7f222f73
Update export.py with v3.0 Hardswish() support
2020-08-24 21:47:49 -07:00
Glenn Jocher
8666bc507e
Create evolve.sh for infinite hyp evolution
2020-08-24 20:27:28 -07:00
Glenn Jocher
a8751e50de
model.fuse() fix for export.py ( #827 )
2020-08-24 19:27:54 -07:00
Glenn Jocher
5f07782f56
Update requirements.txt for coremltools kmeans quantization
2020-08-22 20:50:53 -07:00
Glenn Jocher
71209a6099
exportable Hardswish() implementation
2020-08-22 16:59:31 -07:00
Glenn Jocher
fd71fe8451
Update hyp.finetune.yaml
2020-08-22 16:18:53 -07:00
Glenn Jocher
f7e075fe93
gsutil cp yaml when evolving to GCP bucket
2020-08-22 15:47:39 -07:00
Glenn Jocher
9dbaa1bbbe
Update plot_results()
2020-08-22 15:32:05 -07:00
Glenn Jocher
83dc540b1d
remove ema.ema hasattr(ema, 'module') check
2020-08-22 15:18:39 -07:00
Glenn Jocher
1309400e6b
Update hyp.finetune.yaml on VOC results
2020-08-22 15:05:47 -07:00
Glenn Jocher
fb05681a04
Update requirements.txt to coremltools==4.0b3
2020-08-22 14:22:15 -07:00
Glenn Jocher
d0f98c0095
Update yolo.py with model_info(verbose=False)
2020-08-21 16:20:45 -07:00
Glenn Jocher
b9851222bf
Merge remote-tracking branch 'origin/master'
2020-08-21 15:03:09 -07:00
Glenn Jocher
c171e45cda
Update test.py with set() ( #806 )
2020-08-21 15:03:03 -07:00
Glenn Jocher
ea5e97fb9b
FP16 NMS ( #814 )
2020-08-21 14:44:25 -07:00
Glenn Jocher
b42e8a531b
optimize imports
2020-08-20 21:17:40 -07:00
Glenn Jocher
4447f4b937
--resume to same runs/exp directory ( #765 )
...
* initial commit
* add weight backup dir on resume
2020-08-20 18:24:33 -07:00
Glenn Jocher
5e0b90de8f
CIoU nan bug fix ( #736 )
2020-08-20 10:37:55 -07:00
NanoCode012
fb4fc8cd02
Fix ema attribute error in DDP mode ( #775 )
...
* Fix ema error in DDP mode
* Update train.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-08-18 09:52:21 -07:00
Glenn Jocher
da35727c68
--save-txt bug fix ( #763 )
2020-08-17 17:14:07 -07:00
Glenn Jocher
ebafd1ead5
single command --resume ( #756 )
...
* single command --resume
* else check files, remove TODO
* argparse.Namespace()
* tensorboard lr
* bug fix in get_latest_run()
2020-08-17 16:28:43 -07:00
Francisco Ingham
26c3b11fdc
Update torch_utils.py ( #751 )
2020-08-16 13:58:59 -07:00
Glenn Jocher
2077d78880
update Dockerfile with libgl1-mesa-glx
2020-08-15 09:53:22 -07:00
Glenn Jocher
f5da528d28
reformat code
2020-08-14 11:53:44 -07:00
Glenn Jocher
b35f76e3d0
update .dockerignore
2020-08-14 11:29:15 -07:00
Glenn Jocher
fe80bed695
Update stale.yml
2020-08-14 10:58:33 -07:00
Glenn Jocher
7b2b52193d
update requirements.txt
2020-08-14 10:14:48 -07:00
Glenn Jocher
5991d144c1
Update README.md
2020-08-14 00:04:12 -07:00
Quan Lin
66744a0df1
Update utils/google_utils.py ( #733 )
...
To download weights from v3.0 instead of v2.0
2020-08-13 18:44:14 -07:00
Glenn Jocher
06bdd3955c
Update README.md
2020-08-13 14:31:08 -07:00
Glenn Jocher
916d4aad9a
v3.0 Release ( #725 )
...
* initial commit
* remove yolov3-spp from test.py study
* update study --img range
* update mAP
* cleanup and speed updates
* update README plot
2020-08-13 14:25:05 -07:00
tkianai
1ddf692bf8
Update readme to remove apex dependency ( #727 )
...
* the value should be a list to unpacking
* filter the None labels
* update readme to remove apex dependency
2020-08-12 21:18:29 -07:00
Hatovix
56c2c344ff
Fix list paths ( #721 )
...
* Add list paths on check_dataset
* missing raise statement
* Update general.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-08-12 18:53:38 -07:00
NanoCode012
0892c44bc4
Fix Logging ( #719 )
...
* Add logging setup
* Fix fusing layers message
* Fix logging does not have end
* Add logging
* Change logging to use logger
* Update yolo.py
I tried this in a cloned branch, and everything seems to work fine
* Update yolo.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-08-12 14:18:19 -07:00
Marc
a925f283a7
max workers for dataloader ( #722 )
2020-08-12 13:57:36 -07:00
Glenn Jocher
7875f4c1fb
reverse plotting low to high confidence
2020-08-12 13:50:16 -07:00
Glenn Jocher
d2da523053
Merge remote-tracking branch 'origin/master'
2020-08-11 20:11:58 -07:00
Glenn Jocher
9f482cbcb8
utils.general comment updates/bug fixes
2020-08-11 20:11:44 -07:00
Marc
1f92422e20
Github release assets model autodownload ( #711 )
...
* assets autodownload
* Update google_utils.py
* Update google_utils.py
* Update google_utils.py
* Update google_utils.py
* Update google_utils.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-08-11 17:17:24 -07:00
NanoCode012
4949401a94
Fix redundant outputs via Logging in DDP training ( #500 )
...
* Change print to logging
* Clean function set_logging
* Add line spacing
* Change leftover prints to log
* Fix scanning labels output
* Fix rank naming
* Change leftover print to logging
* Reorganized DDP variables
* Fix type error
* Make quotes consistent
* Fix spelling
* Clean function call
* Add line spacing
* Update datasets.py
* Update train.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-08-11 11:18:45 -07:00
tkianai
542833c997
Filter the None labels ( #705 )
...
* the value should be a list to unpacking
* filter the None labels
2020-08-11 11:15:48 -07:00
Glenn Jocher
e71fd0ec0b
Model freeze capability ( #679 )
2020-08-10 22:49:43 -07:00
tkianai
9ae868364a
the value should be a list to unpacking ( #688 )
2020-08-10 11:23:48 -07:00
Glenn Jocher
8e5c66579b
update train.py remove save_json final_epoch
2020-08-09 21:24:40 -07:00
Glenn Jocher
41523e2c91
Dataset autodownload feature addition ( #685 )
...
* initial commit
* move download scripts into data/scripts
* new check_dataset() function in general.py
* move check_dataset() out of with context
* Update general.py
* DDP update
* Update general.py
2020-08-09 20:52:57 -07:00
NanoCode012
3d8ed0a76b
Fix missing model.stride in DP and DDP mode ( #683 )
2020-08-09 11:01:36 -07:00
Glenn Jocher
a0ac5adb7b
Single-source training update ( #680 )
2020-08-09 02:27:35 -07:00
Glenn Jocher
3c6e2f7668
Single-source training ( #680 )
...
* Single-source training
* Extract hyperparameters into seperate files
* weight decay scientific notation yaml reader bug fix
* remove import glob
* intersect_dicts() implementation
* 'or' bug fix
* .to(device) bug fix
2020-08-09 02:12:44 -07:00
NanoCode012
d7cfbc47ab
Fix unrecognized local rank argument ( #676 )
2020-08-08 16:40:10 -07:00
Glenn Jocher
0e207551aa
update greetings.yml with pull_request_target ( #677 )
...
Should resolve "Resource not accessible by integration" error message.
https://github.com/actions/first-interaction/issues/10#issuecomment-670968624
2020-08-08 15:35:40 -07:00
Glenn Jocher
e742dcf417
update requirements.txt
2020-08-08 12:57:05 -07:00
Glenn Jocher
3fcd365ba3
Fix curl download on Windows ( #669 )
2020-08-07 12:13:55 -07:00
NanoCode012
fe5b3f8712
Fix curl download on Windows ( #669 )
...
* Update ci-testing.yml
* Fix windows download
* Fix cookie and curl download issue from gdrive
* Revert "Update ci-testing.yml"
This reverts commit 7389d2238df4dd8bd3b6ddded0f12e551c8fd0b1.
* Update google_utils.py
PEP8
* Update google_utils.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-08-07 12:10:59 -07:00
Glenn Jocher
93684531c6
train.py --logdir argparser addition ( #660 )
...
* train.py --logdir argparser addition
* train.py --logdir argparser addition
2020-08-06 22:26:38 -07:00
NanoCode012
886b9841c8
Add Multi-Node support for DDP Training ( #504 )
...
* Add support for multi-node DDP
* Remove local_rank confusion
* Fix spacing
2020-08-06 11:15:24 -07:00
Glenn Jocher
7eaf225d55
zero-target training bug fix ( #609 )
2020-08-05 13:35:31 -07:00
hopesala
d0d3dd1040
Update detect.py ( #629 )
...
* Update detect.py
Update print info for relative path and absolute
otherwise the info below is misleading
Results saved to /workspace//output_path
* Update detect.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-08-05 12:01:24 -07:00
Glenn Jocher
b8f3b1b373
Update ci-testing.yml ( #637 )
...
* Update ci-testing.yml
* Update ci-testing.yml
2020-08-05 11:42:51 -07:00
lorenzomammana
728efa6576
Fix missing imports ( #627 )
...
* Fix missing imports
* Update detect.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-08-04 12:22:15 -07:00
Glenn Jocher
941cb2680b
Merge remote-tracking branch 'origin/master'
2020-08-03 19:55:57 -07:00
Glenn Jocher
52b626392f
update README.md
2020-08-03 19:55:12 -07:00
Wang Xinyu
7ecf09d6da
Update README.md, deploy model with tensorrt ( #623 )
...
* Update README.md, deploy model with tensorrt
* Update README.md
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-08-03 19:41:50 -07:00
Glenn Jocher
4ee8adb04b
Merge remote-tracking branch 'origin/master'
2020-08-03 17:18:37 -07:00
Glenn Jocher
f346da9f2b
update activations.py
2020-08-03 17:18:31 -07:00
Glenn Jocher
f807e7b867
Update README.md
2020-08-03 11:11:12 -07:00
Glenn Jocher
937b9db977
Update README.md
2020-08-03 11:09:46 -07:00
Glenn Jocher
eb99dff9ef
import random bug fix ( #614 )
2020-08-03 10:52:59 -07:00
Jirka Borovec
d5b6416c87
Explicit Imports ( #498 )
...
* expand imports
* optimize
* miss
* fix
2020-08-02 15:47:36 -07:00
Glenn Jocher
ec7a926163
AutoAnchor update to display anchors/target
2020-08-02 14:38:45 -07:00
Glenn Jocher
d989bc9260
remove NBSP
2020-08-02 14:23:05 -07:00
Glenn Jocher
023e37807c
hyperparameter evolution update ( #566 )
2020-08-02 13:18:03 -07:00
Glenn Jocher
64e6d199ba
hyperparameter evolution update ( #566 )
2020-08-02 13:17:26 -07:00
Glenn Jocher
fdbcc8fd7f
hyperparameter evolution update ( #566 )
2020-08-02 12:30:34 -07:00
Glenn Jocher
f1096b2cf7
hyperparameter evolution update ( #566 )
2020-08-02 10:32:04 -07:00
Glenn Jocher
305c6a028a
compute_loss() leaf variable update
2020-08-02 10:30:43 -07:00
Glenn Jocher
c1a2a7a411
hyperparameter evolution bug fix ( #566 )
2020-08-01 23:00:10 -07:00
Glenn Jocher
8074745908
hyperparameter evolution bug fix ( #566 )
2020-08-01 19:24:14 -07:00
Glenn Jocher
e32abb5fb9
hyperparameter evolution bug fix ( #566 )
2020-08-01 19:15:48 -07:00
Glenn Jocher
8056fe2db8
hyperparameter evolution bug fix ( #566 )
2020-08-01 15:07:40 -07:00
Glenn Jocher
61b5733c36
update requirements.txt
2020-08-01 14:00:38 -07:00
Glenn Jocher
3e5e44499d
update requirements.txt
2020-08-01 14:00:14 -07:00
Glenn Jocher
127cbeb3f5
hyperparameter expansion to flips, perspective, mixup
2020-08-01 13:47:54 -07:00
Glenn Jocher
6f08e8bcce
add rebase.yml
2020-08-01 12:10:46 -07:00
Glenn Jocher
23d2bde01f
leaf variable --single-cls training bug fix ( #593 )
2020-08-01 11:42:41 -07:00
Glenn Jocher
bcd452c482
replace random_affine() with random_perspective()
...
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-31 15:53:52 -07:00
Glenn Jocher
bb87276d80
update build_targets() ( #589 )
...
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-31 14:34:13 -07:00
Glenn Jocher
8bf3cff875
PyTorch 1.6.0 update with native AMP ( #573 )
2020-07-31 11:10:03 -07:00
Glenn Jocher
60d5dc0294
PyTorch 1.6.0 update with native AMP ( #573 )
2020-07-31 10:54:08 -07:00
Liu Changyu
c020875b17
PyTorch 1.6.0 update with native AMP ( #573 )
...
* PyTorch have Automatic Mixed Precision (AMP) Training.
* Fixed the problem of inconsistent code length indentation
* Fixed the problem of inconsistent code length indentation
* Mixed precision training is turned on by default
2020-07-31 10:52:45 -07:00
Glenn Jocher
48e15be498
Update --bug-report.md
2020-07-31 00:23:54 -07:00
Glenn Jocher
c8892672a7
Funnel ReLU (FReLU) @staticmethod bug fix ( #556 )
...
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-30 17:38:15 -07:00
Glenn Jocher
131782a2aa
Funnel ReLU (FReLU) ( #556 )
...
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-30 17:35:34 -07:00
AlexWang1900
4b074d9d9d
Funnel ReLU (FReLU) ( #556 )
...
* fix #541 #542
* Update train.py
* Add Frelu
* Update activations.py
PEP8 and format updates for commonality with models.common.Conv()
* Update activations.py
Update case
* Update activations.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-30 17:25:49 -07:00
Glenn Jocher
5414e53026
update ci-testing.yml with on: cron ( #572 )
...
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-30 14:41:50 -07:00
Glenn Jocher
a91cdd2ead
update stale.yml
...
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-30 13:57:20 -07:00
Glenn Jocher
1df494e5fe
Merge remote-tracking branch 'origin/master'
2020-07-30 11:31:54 -07:00
Glenn Jocher
2268f9c44f
update *.yaml output layer comments
2020-07-30 11:31:47 -07:00
Laughing
4e2b9ecc7e
LR --resume repeat bug fix ( #565 )
2020-07-30 10:48:20 -07:00
Liu Changyu
adaf1d8ac1
Update models/hub *.yaml files for v2.0 ( #546 )
...
* fix #543 issue
* Update yolov3-spp.yaml
* Update yolov5-fpn.yaml
* Update yolov5-panet.yaml
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-29 14:02:07 -07:00
YuriRibeiro
7d78b17a69
Fix utils.py nonzero() warning ( #551 )
2020-07-29 12:14:11 -07:00
AlexWang1900
a209a32019
Fix bug #541 #542 ( #545 )
...
* fix #541 #542
* Update train.py
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-28 18:31:01 -07:00
Glenn Jocher
8ad6e53760
Update greetings.yml PR message ( #519 )
...
* Update greetings.yml
* Update greetings.yml
2020-07-28 15:48:01 -07:00
Glenn Jocher
aa1392a02e
Merge remote-tracking branch 'origin/master'
2020-07-28 15:39:33 -07:00
Glenn Jocher
43a616a955
PyTorch 1.6.0 compatability updates
2020-07-28 15:38:56 -07:00
Glenn Jocher
91af0401d8
PyTorch 1.6.0 compatibility updates
2020-07-28 14:48:33 -07:00
NanoCode012
7f8471eaeb
--notest bug fix ( #518 )
...
* Fix missing results_file and fi when notest passed
* Update train.py
reverting previous changes and removing functionality from 'if not opt.notest or final_epoch: # Calculate mAP' loop.
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-25 10:24:39 -07:00
Glenn Jocher
fd532d9ce3
Update utils.py strip_optimizer() ( #509 )
...
Follow-on update that I missed adding into PR 509.
2020-07-24 19:30:45 -07:00
Glenn Jocher
fe094333e8
Update utils.py strip_optimizer() ( #509 )
...
Follow-on update that I missed adding into PR 509.
2020-07-24 19:30:37 -07:00
Glenn Jocher
0032af2980
Update utils.py strip_optimizer() ( #509 )
2020-07-24 19:26:56 -07:00
Glenn Jocher
1d17b9af0f
update yolo.py TTA flexibility and extensibility ( #506 )
...
* update yolo.py TTA flexibility and extensibility
* Update scale_img()
2020-07-24 11:42:23 -07:00
Glenn Jocher
4b5f4806bc
Update datasets.py ( #494 )
2020-07-23 22:49:54 -07:00
Glenn Jocher
3b394b9e2c
Update README.md
2020-07-23 15:49:10 -07:00
Glenn Jocher
2a149a48d6
Update README.md
2020-07-23 15:43:53 -07:00
Glenn Jocher
54e1762ef5
Update README.md
2020-07-23 15:43:40 -07:00
Glenn Jocher
9da56b62dd
v2.0 Release ( #491 )
...
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-23 15:34:23 -07:00
Glenn Jocher
5e970d45c4
Update train.py ( #462 )
2020-07-22 12:32:03 -07:00
NanoCode012
999804fea9
Add link to multi-gpu train tutorial ( #476 )
...
* Add link to multi-gpu train tutorial
* Update README.md
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-22 11:56:48 -07:00
Glenn Jocher
3edc38f603
update train.py gsutil bucket fix ( #463 )
2020-07-21 23:25:33 -07:00
Glenn Jocher
776555771f
update train.py gsutil bucket fix ( #463 )
2020-07-21 23:21:36 -07:00
Glenn Jocher
4ffd9779d3
plotting improvements ( #471 )
...
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-21 14:07:11 -07:00
pritul dave
1e95337f3a
Update datasets.py ( #454 )
2020-07-20 10:33:09 -07:00
Glenn Jocher
b569ed6d6b
pretrained model loading bug fix ( #450 )
...
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-19 22:12:55 -07:00
Glenn Jocher
07a82f4d44
Update ci-testing.yml ( #445 )
...
* Update ci-testing.yml
* Update ci-testing.yml
* Update requirements.txt
* Update requirements.txt
* Update google_utils.py
* Update test.py
* Update ci-testing.yml
2020-07-19 15:44:11 -07:00
yzchen
4102fcc9a7
[WIP] Feature/ddp fixed ( #401 )
...
* Squashed commit of the following:
commit d738487089e41c22b3b1cd73aa7c1c40320a6ebf
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 14 17:33:38 2020 +0700
Adding world_size
Reduce calls to torch.distributed. For use in create_dataloader.
commit e742dd9619d29306c7541821238d3d7cddcdc508
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 14 15:38:48 2020 +0800
Make SyncBN a choice
commit e90d4004387e6103fecad745f8cbc2edc918e906
Merge: 5bf8beb cd90360
Author: yzchen <Chenyzsjtu@gmail.com>
Date: Tue Jul 14 15:32:10 2020 +0800
Merge pull request #6 from NanoCode012/patch-5
Update train.py
commit cd9036017e7f8bd519a8b62adab0f47ea67f4962
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 14 13:39:29 2020 +0700
Update train.py
Remove redundant `opt.` prefix.
commit 5bf8bebe8873afb18b762fe1f409aca116fac073
Merge: c9558a9 a1c8406
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 14 14:09:51 2020 +0800
Merge branch 'master' of https://github.com/ultralytics/yolov5 into feature/DDP_fixed
commit c9558a9b51547febb03d9c1ca42e2ef0fc15bb31
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 14 13:51:34 2020 +0800
Add device allocation for loss compute
commit 4f08c692fb5e943a89e0ee354ef6c80a50eeb28d
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Thu Jul 9 11:16:27 2020 +0800
Revert drop_last
commit 1dabe33a5a223b758cc761fc8741c6224205a34b
Merge: a1ce9b1 4b8450b
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Thu Jul 9 11:15:49 2020 +0800
Merge branch 'feature/DDP_fixed' of https://github.com/MagicFrogSJTU/yolov5 into feature/DDP_fixed
commit a1ce9b1e96b71d7fcb9d3e8143013eb8cebe5e27
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Thu Jul 9 11:15:21 2020 +0800
fix lr warning
commit 4b8450b46db76e5e58cd95df965d4736077cfb0e
Merge: b9a50ae 02c63ef
Author: yzchen <Chenyzsjtu@gmail.com>
Date: Wed Jul 8 21:24:24 2020 +0800
Merge pull request #4 from NanoCode012/patch-4
Add drop_last for multi gpu
commit 02c63ef81cf98b28b10344fe2cce08a03b143941
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Wed Jul 8 10:08:30 2020 +0700
Add drop_last for multi gpu
commit b9a50aed48ab1536f94d49269977e2accd67748f
Merge: ec2dc6c 121d90b
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 7 19:48:04 2020 +0800
Merge branch 'master' of https://github.com/ultralytics/yolov5 into feature/DDP_fixed
commit ec2dc6cc56de43ddff939e14c450672d0fbf9b3d
Merge: d0326e3 82a6182
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 7 19:34:31 2020 +0800
Merge branch 'feature/DDP_fixed' of https://github.com/MagicFrogSJTU/yolov5 into feature/DDP_fixed
commit d0326e398dfeeeac611ccc64198d4fe91b7aa969
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 7 19:31:24 2020 +0800
Add SyncBN
commit 82a6182b3ad0689a4432b631b438004e5acb3b74
Merge: 96fa40a 050b2a5
Author: yzchen <Chenyzsjtu@gmail.com>
Date: Tue Jul 7 19:21:01 2020 +0800
Merge pull request #1 from NanoCode012/patch-2
Convert BatchNorm to SyncBatchNorm
commit 050b2a5a79a89c9405854d439a1f70f892139b1c
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 7 12:38:14 2020 +0700
Add cleanup for process_group
commit 2aa330139f3cc1237aeb3132245ed7e5d6da1683
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 7 12:07:40 2020 +0700
Remove apex.parallel. Use torch.nn.parallel
For future compatibility
commit 77c8e27e603bea9a69e7647587ca8d509dc1990d
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 7 01:54:39 2020 +0700
Convert BatchNorm to SyncBatchNorm
commit 96fa40a3a925e4ffd815fe329e1b5181ec92adc8
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Mon Jul 6 21:53:56 2020 +0800
Fix the datset inconsistency problem
commit 16e7c269d062c8d16c4d4ff70cc80fd87935dc95
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Mon Jul 6 11:34:03 2020 +0800
Add loss multiplication to preserver the single-process performance
commit e83805563065ffd2e38f85abe008fc662cc17909
Merge: 625bb49 3bdea3f
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Fri Jul 3 20:56:30 2020 +0800
Merge branch 'master' of https://github.com/ultralytics/yolov5 into feature/DDP_fixed
commit 625bb49f4e52d781143fea0af36d14e5be8b040c
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Thu Jul 2 22:45:15 2020 +0800
DDP established
* Squashed commit of the following:
commit 94147314e559a6bdd13cb9de62490d385c27596f
Merge: 65157e2 37acbdc
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Thu Jul 16 14:00:17 2020 +0800
Merge branch 'master' of https://github.com/ultralytics/yolov4 into feature/DDP_fixed
commit 37acbdc0b6
Author: Glenn Jocher <glenn.jocher@ultralytics.com>
Date: Wed Jul 15 20:03:41 2020 -0700
update test.py --save-txt
commit b8c2da4a0d
Author: Glenn Jocher <glenn.jocher@ultralytics.com>
Date: Wed Jul 15 20:00:48 2020 -0700
update test.py --save-txt
commit 65157e2fc97d371bc576e18b424e130eb3026917
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Wed Jul 15 16:44:13 2020 +0800
Revert the README.md removal
commit 1c802bfa503623661d8617ca3f259835d27c5345
Merge: cd55b44 0f3b8bb
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Wed Jul 15 16:43:38 2020 +0800
Merge branch 'feature/DDP_fixed' of https://github.com/MagicFrogSJTU/yolov5 into feature/DDP_fixed
commit cd55b445c4dcd8003ff4b0b46b64adf7c16e5ce7
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Wed Jul 15 16:42:33 2020 +0800
fix the DDP performance deterioration bug.
commit 0f3b8bb1fae5885474ba861bbbd1924fb622ee93
Author: Glenn Jocher <glenn.jocher@ultralytics.com>
Date: Wed Jul 15 00:28:53 2020 -0700
Delete README.md
commit f5921ba1e35475f24b062456a890238cb7a3cf94
Merge: 85ab2f3 bd3fdbb
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Wed Jul 15 11:20:17 2020 +0800
Merge branch 'feature/DDP_fixed' of https://github.com/MagicFrogSJTU/yolov5 into feature/DDP_fixed
commit bd3fdbbf1b08ef87931eef49fa8340621caa7e87
Author: Glenn Jocher <glenn.jocher@ultralytics.com>
Date: Tue Jul 14 18:38:20 2020 -0700
Update README.md
commit c1a97a7767ccb2aa9afc7a5e72fd159e7c62ec02
Merge: 2bf86b8 f796708
Author: Glenn Jocher <glenn.jocher@ultralytics.com>
Date: Tue Jul 14 18:36:53 2020 -0700
Merge branch 'master' into feature/DDP_fixed
commit 2bf86b892fa2fd712f6530903a0d9b8533d7447a
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 14 22:18:15 2020 +0700
Fixed world_size not found when called from test
commit 85ab2f38cdda28b61ad15a3a5a14c3aafb620dc8
Merge: 5a19011 c8357ad
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 14 22:19:58 2020 +0800
Merge branch 'feature/DDP_fixed' of https://github.com/MagicFrogSJTU/yolov5 into feature/DDP_fixed
commit 5a19011949398d06e744d8d5521ab4e6dfa06ab7
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 14 22:19:15 2020 +0800
Add assertion for <=2 gpus DDP
commit c8357ad5b15a0e6aeef4d7fe67ca9637f7322a4d
Merge: e742dd9 787582f
Author: yzchen <Chenyzsjtu@gmail.com>
Date: Tue Jul 14 22:10:02 2020 +0800
Merge pull request #8 from MagicFrogSJTU/NanoCode012-patch-1
Modify number of dataloaders' workers
commit 787582f97251834f955ef05a77072b8c673a8397
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 14 20:38:58 2020 +0700
Fixed issue with single gpu not having world_size
commit 63648925288d63a21174a4dd28f92dbfebfeb75a
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 14 19:16:15 2020 +0700
Add assert message for clarification
Clarify why assertion was thrown to users
commit 69364d6050e048d0d8834e0f30ce84da3f6a13f3
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 14 17:36:48 2020 +0700
Changed number of workers check
commit d738487089e41c22b3b1cd73aa7c1c40320a6ebf
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 14 17:33:38 2020 +0700
Adding world_size
Reduce calls to torch.distributed. For use in create_dataloader.
commit e742dd9619d29306c7541821238d3d7cddcdc508
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 14 15:38:48 2020 +0800
Make SyncBN a choice
commit e90d4004387e6103fecad745f8cbc2edc918e906
Merge: 5bf8beb cd90360
Author: yzchen <Chenyzsjtu@gmail.com>
Date: Tue Jul 14 15:32:10 2020 +0800
Merge pull request #6 from NanoCode012/patch-5
Update train.py
commit cd9036017e7f8bd519a8b62adab0f47ea67f4962
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 14 13:39:29 2020 +0700
Update train.py
Remove redundant `opt.` prefix.
commit 5bf8bebe8873afb18b762fe1f409aca116fac073
Merge: c9558a9 a1c8406
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 14 14:09:51 2020 +0800
Merge branch 'master' of https://github.com/ultralytics/yolov5 into feature/DDP_fixed
commit c9558a9b51547febb03d9c1ca42e2ef0fc15bb31
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 14 13:51:34 2020 +0800
Add device allocation for loss compute
commit 4f08c692fb5e943a89e0ee354ef6c80a50eeb28d
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Thu Jul 9 11:16:27 2020 +0800
Revert drop_last
commit 1dabe33a5a223b758cc761fc8741c6224205a34b
Merge: a1ce9b1 4b8450b
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Thu Jul 9 11:15:49 2020 +0800
Merge branch 'feature/DDP_fixed' of https://github.com/MagicFrogSJTU/yolov5 into feature/DDP_fixed
commit a1ce9b1e96b71d7fcb9d3e8143013eb8cebe5e27
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Thu Jul 9 11:15:21 2020 +0800
fix lr warning
commit 4b8450b46db76e5e58cd95df965d4736077cfb0e
Merge: b9a50ae 02c63ef
Author: yzchen <Chenyzsjtu@gmail.com>
Date: Wed Jul 8 21:24:24 2020 +0800
Merge pull request #4 from NanoCode012/patch-4
Add drop_last for multi gpu
commit 02c63ef81cf98b28b10344fe2cce08a03b143941
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Wed Jul 8 10:08:30 2020 +0700
Add drop_last for multi gpu
commit b9a50aed48ab1536f94d49269977e2accd67748f
Merge: ec2dc6c 121d90b
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 7 19:48:04 2020 +0800
Merge branch 'master' of https://github.com/ultralytics/yolov5 into feature/DDP_fixed
commit ec2dc6cc56de43ddff939e14c450672d0fbf9b3d
Merge: d0326e3 82a6182
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 7 19:34:31 2020 +0800
Merge branch 'feature/DDP_fixed' of https://github.com/MagicFrogSJTU/yolov5 into feature/DDP_fixed
commit d0326e398dfeeeac611ccc64198d4fe91b7aa969
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Tue Jul 7 19:31:24 2020 +0800
Add SyncBN
commit 82a6182b3ad0689a4432b631b438004e5acb3b74
Merge: 96fa40a 050b2a5
Author: yzchen <Chenyzsjtu@gmail.com>
Date: Tue Jul 7 19:21:01 2020 +0800
Merge pull request #1 from NanoCode012/patch-2
Convert BatchNorm to SyncBatchNorm
commit 050b2a5a79a89c9405854d439a1f70f892139b1c
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 7 12:38:14 2020 +0700
Add cleanup for process_group
commit 2aa330139f3cc1237aeb3132245ed7e5d6da1683
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 7 12:07:40 2020 +0700
Remove apex.parallel. Use torch.nn.parallel
For future compatibility
commit 77c8e27e603bea9a69e7647587ca8d509dc1990d
Author: NanoCode012 <kevinvong@rocketmail.com>
Date: Tue Jul 7 01:54:39 2020 +0700
Convert BatchNorm to SyncBatchNorm
commit 96fa40a3a925e4ffd815fe329e1b5181ec92adc8
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Mon Jul 6 21:53:56 2020 +0800
Fix the datset inconsistency problem
commit 16e7c269d062c8d16c4d4ff70cc80fd87935dc95
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Mon Jul 6 11:34:03 2020 +0800
Add loss multiplication to preserver the single-process performance
commit e83805563065ffd2e38f85abe008fc662cc17909
Merge: 625bb49 3bdea3f
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Fri Jul 3 20:56:30 2020 +0800
Merge branch 'master' of https://github.com/ultralytics/yolov5 into feature/DDP_fixed
commit 625bb49f4e52d781143fea0af36d14e5be8b040c
Author: yizhi.chen <chenyzsjtu@outlook.com>
Date: Thu Jul 2 22:45:15 2020 +0800
DDP established
* Fixed destroy_process_group in DP mode
* Update torch_utils.py
* Update utils.py
Revert build_targets() to current master.
* Update datasets.py
* Fixed world_size attribute not found
Co-authored-by: NanoCode012 <kevinvong@rocketmail.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-19 12:33:30 -07:00
Glenn Jocher
b6fe2e4595
Update requirements.txt
2020-07-19 10:20:15 -07:00
Glenn Jocher
07493a715c
update train.py class count assertion #424
...
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2020-07-19 01:57:42 -07:00
Glenn Jocher
912c06a67c
update train.py class count assertion #424
2020-07-19 01:51:41 -07:00
Glenn Jocher
65857adf52
update train.py ckpt loading
2020-07-18 14:34:12 -07:00
Glenn Jocher
7b0c9be837
Merge remote-tracking branch 'origin/master'
2020-07-18 11:31:28 -07:00
Glenn Jocher
b40852d5a5
update test.py
2020-07-18 11:31:22 -07:00
Glenn Jocher
90e7bfdf75
Update ci-testing.yml
2020-07-17 00:09:34 -07:00
Glenn Jocher
6c01a5b8f5
Merge remote-tracking branch 'origin/master'
2020-07-17 00:00:50 -07:00
Glenn Jocher
a97c3f94ec
update common.py Classify()
2020-07-16 23:59:51 -07:00
Glenn Jocher
52e4730026
Merge pull request #438 from ultralytics/glenn-jocher-patch-1
...
Update ci-testing.yml
2020-07-16 21:18:36 -07:00
Glenn Jocher
02464bc004
Update ci-testing.yml
2020-07-16 21:09:33 -07:00
Glenn Jocher
34cbd7f191
Update ci-testing.yml
2020-07-16 20:53:41 -07:00
Glenn Jocher
ddb0ec362d
Update ci-testing.yml
2020-07-16 20:51:49 -07:00
Glenn Jocher
d78a79bd25
Update ci-testing.yml
2020-07-16 20:49:46 -07:00
Glenn Jocher
2efa01db0e
Merge pull request #426 from Borda/tests/add-gh-action
...
add GH action CPU tests
2020-07-16 17:30:18 -07:00
Glenn Jocher
87475c0345
Merge remote-tracking branch 'origin/master'
2020-07-16 17:18:47 -07:00
Glenn Jocher
5387d4747d
update common.py add Classify()
2020-07-16 17:18:41 -07:00
Glenn Jocher
84a946615a
update hubconf.py
2020-07-16 16:44:00 -07:00
Jirka
e8ea772384
revert test module to confuse users...
2020-07-17 01:16:22 +02:00
Jirka
ef6f5b33a8
rename test
2020-07-17 00:11:27 +02:00
Glenn Jocher
670d4ff287
Update ci-testing.yml
2020-07-16 13:44:02 -07:00
Glenn Jocher
4171df333c
Update ci-testing.yml
2020-07-16 13:40:31 -07:00
Glenn Jocher
69d46fd2cd
Merge branch 'master' into tests/add-gh-action
2020-07-16 13:38:44 -07:00
Glenn Jocher
3e8c89d5ab
update requirements.txt
2020-07-16 13:37:58 -07:00
Glenn Jocher
1e831bd820
Update eval.py
2020-07-16 13:14:29 -07:00
Glenn Jocher
dfb5d27194
Update eval.py
2020-07-16 12:31:37 -07:00
Jirka Borovec
b4faccabac
Apply suggestions from code review
2020-07-16 21:08:18 +02:00
Jirka
4500b49fa3
paths
2020-07-16 19:14:23 +02:00
Jirka
be55111de4
paths
2020-07-16 19:10:32 +02:00
Jirka
01289473fe
git attrib
2020-07-16 16:46:57 +02:00
Jirka
eafe85b1d7
drop xOS
2020-07-16 14:03:06 +02:00
Jirka
2b8fbdafb9
less xOS
2020-07-16 13:57:07 +02:00
Jirka
5c73caa2de
timeout
2020-07-16 12:28:20 +02:00
Jirka
e8b7b86d5a
lower bs
2020-07-16 12:25:55 +02:00
Jirka
eac0dbc46a
rename
2020-07-16 12:11:38 +02:00
Jirka
da6c7cea2b
paths
2020-07-16 12:06:18 +02:00
Jirka
9a880a4554
rename eval
2020-07-16 12:05:00 +02:00
Jirka
df270ea9d7
rename eval
2020-07-16 12:03:06 +02:00
Jirka
7d8e2dd440
parallel
2020-07-16 11:56:18 +02:00
Jirka
3e6868d318
args
2020-07-16 11:49:28 +02:00
Jirka
f0d1e099e2
weights
2020-07-16 11:45:17 +02:00
Jirka
3bf77ca180
lower batch-size
2020-07-16 11:16:12 +02:00
Jirka
613b9d6d98
add badge
2020-07-16 10:33:43 +02:00
Jirka
5b46305dab
fix tests
2020-07-16 10:29:21 +02:00
Jirka
a79633a876
requirements
2020-07-16 09:50:13 +02:00
Jirka
1a503f3e08
requirements
2020-07-16 09:46:56 +02:00
Jirka
a0fa5f5efe
requirements
2020-07-16 09:44:53 +02:00
Jirka
94b2bb68cc
add GH action tests
2020-07-16 09:35:48 +02:00
Glenn Jocher
37acbdc0b6
update test.py --save-txt
2020-07-15 20:03:41 -07:00
Glenn Jocher
b8c2da4a0d
update test.py --save-txt
2020-07-15 20:00:48 -07:00
Glenn Jocher
1ce686edfc
update test.py
2020-07-15 19:06:39 -07:00
Glenn Jocher
6bd9218922
update test.py
2020-07-15 19:04:15 -07:00
Glenn Jocher
f2843481a9
update coco.yaml
2020-07-15 18:58:35 -07:00
Glenn Jocher
aa08b2bd6f
test.py --task test updates
2020-07-15 18:25:34 -07:00
Glenn Jocher
f1678ba8f4
update coco.yaml
2020-07-15 17:59:40 -07:00
Glenn Jocher
b9855f11dc
update coco.yaml
2020-07-15 17:52:27 -07:00
Glenn Jocher
2dd43bc82a
update Dockerfile
2020-07-15 17:40:19 -07:00
Glenn Jocher
1a7a168cec
Merge remote-tracking branch 'origin/master'
2020-07-15 16:08:14 -07:00
Glenn Jocher
98f4a5af87
runs/exp increment bug fix #344
2020-07-15 16:07:40 -07:00
Glenn Jocher
0281c9cd18
Merge remote-tracking branch 'origin/master'
2020-07-15 10:39:38 -07:00
Glenn Jocher
03489aaafb
comment tb_writer.add_hparams(hyp, {})
2020-07-15 10:38:32 -07:00
Glenn Jocher
a04050076e
Update README.md
2020-07-15 00:27:30 -07:00
Glenn Jocher
95ef36bb74
Merge remote-tracking branch 'origin/master'
2020-07-15 00:18:56 -07:00
Glenn Jocher
bcd727eb81
update README.md
2020-07-15 00:18:50 -07:00
Glenn Jocher
f796708b50
Merge pull request #408 from seahawks8/patch-1
...
python3.8 numpy version
2020-07-14 16:55:16 -07:00
Doug
7d19f98273
Update requirements.txt
...
numpy 1.17.3 is required for python3.8
2020-07-14 16:34:54 -06:00
Glenn Jocher
611ec44359
Update README.md
2020-07-14 13:18:35 -07:00
Glenn Jocher
1e94bcf3d2
Merge pull request #384 from jancio/master
...
Log hyperparameters in tensorboard
2020-07-14 12:32:27 -07:00
Glenn Jocher
120d40c06a
Update train.py
...
This updates the PR to a one-liner to minimize additions. Perhaps we can include opt in the future but let's start with this for now.
2020-07-14 12:32:08 -07:00
Janko Ondras
38acc5f3c5
Fix img_size naming in hyperparameters logging
2020-07-14 08:48:46 +02:00
Glenn Jocher
a1c8406af3
EMA and non_blocking=True
2020-07-13 20:19:10 -07:00
Glenn Jocher
2377e5f6ee
FP16 EMA bug fix
2020-07-13 15:47:46 -07:00
Glenn Jocher
2b1892430f
yolo.py bug fix
2020-07-13 15:21:19 -07:00
Glenn Jocher
02445d176d
improved model.yaml source tracking
2020-07-13 14:35:47 -07:00
Glenn Jocher
c80b249e67
update Dockerfile
2020-07-13 13:30:57 -07:00
Glenn Jocher
78c9420e09
--classes bug fix #387
2020-07-13 13:27:46 -07:00
Glenn Jocher
140d84cca1
comment updates
2020-07-13 12:17:52 -07:00
Glenn Jocher
ea34f848a6
Merge remote-tracking branch 'origin/master'
2020-07-13 10:53:43 -07:00
Glenn Jocher
094079bd26
update detect.py --class argument #387
2020-07-13 10:53:34 -07:00
Janko Ondras
e558963244
Log hyperparameters in tensorboard
...
Log both hyperparameters and command line options in tensorboard.
2020-07-13 12:55:43 +02:00
Glenn Jocher
e169edfcf5
Update README.md
2020-07-12 14:28:19 -07:00
Glenn Jocher
8412d44dce
update datasets.py to add detect.py --source glob_command feature
2020-07-12 14:22:15 -07:00
Glenn Jocher
eae33303d6
update datasets.py LoadImages() path improvements and Mixup
2020-07-12 14:14:51 -07:00
Glenn Jocher
0afbb8d498
update test.py model.half()
2020-07-12 13:25:58 -07:00
Glenn Jocher
41ff83a98d
update torch_utils.py to FP16 EMA
2020-07-12 12:18:00 -07:00
Glenn Jocher
8b38e6f429
update dataset comments
2020-07-12 10:37:06 -07:00
Glenn Jocher
1b1681bac9
Created using Colaboratory
2020-07-11 15:25:52 -07:00
Glenn Jocher
9d7c7784f2
Created using Colaboratory
2020-07-11 15:16:24 -07:00
Glenn Jocher
a5818b280e
expired pytorch hub cache bug fix #365
2020-07-11 15:04:53 -07:00
Glenn Jocher
8797246948
Merge remote-tracking branch 'origin/master'
2020-07-11 15:03:18 -07:00
Glenn Jocher
6e3c3b62b2
expired pytorch hub cache bug fix #365
2020-07-11 15:03:12 -07:00
Glenn Jocher
80d5775a57
Update README.md
2020-07-11 14:31:43 -07:00
Glenn Jocher
f7a6d6c8d4
remove https:// prefix from curl commands fix #355
2020-07-11 13:00:24 -07:00
Glenn Jocher
01a73ec08e
multi-gpu ckpt filesize bug fix #253
2020-07-11 12:39:27 -07:00
Glenn Jocher
a586751904
multi-gpu ckpt filesize bug fix #253
2020-07-11 12:35:21 -07:00
Glenn Jocher
5de4e25d68
update tensorboard metric
2020-07-11 11:39:02 -07:00
Glenn Jocher
224e9a1d0b
Merge remote-tracking branch 'origin/master'
2020-07-11 09:31:59 -07:00
Glenn Jocher
98fc483abc
train.py results.txt to bucket bug fix
2020-07-11 09:31:53 -07:00
Glenn Jocher
d6f6b33a49
update datasets.py for image size check during caching
2020-07-11 00:21:52 -07:00
Glenn Jocher
01a67a9742
Merge remote-tracking branch 'origin/master'
2020-07-10 20:36:26 -07:00
Glenn Jocher
d3e786ed93
google_utils.py bug fix #355
2020-07-10 20:36:10 -07:00
Glenn Jocher
9006b85d21
update export.py torchscript file extension
2020-07-10 11:56:01 -07:00
Glenn Jocher
41bb70b325
update create_pretrained()
2020-07-10 00:25:35 -07:00
Glenn Jocher
1531795f5e
avoid git status check in Docker bug fix #342
2020-07-10 00:11:50 -07:00
Glenn Jocher
1e9cf6a6e9
add file sizes to ckpt ops
2020-07-10 00:00:19 -07:00
Glenn Jocher
c494a11128
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# train.py
2020-07-09 22:09:40 -07:00
Glenn Jocher
1c13e67b33
evolution bug fix #346
2020-07-09 22:08:42 -07:00
Glenn Jocher
17b9d7cdda
Merge pull request #344 from Laughing-q/master
...
update os.sep
2020-07-09 21:09:33 -07:00
Glenn Jocher
59beae98e8
add if isfile() to get_hash()
2020-07-09 20:57:24 -07:00
Glenn Jocher
6649770001
--rect test bug fix
2020-07-09 20:39:11 -07:00
Laughing
51a161d9e1
Update train.py
2020-07-10 11:37:58 +08:00
Glenn Jocher
d40e4781f1
--rect test bug patch
2020-07-09 20:36:30 -07:00
Laughing
41ab1b23f1
Merge pull request #1 from ultralytics/master
...
Master
2020-07-09 22:35:26 -05:00
Glenn Jocher
520f5de6f0
Label caching foundational re-write #306
2020-07-09 20:07:16 -07:00
Glenn Jocher
f310ca3bff
Update issue templates
2020-07-09 17:36:26 -07:00
Glenn Jocher
e16e9e43e1
new nc=len(names) check
2020-07-09 17:10:43 -07:00
Glenn Jocher
cb527d3af9
new nc=len(names) check
2020-07-09 17:03:12 -07:00
Glenn Jocher
dd8e742ece
Merge pull request #334 from lorenzomammana/feature-multiple-datasets-training
...
Handle multiple datasets
2020-07-09 16:29:21 -07:00
Glenn Jocher
dd33d2ab77
Update datasets.py
2020-07-09 16:28:20 -07:00
Glenn Jocher
2110f5ee89
update log_dir to runs/exp #107
2020-07-09 16:03:10 -07:00
Glenn Jocher
603ea0bfdc
update log_dir to runs/exp #107
2020-07-09 15:58:07 -07:00
Glenn Jocher
72d5b58b9a
disable LR plot to suppress warning message
2020-07-09 15:16:57 -07:00
Glenn Jocher
24c5a941f0
--resume EMA fix #292
2020-07-09 15:09:06 -07:00
Glenn Jocher
2b6209a9d5
Merge pull request #338 from alexstoken/hyp_save_bugfix
...
Move hyp and opt yaml save to top of train()
2020-07-09 14:35:32 -07:00
Alex Stoken
9d631408a2
Move hyp and opt yaml save to top of train()
...
Fixes bug where scaled values were saved in hyp.yaml, which would cause continuity issues with --resume
2020-07-09 16:18:55 -05:00
Glenn Jocher
13a09fa68a
Update datasets.py
2020-07-09 13:47:20 -07:00
Glenn Jocher
47bf1730fa
Update datasets.py
2020-07-09 13:45:55 -07:00
Glenn Jocher
f9bab6b127
Update datasets.py
2020-07-09 13:36:23 -07:00
lorenzomammana
54a9e4f876
Refactor code to reduce duplication
2020-07-09 19:39:28 +02:00
lorenzomammana
94342acbe1
Handle multiple datasets
2020-07-09 11:52:12 +02:00
Glenn Jocher
bf6f41567a
hyperparameter printout update
2020-07-08 17:21:00 -07:00
Glenn Jocher
0fef3f6678
Merge pull request #104 from alexstoken/advanced_logging
...
Log command line options, hyperparameters, and weights per run in `runs/`
2020-07-08 17:01:32 -07:00
Glenn Jocher
dc5e18390a
Merge branch 'master' into advanced_logging
2020-07-08 17:01:19 -07:00
Glenn Jocher
abb024de04
Delete new_hyp.yaml
2020-07-08 16:59:06 -07:00
Glenn Jocher
6b134d93c5
Update train.py
2020-07-08 16:58:13 -07:00
Glenn Jocher
22ab1c295f
Update test.py
2020-07-08 16:29:31 -07:00
Glenn Jocher
c3d3e6b776
Update test.py
2020-07-08 16:27:52 -07:00
Glenn Jocher
cbe39a1dbb
Update utils.py
2020-07-08 16:14:32 -07:00
Glenn Jocher
c654d18f00
Update utils.py
2020-07-08 16:11:22 -07:00
Glenn Jocher
16f6834486
update train.py and experimental.py
2020-07-08 14:23:34 -07:00
Glenn Jocher
1b9e28e72e
Update requirements.txt
2020-07-08 10:21:30 -07:00
Glenn Jocher
31b07b3550
Merge pull request #275 from wanghaoyang0106/master
...
[bug fix] potential problem if img fed to model is in rectangular shape
2020-07-08 00:07:54 -07:00
Glenn Jocher
cd6609297c
Merge pull request #321 from dlawrences/master
...
Update CoreML model conversion to do pixel scaling as well
2020-07-08 00:04:46 -07:00
Laurentiu Diaconu
7c4d3cf51b
Merge pull request #1 from dlawrences/dev/coreml_convert_pxscaling
...
Updated coreml conversion to do pixel scaling between 0.0 and 1.0
2020-07-08 09:45:34 +03:00
Laurentiu Diaconu
a9918fbf2b
updated coreml conversion to do pixel scaling between 0.0 and 1.0
2020-07-08 09:43:33 +03:00
Glenn Jocher
e8cf24b6c8
Initial model ensemble capability #318
2020-07-07 15:40:50 -07:00
Alex Stoken
e6e7e7f1ac
Delete advanced_logging_test.ipynb
...
Remove from advanced_logging branch before merge.
2020-07-07 11:31:25 -05:00
Alex Stoken
43647514da
Colab example/test of new features
2020-07-07 11:24:11 -05:00
Alex Stoken
95f0a56df7
Bug fix to get_latest_run when recent run is named
2020-07-07 11:19:49 -05:00
Alex Stoken
52bac22f09
Add in --resume functionality with option to specify path or to get most recent run
2020-07-07 10:42:28 -05:00
Alex Stoken
8b6dbb7cfc
Add optimizer choice to hyp file
2020-07-07 10:30:48 -05:00
Alex Stoken
5ac517b22a
Remove duplicate `verbose` arg in test.py
2020-07-07 10:09:53 -05:00
Alex Stoken
f517ba81c7
Merge branch 'master' into advanced_logging
2020-07-06 16:52:11 -05:00
Glenn Jocher
121d90b3f2
update fuse_conv_and_bn()
2020-07-06 11:46:10 -07:00
Glenn Jocher
6b95d6d2c0
.to(device) bug fix
2020-07-05 23:37:36 -07:00
Glenn Jocher
a62333e808
test.py .fuse() update
2020-07-05 23:27:03 -07:00
Glenn Jocher
a40f615c6f
.half() bug fix
2020-07-05 23:24:53 -07:00
Glenn Jocher
04bdbe4104
fuse update
2020-07-05 23:16:50 -07:00
Glenn Jocher
5ba1de0cdc
update experimental.py with Ensemble() module
2020-07-05 15:02:56 -07:00
Glenn Jocher
38f5c1ad1d
pruning and sparsity initial commit
2020-07-05 13:41:21 -07:00
Glenn Jocher
997ba7b346
import yaml in yolo.py
2020-07-05 12:50:04 -07:00
Glenn Jocher
8c43a6906d
Update README.md
2020-07-05 12:33:51 -07:00
Glenn Jocher
2541f77946
update detect.py
2020-07-05 11:57:48 -07:00
Glenn Jocher
b7fe1d0622
Merge pull request #300 from Laughing-q/master
...
fix LR bug
2020-07-05 00:42:14 -07:00
Laughing
956511dafd
fix LR bug
2020-07-05 15:08:24 +08:00
Glenn Jocher
762b06de4b
Merge remote-tracking branch 'origin/master'
2020-07-04 23:07:32 -07:00
Glenn Jocher
4e2d24602d
update yolo.py
2020-07-04 23:07:26 -07:00
Glenn Jocher
bb3c346916
model.yaml nc inherited from dataset.yaml
2020-07-04 17:51:54 -07:00
Glenn Jocher
1fdaa4987b
update detect.py
2020-07-04 17:44:53 -07:00
Glenn Jocher
11ba5294dd
update get_voc.sh
2020-07-04 17:36:53 -07:00
Glenn Jocher
659ad748c8
update get_voc.sh
2020-07-04 17:13:43 -07:00
Glenn Jocher
fd0b1cc924
update voc.yaml
2020-07-04 16:50:11 -07:00
Glenn Jocher
45abf0c74f
remove verbose tar unzip
2020-07-04 16:42:12 -07:00
Glenn Jocher
55e48603bf
udpate dataset download instructions
2020-07-04 16:25:48 -07:00
Glenn Jocher
1bc0ef874a
Merge pull request #202 from ChristopherSTAN/master
...
Upload some scripts about VOC dataset
2020-07-04 16:13:15 -07:00
Glenn Jocher
72a1746938
Update get_voc.sh
2020-07-04 16:12:52 -07:00
Glenn Jocher
7df4fcebb1
Update voc.yaml
2020-07-04 16:12:17 -07:00
Glenn Jocher
c0c5fd8121
Update voc.yaml
2020-07-04 16:11:14 -07:00
Glenn Jocher
9485f0b51f
Merge pull request #296 from NanoCode012/patch-1
...
Fix save error for multi-gpu in ema
2020-07-04 11:50:34 -07:00
NanoCode012
ccfa9373ae
Update to remove "module" attribute check
2020-07-04 23:12:57 +07:00
NanoCode012
f83521ab9a
Fix save error for multi-gpu
2020-07-04 16:50:33 +07:00
Glenn Jocher
5e2429e618
Merge remote-tracking branch 'origin/master'
2020-07-03 20:05:55 -07:00
Glenn Jocher
7bd7b2c090
update export.py
2020-07-03 20:05:50 -07:00
Glenn Jocher
ce0c58f678
update compute_loss()
2020-07-03 18:56:07 -07:00
Glenn Jocher
af41083d52
EMA FP16 fix #279
2020-07-03 16:57:08 -07:00
Glenn Jocher
f767023c56
offset and balance update
2020-07-03 14:07:00 -07:00
Glenn Jocher
655895a838
module updates
2020-07-03 13:46:12 -07:00
Glenn Jocher
df224a0d8f
EMA bug fix #279
2020-07-03 11:56:14 -07:00
Glenn Jocher
a9d20eba3e
export.py update
2020-07-03 11:50:59 -07:00
Glenn Jocher
569fbc63c8
export.py update
2020-07-03 11:29:53 -07:00
wanghaoyang0106
69c0d2da8a
Merge branch 'master' of https://github.com/ultralytics/yolov5
2020-07-03 13:48:24 +08:00
wanghaoyang0106
b57f83d005
[bug fix] potential problem if img fed to model is in rectangular shape
2020-07-03 13:09:21 +08:00
Glenn Jocher
3bdea3f697
strip_optimizer() bug fix #253
2020-07-02 21:24:26 -07:00
Glenn Jocher
6ca3f35cd4
update .dockerignore
2020-07-02 16:41:03 -07:00
ChristopherSTAN
d597513798
Create voc.yaml
2020-07-02 17:06:59 -04:00
ChristopherSTAN
8c3b829214
Add files via upload
2020-07-02 17:05:57 -04:00
ChristopherSTAN
4503d80449
Delete organize_VOC.py
2020-07-02 17:05:33 -04:00
ChristopherSTAN
0bd619b5aa
Delete voc.yml
2020-07-02 17:05:25 -04:00
ChristopherSTAN
389ed1f9d6
Delete VOC_split.py
2020-07-02 17:05:09 -04:00
ChristopherSTAN
2bcf3da848
Delete VOC2012.sh
2020-07-02 17:05:02 -04:00
ChristopherSTAN
570dcf05a9
Delete VOC2007.sh
2020-07-02 17:04:54 -04:00
Glenn Jocher
e02a189a3a
Merge pull request #245 from yxNONG/patch-2
...
Unify the check point of single and multi GPU
2020-07-02 12:05:46 -07:00
Glenn Jocher
f02481c73a
Update torch_utils.py
2020-07-02 12:03:45 -07:00
Glenn Jocher
fc7c42723d
Update utils.py
2020-07-02 12:01:43 -07:00
Glenn Jocher
597ed4ce63
Update train.py
2020-07-02 12:00:55 -07:00
Glenn Jocher
9705c15da1
Update train.py
2020-07-02 11:37:48 -07:00
ChristopherSTAN
a8d17ce712
Update train.py
2020-07-02 14:25:28 -04:00
Glenn Jocher
13f69777a6
typo fix
2020-07-02 09:26:03 -07:00
yxNONG
1aa2b67933
Update train.py
2020-07-02 13:51:52 +08:00
yxNONG
53cdaf6bf5
Update utils.py
2020-07-02 13:48:19 +08:00
Glenn Jocher
a03adb5ab8
Merge remote-tracking branch 'origin/master'
2020-07-01 19:16:06 -07:00
Glenn Jocher
1fca7a7f24
autopad() update in common.py
2020-07-01 19:15:59 -07:00
Glenn Jocher
5323ad224d
export.py update
2020-07-01 16:15:25 -07:00
Glenn Jocher
a62a1c2c67
export.py update
2020-07-01 16:14:49 -07:00
Glenn Jocher
f1d67f4110
update export.py
2020-07-01 15:46:15 -07:00
Glenn Jocher
e74ccb2985
Merge remote-tracking branch 'origin/master'
2020-07-01 11:44:55 -07:00
Glenn Jocher
b5659d1195
module updates
2020-07-01 11:44:49 -07:00
Glenn Jocher
dfd63de20a
Merge pull request #255 from edurenye/ignore_torchscript
...
Add torchscript files to gitignore
2020-07-01 10:10:11 -07:00
edurenye
1c86c2cb66
Add torchscript files to gitignore
2020-07-01 10:04:26 +02:00
Glenn Jocher
86784cfdbf
--resume bug fix #252
2020-06-30 21:43:53 -07:00
Glenn Jocher
0a08375a8a
Merge remote-tracking branch 'origin/master'
2020-06-30 16:42:16 -07:00
Glenn Jocher
4e62eb90be
check_img_size() int() update
2020-06-30 16:41:26 -07:00
Glenn Jocher
5c1c73ecda
Merge remote-tracking branch 'origin/master'
2020-06-30 16:16:36 -07:00
Glenn Jocher
ad4c22cbfe
--resume bug fix #187
2020-06-30 16:16:29 -07:00
Glenn Jocher
2b7a11300e
Merge remote-tracking branch 'origin/master'
2020-06-30 15:25:45 -07:00
Glenn Jocher
a9dc0c2c29
update check_img_size() for model strides
2020-06-30 15:25:38 -07:00
Glenn Jocher
b9da3ea46a
Merge remote-tracking branch 'origin/master'
2020-06-30 14:08:14 -07:00
Glenn Jocher
3b16c865f0
assert --epochs
2020-06-30 14:08:08 -07:00
yxNONG
cdb9bde181
Unify the check point of single and multi GPU
...
save the model.hyp etc to checkpoint when use multi GPU training
2020-06-30 19:06:28 +08:00
Glenn Jocher
bfd51f62f8
Merge remote-tracking branch 'origin/master'
2020-06-29 17:10:41 -07:00
Glenn Jocher
9a9333d245
add replicate() to datasets.py
2020-06-29 17:10:33 -07:00
Glenn Jocher
615d6d0cfa
FROM nvcr.io/nvidia/pytorch:20.06-py3
2020-06-29 14:00:13 -07:00
Glenn Jocher
e8bf385795
Merge pull request #223 from ArmyOfRobots/master
...
Adding torchscript export
2020-06-29 13:39:53 -07:00
Glenn Jocher
b203c9b7ff
update train.py incompatible model message fix #222
2020-06-29 12:45:25 -07:00
Glenn Jocher
01895f3924
Merge pull request #228 from topiaruss/patch-1
...
Remove non-ascii that breaks pdb single-stepping
2020-06-29 10:08:02 -07:00
Russ Ferriday
0d5065d3b9
Remove non-ascii that breaks pdb single-stepping
2020-06-29 12:56:40 +01:00
Glenn Jocher
0bc80e1e57
onnx_export.py bug fix #224
2020-06-28 17:07:03 -07:00
Glenn Jocher
ec8554a39b
FROM nvcr.io/nvidia/pytorch:20.06-py3
2020-06-28 13:26:31 -07:00
Jake Poznanski
685091a3fc
Adding torchscript export
2020-06-28 13:17:05 -07:00
Glenn Jocher
37e13f8846
update mosaic border
2020-06-27 13:50:15 -07:00
Glenn Jocher
93a6765806
update mosaic border
2020-06-27 13:02:01 -07:00
Alex Stoken
e18e6811dc
Merge branch 'master' into advanced_logging
2020-06-27 10:13:03 -05:00
Glenn Jocher
77fb8ee082
refactor dataloader
2020-06-26 19:30:09 -07:00
Glenn Jocher
22fb2b0c25
refactor dataloader
2020-06-26 18:56:13 -07:00
Glenn Jocher
97b5186fa0
Merge pull request #206 from ml5ah/utils-fix
...
Fix after suggestion
2020-06-25 19:26:50 -07:00
Glenn Jocher
8c5b6220f5
Update detect.py
2020-06-25 19:26:23 -07:00
Glenn Jocher
496ec33a33
Update detect.py
...
Added some recent updates that were missing, and updated the filename with an if else.
2020-06-25 19:19:15 -07:00
Anish Hiranandani
68f63616b3
Fix after suggestion
2020-06-25 18:23:36 -07:00
Glenn Jocher
256a3e89d2
small dataset bug fix #140
2020-06-25 17:52:56 -07:00
Glenn Jocher
d994ed25f1
Merge remote-tracking branch 'origin/master'
2020-06-25 15:09:12 -07:00
Glenn Jocher
e670a3353b
update test.py for FP16 testing during training
2020-06-25 15:09:04 -07:00
Glenn Jocher
c910ed397c
Update README.md
2020-06-25 14:27:45 -07:00
Glenn Jocher
8669f4561c
Update README.md
2020-06-25 12:26:30 -07:00
Glenn Jocher
8f7e11dcef
Update README.md
2020-06-25 11:53:13 -07:00
Glenn Jocher
b2d4307848
Update README.md
2020-06-25 10:59:42 -07:00
Glenn Jocher
b50fdf16af
model.names multi-GPU bug fix #94
2020-06-24 22:22:13 -07:00
Glenn Jocher
9a9c4f1259
update yolo.py default --cfg
2020-06-24 18:00:43 -07:00
Alex Stoken
de191655e4
Fix yaml saving (don't sort keys), reorder --opt keys, bug fix hyp dict accessor
2020-06-24 17:21:54 -05:00
Alex Stoken
2d396bea00
Fix bug in --help from percent sign in help string
2020-06-24 16:57:12 -05:00
Glenn Jocher
227aa735dc
updates
2020-06-24 13:20:14 -07:00
Glenn Jocher
e071b8dd3a
update models/common.py for Conv() flexible padding
2020-06-24 13:12:23 -07:00
Glenn Jocher
b8557f87e3
add stride to datasets.py
2020-06-24 13:02:27 -07:00
Glenn Jocher
3b062254a6
update utils.create_pretrained()
2020-06-24 12:53:43 -07:00
ChristopherSTAN
d18adf8df9
Add files via upload
2020-06-24 15:53:34 -04:00
Glenn Jocher
0825cb7fd8
create models/hub
2020-06-24 11:58:23 -07:00
Glenn Jocher
b1b3634145
update onnx_export.py #134
2020-06-24 11:00:03 -07:00
Glenn Jocher
8699c319ca
update yolo.py
2020-06-24 10:42:01 -07:00
Alex Stoken
d1ca6f231d
Delete equip_hyp.yaml
2020-06-24 11:22:12 -05:00
Alex Stoken
611aacf1bf
Turn opt into dictionary before sending it to yaml
2020-06-24 10:49:08 -05:00
Alex Stoken
bc4ef4861b
Default optimizer SGD
2020-06-24 10:07:43 -05:00
Alex Stoken
7abf202cad
Mode all optimizer settings to 'hyp.yaml', integrate proper momentum with Adam optimizer
2020-06-24 10:03:21 -05:00
Alex Stoken
7edbf6570e
Fix help message for cfg files
2020-06-24 09:45:57 -05:00
Alex Stoken
d64ad0fbf3
Remove --resume functionality and related checks/logic.
2020-06-24 09:17:27 -05:00
Alex Stoken
ccf0af18b1
Revert coco128.yaml to initial commit
2020-06-24 09:13:41 -05:00
Glenn Jocher
f9ae460eec
update README.md
2020-06-23 20:12:23 -07:00
Glenn Jocher
ec72eea62b
Merge remote-tracking branch 'origin/master'
2020-06-23 10:53:48 -07:00
Glenn Jocher
53294f28b4
update yolo.py
2020-06-23 10:53:42 -07:00
Glenn Jocher
6cea1bff60
Update README.md
2020-06-23 10:11:34 -07:00
Glenn Jocher
a63e1c9b3c
study update
2020-06-22 23:23:50 -07:00
Glenn Jocher
2a550333c0
update README.md
2020-06-22 23:20:37 -07:00
Glenn Jocher
db898131f9
study update
2020-06-22 23:07:22 -07:00
Glenn Jocher
6c1b87a42e
update google_utils import
2020-06-22 23:00:23 -07:00
Glenn Jocher
7306dadf78
Update README.md
2020-06-22 15:16:10 -07:00
Glenn Jocher
3804578b78
Update README.md
2020-06-22 14:33:47 -07:00
Glenn Jocher
69ff486693
Update README.md
2020-06-22 14:32:05 -07:00
Glenn Jocher
364fcfd7db
PANet update
2020-06-22 14:27:17 -07:00
Glenn Jocher
ef58dac963
update Dockerfile
2020-06-22 10:24:56 -07:00
Glenn Jocher
bbd12c7cfe
detect.py fast bug fix
2020-06-22 10:14:58 -07:00
Glenn Jocher
fc171e2678
check_anchor_order() update
2020-06-21 14:08:59 -07:00
Glenn Jocher
1f1917ef56
remove fast, add merge
2020-06-21 13:37:11 -07:00
Alex Stoken
e572bb0803
Add plot_results save location to log_dir
2020-06-21 09:36:28 -05:00
Glenn Jocher
24dd150fbd
update torch>=1.4
2020-06-20 11:55:39 -07:00
Glenn Jocher
ba340ed72d
Merge pull request #143 from Lornatang/Fix-multi-GPU-training-errors
...
Fix DDP bug in single process multiple device use cases
2020-06-20 11:10:40 -07:00
Glenn Jocher
024a42f4fd
datasets.py vid_formats updated
2020-06-20 09:53:37 -07:00
Glenn Jocher
5c2cd711df
vid_formats bug fix #146
2020-06-20 09:26:07 -07:00
Lornatang
899f1d4bde
Fix DDP bug in single process multiple device use cases
2020-06-20 13:00:03 +08:00
Glenn Jocher
0a09882e4f
Update issue templates
2020-06-19 16:46:21 -07:00
Glenn Jocher
cdf1eac9f7
Merge pull request #107 from Lornatang/fix-reference-bugs
...
fix refrence bug
2020-06-19 14:51:41 -07:00
Glenn Jocher
458c4d0e0b
Update README.md
2020-06-19 12:14:06 -07:00
Glenn Jocher
34ec87ecf9
Update README.md
2020-06-19 12:13:15 -07:00
Glenn Jocher
d4c6674c98
speeds updated from FP32 to FP16
2020-06-19 12:05:10 -07:00
Glenn Jocher
e249792c2f
update onnx_export.py usage
2020-06-19 10:15:08 -07:00
Glenn Jocher
80b82e8bde
update yolo.py
2020-06-18 19:33:02 -07:00
Glenn Jocher
245bd1d242
update README.md
2020-06-18 12:46:30 -07:00
Glenn Jocher
a3ee0a8954
check_img_size() update
2020-06-18 11:46:04 -07:00
Glenn Jocher
10145833c3
strip_optimizer() default to save FP16 model
2020-06-18 00:16:47 -07:00
Glenn Jocher
cce95e744d
backbone as FP16, save default to FP32
2020-06-18 00:13:18 -07:00
Glenn Jocher
d9b64c27c2
save ckpt in FP16 #119
2020-06-17 22:34:13 -07:00
Glenn Jocher
9fdb0fbacf
AutoAnchor bug fix # 117
2020-06-17 19:51:15 -07:00
Alex Stoken
c8152c81a6
Syntax fixes
2020-06-17 16:32:13 -05:00
Alex Stoken
9b7386f603
Add save_dir arg to test.test, use arg as location for saving batch jpgs
2020-06-17 16:08:46 -05:00
Alex Stoken
945307beba
Add save_dir to plot_lr_scheduler and plot_labels
...
Set save_dir = log_dir in train.py
2020-06-17 16:03:18 -05:00
Alex Stoken
3b2b330872
Move results.txt from weights/ to log_dir
2020-06-17 15:55:45 -05:00
Glenn Jocher
8b6f5826bc
update README.md
2020-06-17 12:58:01 -07:00
Glenn Jocher
2bfd242fa1
Merge remote-tracking branch 'origin/master'
2020-06-17 12:57:03 -07:00
Glenn Jocher
b7ac446d62
update README.md
2020-06-17 12:56:47 -07:00
Alex Stoken
ade023cff2
Fix hyp file read in and dict update.
...
Add example of hyp yaml
2020-06-17 10:59:20 -05:00
Alex Stoken
3263a204ea
Fix get_latest_run to search 'search_dir' recursivly
2020-06-17 10:34:37 -05:00
Alex Stoken
d34291733b
Fix get_latest_run() to search inside 'weights' subfolders
2020-06-17 10:26:55 -05:00
Glenn Jocher
91de3381e1
Merge pull request #112 from imprashr/patch-1
...
onnx should be 1.6.0
2020-06-17 08:23:35 -07:00
Prashant Rai
0071b69994
onnx should be 1.6.0
...
for smoothly export model to onnx, onnx should be 1.6.0
2020-06-17 14:15:27 +05:30
Lornatang
2368603484
fix refrence bug
...
In torch==1.5, the import of the API has changed. Although it does not interrupt the operation of the program, it seems to me to be an implicit error and may throw an exception in later versions.
2020-06-17 09:56:26 +08:00
Glenn Jocher
a557b7d924
check_img_size() update
2020-06-16 17:48:01 -07:00
Glenn Jocher
034609414e
AutoAnchor fitness to screen
2020-06-16 17:08:45 -07:00
Glenn Jocher
ef75f7313d
AutoAnchor n, imgsz bug fix
2020-06-16 16:48:01 -07:00
Glenn Jocher
2daa412575
train with multi-gpu half test bug fix #99
2020-06-16 16:28:25 -07:00
Glenn Jocher
d1e5716610
train with multi-gpu half test bug fix #99
2020-06-16 16:22:58 -07:00
Glenn Jocher
1dfc28527f
AutoAnchor BPR to 4 significant figures
2020-06-16 16:19:58 -07:00
Glenn Jocher
8db51c7002
tb_writer bug fix
2020-06-16 16:05:28 -07:00
Glenn Jocher
4052603e1f
AutoAnchor update - improvement check
2020-06-16 15:54:20 -07:00
Alex Stoken
5f2eeba233
remove old print statements
2020-06-16 17:09:39 -05:00
Glenn Jocher
afe1df385b
dist.destroy_process_group() bug fix
2020-06-16 15:08:14 -07:00
Glenn Jocher
72d06147b2
Multi-GPU disabled in test.py
2020-06-16 14:42:30 -07:00
Alex Stoken
333f678b37
add update default hyp dict with provided yaml
2020-06-16 16:36:20 -05:00
Alex Stoken
a448c3bcd7
add logic for resuming and getting hyp for resume run
2020-06-16 16:30:12 -05:00
Glenn Jocher
bafbc65ee3
AutoAnchor bug fix
2020-06-16 14:26:02 -07:00
Alex Stoken
25e51bcec7
add util function to get most recent last.pt file
...
added logic in train.py __main__ to handle resuming from a run
2020-06-16 15:50:27 -05:00
Alex Stoken
490f1e7b9c
add save_dir arg to plot_lr_scheduler, default to current dir.
...
Uncomment plot_lr_scheduler in train() and pass log_dir as save location
2020-06-16 15:13:03 -05:00
Glenn Jocher
57a0ae3350
AutoAnchor implementation
2020-06-16 13:12:22 -07:00
Alex Stoken
4418809cf5
change weights dir (wdir) to be unique to each run, under log_dir
2020-06-16 15:09:51 -05:00
Alex Stoken
d9f446cd81
add save yaml of opt and hyp to tensorboard log_dir in train()
2020-06-16 15:06:13 -05:00
Alex Stoken
a85e6d0fc0
add parser arg for hyp yaml file
2020-06-16 14:53:32 -05:00
Glenn Jocher
95c46f7245
Merge pull request #79 from Lornatang/delete-redundant-thrid-party-library
...
Delete redundant thrid party library
2020-06-16 11:52:36 -07:00
Glenn Jocher
5a50491fa1
check_anchors bug fix
2020-06-16 10:36:35 -07:00
Glenn Jocher
05b8ee5ca4
check_anchors() bug fix #102
2020-06-16 10:34:16 -07:00
Glenn Jocher
7c6fd4d670
--verbose bug fix #84
2020-06-16 10:22:22 -07:00
Glenn Jocher
ec81c7b5f2
check_anchors() bug fix #90
2020-06-16 10:14:04 -07:00
Glenn Jocher
e1e3399286
ONNX export bug fix #93
2020-06-16 09:59:42 -07:00
Glenn Jocher
8b26e89006
AutoAnchor bug fix #72
2020-06-16 00:53:34 -07:00
Glenn Jocher
8fa3724072
kmean_anchors() update
2020-06-16 00:40:21 -07:00
Glenn Jocher
bdd9fee841
update fast mode
2020-06-16 00:29:54 -07:00
Glenn Jocher
1c0b6236e3
update fast mode
2020-06-16 00:11:29 -07:00
Lornatang
8b8b792802
There is no need to download extra packages, official bring it with you
...
I submitted it once in your yolov3 project, you seem to accept it? I'm not sure. I'll submit PR again.
2020-06-16 08:28:52 +08:00
Lornatang
0c4b4b8817
Merge remote-tracking branch 'upstream/master'
2020-06-16 08:16:10 +08:00
Lornatang
09c1b96136
Merge branch 'fix-reference-bugs'
2020-06-16 08:15:10 +08:00
Glenn Jocher
db2c3acd3a
updated testing settings, rebalanced towards FP16 latency
2020-06-15 16:55:57 -07:00
Glenn Jocher
915b1481fc
default check_git_status() to True
2020-06-15 16:18:46 -07:00
Glenn Jocher
0b514daced
FP16 test loss bug fix
2020-06-15 15:26:29 -07:00
Glenn Jocher
a1748a8d6e
test during training default to FP16
2020-06-15 15:20:27 -07:00
Glenn Jocher
bd3e389130
update google_utils.py
2020-06-15 14:39:04 -07:00
Glenn Jocher
76ca367a01
FP16 to FP32 ckpt load
2020-06-15 13:32:45 -07:00
Glenn Jocher
6fb5ff014c
FP16 to FP32 ckpt load
2020-06-15 13:21:34 -07:00
Glenn Jocher
14523bb030
FP16 to FP32 ckpt load
2020-06-15 13:18:39 -07:00
Glenn Jocher
c5966abba8
glob search bug fix #77
2020-06-15 12:08:57 -07:00
Glenn Jocher
ace56eb5b6
Merge pull request #70 from Lornatang/fix-reference-bugs
...
fix reference problem
2020-06-15 11:18:17 -07:00
Lornatang
54795a4f0a
fix problem
2020-06-15 16:11:06 +08:00
Glenn Jocher
45a17ea40c
Merge remote-tracking branch 'origin/master'
2020-06-15 00:44:08 -07:00
Glenn Jocher
e7c24e04ac
half() fix #66
2020-06-15 00:43:57 -07:00
Glenn Jocher
6570336284
Merge pull request #65 from Ashing00/master
...
add "__init__.py" file in <models> folder
2020-06-15 00:34:54 -07:00
ashing
62eda5e9c2
add "__init__.py" file in <models> folder
2020-06-15 14:37:07 +08:00
Glenn Jocher
111994956e
switch default inference to FP16 on GPU
2020-06-14 19:25:39 -07:00
Glenn Jocher
157aff2854
FP16 inference fix
2020-06-14 18:45:20 -07:00
Glenn Jocher
c6fc4242a2
Merge remote-tracking branch 'origin/master'
2020-06-14 18:32:35 -07:00
Glenn Jocher
260b1729f0
FP16 inference update
2020-06-14 18:32:29 -07:00
Glenn Jocher
b545ee32f4
Created using Colaboratory
2020-06-14 13:29:05 -07:00
Glenn Jocher
629d3701fc
pyyaml >= 5.3
2020-06-14 12:42:51 -07:00
Glenn Jocher
4b0e3745f2
Merge pull request #59 from Lijun-Yu/master
...
Fix config path for PyTorch Hub
2020-06-14 12:16:41 -07:00
Glenn Jocher
4f6c0cf4c5
Update hubconf.py
2020-06-14 12:15:14 -07:00
Lijun Yu
0dec8ffd66
path fix for torch hub
2020-06-14 14:47:40 -04:00
Glenn Jocher
4dd75b3635
pycocotools git install fix
2020-06-14 10:54:00 -07:00
Glenn Jocher
9bf35e7b86
Merge pull request #56 from channeladam/master
...
Fix initial basic setup / new starter issues
2020-06-14 10:33:34 -07:00
Glenn Jocher
335c607a24
Update datasets.py
2020-06-14 10:32:59 -07:00
Glenn Jocher
1374581929
Update requirements.txt
2020-06-14 10:23:33 -07:00
Adam
f47ca2085c
Include yolov5x extra large model weights
2020-06-14 18:19:23 +10:00
Adam
34bf936ce6
Add more logging for diagnostics
2020-06-14 18:18:57 +10:00
Adam
faa6aeaa20
Fix pip requirements issues
2020-06-14 18:18:31 +10:00
Glenn Jocher
93bbf1b87a
best possible recall fix
2020-06-13 15:25:53 -07:00
Glenn Jocher
31f3310029
assert best possible recall > 0.9 before training
2020-06-13 15:05:41 -07:00
Glenn Jocher
19e68e8a7b
Merge pull request #51 from KPLauritzen/b-ensure-weights-dir-when-training
...
Ensures weights/ dir exists
2020-06-13 12:54:43 -07:00
Lauritzen Kasper Primdal
c3d4d321d3
Ensures weights/ dir exists
...
Allows train.py to be run outside of yolov5/ directory.
2020-06-13 14:44:23 +02:00
Glenn Jocher
099e6f5ebd
--img-size stride-multiple verification
2020-06-12 22:10:46 -07:00
Glenn Jocher
4ba47b1b1b
model.yaml updates
2020-06-12 15:41:46 -07:00
Glenn Jocher
1e2cb6b480
ONNX export explicit cpu map_location
2020-06-12 13:54:00 -07:00
Glenn Jocher
ad71d2d513
update times to end-to-end latency (inference + NMS)
2020-06-12 11:42:08 -07:00
Glenn Jocher
8f17a96ff0
cleanup
2020-06-11 21:55:22 -07:00
Glenn Jocher
8f1755290c
ONNX export update
2020-06-11 21:54:01 -07:00
Glenn Jocher
3a5c5328c5
ONNX, BCEBlurWithLogitsLoss, plot_study updates
2020-06-11 14:44:09 -07:00
Glenn Jocher
18b4da91e0
PyTorch Hub update
2020-06-10 19:14:47 -07:00
Glenn Jocher
c8f0694894
PyTorch Hub update
2020-06-10 19:13:04 -07:00
Glenn Jocher
a814720403
PyTorch Hub updates
2020-06-10 19:11:11 -07:00
Glenn Jocher
1e25775c7d
Merge remote-tracking branch 'origin/master'
2020-06-10 17:09:43 -07:00
Glenn Jocher
0c7a0a08e9
update greetings.yml
2020-06-10 17:09:37 -07:00
Glenn Jocher
f3daa50a32
Update README.md
2020-06-10 17:07:25 -07:00
Glenn Jocher
46e3cadf28
Update README.md
2020-06-10 16:22:18 -07:00
Glenn Jocher
a4ae9a6850
Update README.md
2020-06-10 15:56:03 -07:00
Glenn Jocher
bb56ed4d05
Merge pull request #35 from pcgeek86/patch-1
...
Fix Google Drive URI for YOLOv5 weights
2020-06-10 14:42:50 -07:00
Trevor Sullivan
ac93e9c811
Fix Google Drive URI for YOLOv5 weights
2020-06-10 14:26:10 -07:00
Glenn Jocher
9b62f9962e
bug fix #30
2020-06-10 00:44:34 -07:00
Glenn Jocher
c14368d768
new CSP model release
2020-06-09 14:31:04 -07:00
Glenn Jocher
854ccb9a74
_print_weights()
2020-06-09 10:51:47 -07:00
Glenn Jocher
5bee686649
model definition update
2020-06-08 23:26:56 -07:00
Glenn Jocher
715cb08b10
module updates
2020-06-08 22:15:16 -07:00
Glenn Jocher
ff02ae0869
module updates
2020-06-08 22:13:01 -07:00
Glenn Jocher
d187459dd4
study changes
2020-06-08 10:42:33 -07:00
Glenn Jocher
1f698af6f1
create_backbone with SourceChangeWarning update
2020-06-07 15:45:05 -07:00
Glenn Jocher
546f973562
model fuse
2020-06-07 14:47:48 -07:00
Glenn Jocher
8fe299f179
model fuse
2020-06-07 14:10:30 -07:00
Glenn Jocher
c672bef10f
model fuse
2020-06-07 14:07:22 -07:00
Glenn Jocher
12b0c046d5
model fusion and onnx export
2020-06-07 13:42:33 -07:00
Glenn Jocher
b810b21299
augmented inference
2020-06-05 21:14:15 -07:00
Glenn Jocher
d5d160449c
updates
2020-06-05 21:03:17 -07:00
Glenn Jocher
c12023f145
updates
2020-06-05 20:50:43 -07:00
Glenn Jocher
5c470d235e
multi-gpu test bug fix #15
2020-06-05 20:36:29 -07:00
Glenn Jocher
67d5e65c77
profiling update
2020-06-05 20:22:39 -07:00
Glenn Jocher
2703ac73e8
profiling update
2020-06-05 20:22:17 -07:00
Glenn Jocher
4e32b6029a
update
2020-06-05 20:03:21 -07:00
Glenn Jocher
66d73e4cf3
NMS updates
2020-06-05 18:44:39 -07:00
Glenn Jocher
208493d959
updates
2020-06-05 16:34:05 -07:00
Glenn Jocher
948bcdd219
--classes bug fix #17
2020-06-05 13:29:26 -07:00
Glenn Jocher
22d6088205
speed-reproducibility fix #17
2020-06-05 13:07:09 -07:00
Glenn Jocher
55ca5c74d2
multi-scale fix #16
2020-06-05 12:57:16 -07:00
Glenn Jocher
7c2832cd49
assert equal model and dataset classes
2020-06-04 17:21:22 -07:00
Glenn Jocher
11121e39ed
updates
2020-06-04 16:52:07 -07:00
Glenn Jocher
dbdee3a4a3
multi-gpu test bug fix #15
2020-06-04 15:23:03 -07:00
Glenn Jocher
a2336088f0
updates
2020-06-04 14:25:10 -07:00
Glenn Jocher
ba9ab663a2
model.names for dataParallel
2020-06-04 13:30:14 -07:00
Glenn Jocher
0362f103ef
updates
2020-06-04 10:19:06 -07:00
Glenn Jocher
94e67115db
updates
2020-06-03 14:48:32 -07:00
Glenn Jocher
2a0aff685a
dataset padding mode
2020-06-03 13:55:33 -07:00
Glenn Jocher
eb97b2e413
NMS fast mode
2020-06-03 13:02:59 -07:00
Glenn Jocher
d97d31ed6b
updates
2020-06-03 09:27:43 -07:00
Glenn Jocher
391492ee5b
updates
2020-06-02 23:57:58 -07:00
Glenn Jocher
17e4926cdf
updates
2020-06-02 23:40:14 -07:00
Glenn Jocher
11b462e2a9
remove thop dependency
2020-06-02 11:29:39 -07:00
Glenn Jocher
ee8988b8a2
datasets.py self.batch_shapes fix
2020-06-01 18:11:18 -07:00
Glenn Jocher
7a00a5eff2
onnx_export.py
2020-06-01 14:05:01 -07:00
Glenn Jocher
df7988d8d0
onnx_export.py
2020-06-01 13:53:47 -07:00
Glenn Jocher
8cab44e78b
Merge remote-tracking branch 'origin/master'
2020-05-31 19:51:39 -07:00
Glenn Jocher
f96e8f3edf
updates
2020-05-31 19:51:32 -07:00
Glenn Jocher
f788a6af96
Update README.md
2020-05-31 16:50:48 -07:00
Glenn Jocher
76d879e8d0
Update README.md
2020-05-31 16:45:12 -07:00
Glenn Jocher
b10609fe6b
updates
2020-05-31 15:07:04 -07:00
Glenn Jocher
7a61d524d3
updates
2020-05-31 11:06:13 -07:00
Glenn Jocher
cf3ee51b8d
updates
2020-05-31 11:02:40 -07:00
Glenn Jocher
f688b45712
updates
2020-05-31 11:00:09 -07:00
Glenn Jocher
1500775463
Update greetings.yml
2020-05-31 09:30:50 -07:00
Glenn Jocher
72eed215ff
updates
2020-05-31 09:25:42 -07:00
Glenn Jocher
5a79b5f65c
updates
2020-05-30 15:22:09 -07:00
Glenn Jocher
4f44aaf26b
updates
2020-05-30 15:18:59 -07:00
Glenn Jocher
f129cdda9f
updates
2020-05-30 11:03:50 -07:00
Glenn Jocher
1b97392801
updates
2020-05-30 10:46:35 -07:00
Glenn Jocher
a88cdd25d7
updates
2020-05-30 10:34:43 -07:00
Glenn Jocher
4f00201a44
updates
2020-05-30 09:58:02 -07:00
Glenn Jocher
9bb5968ae5
updates
2020-05-30 09:56:15 -07:00
Glenn Jocher
893a9059e9
updates
2020-05-30 09:49:11 -07:00
Glenn Jocher
7960c4c5d8
updates
2020-05-30 09:28:11 -07:00
Glenn Jocher
ce36905358
updates
2020-05-30 00:12:45 -07:00
Glenn Jocher
1e84a23f38
initial commit
2020-05-29 17:04:54 -07:00