forked from ultralytics/yolov5
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/bump #15
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
updates: - [github.com/asottile/pyupgrade: v2.34.0 → v2.37.3](asottile/pyupgrade@v2.34.0...v2.37.3) - [github.com/PyCQA/flake8: 4.0.1 → 5.0.2](PyCQA/flake8@4.0.1...5.0.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…tics#8830) * Update hubconf.py Loading a custom yolov model causes this line to fail. Adding a test to check if the model actually has a model.model field. With this check, I'm able to load the model no prob. Loading model via ```py model = torch.hub.load( 'ultralytics/yolov5', 'custom', 'models/frozen_backbone_coco_unlabeled_best.onnx', autoshape=True, force_reload=False ) ``` Causes traceback: ``` Traceback (most recent call last): File "/Users/jackson/Documents/GitHub/w210-capstone/.venv/lib/python3.10/site-packages/flask/app.py", line 2077, in wsgi_app response = self.full_dispatch_request() File "/Users/jackson/Documents/GitHub/w210-capstone/.venv/lib/python3.10/site-packages/flask/app.py", line 1525, in full_dispatch_request rv = self.handle_user_exception(e) File "/Users/jackson/Documents/GitHub/w210-capstone/.venv/lib/python3.10/site-packages/flask/app.py", line 1523, in full_dispatch_request rv = self.dispatch_request() File "/Users/jackson/Documents/GitHub/w210-capstone/.venv/lib/python3.10/site-packages/flask/app.py", line 1509, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) File "/Users/jackson/Documents/GitHub/w210-capstone/api/endpoints/predictions.py", line 26, in post_predictions yolov_predictions = predict_bounding_boxes_for_collection(collection_id) File "/Users/jackson/Documents/GitHub/w210-capstone/api/predictions/predict_bounding_boxes.py", line 43, in predict_bounding_boxes_for_collection model = torch.hub.load( File "/Users/jackson/Documents/GitHub/w210-capstone/.venv/lib/python3.10/site-packages/torch/hub.py", line 404, in load model = _load_local(repo_or_dir, model, *args, **kwargs) File "/Users/jackson/Documents/GitHub/w210-capstone/.venv/lib/python3.10/site-packages/torch/hub.py", line 433, in _load_local model = entry(*args, **kwargs) File "/Users/jackson/.cache/torch/hub/ultralytics_yolov5_master/hubconf.py", line 72, in custom return _create(path, autoshape=autoshape, verbose=_verbose, device=device) File "/Users/jackson/.cache/torch/hub/ultralytics_yolov5_master/hubconf.py", line 67, in _create raise Exception(s) from e Exception: 'DetectMultiBackend' object has no attribute 'model'. Cache may be out of date, try `force_reload=True` or see ultralytics#36 for help. Exception on /api/v1/predictions [POST] Traceback (most recent call last): File "/Users/jackson/.cache/torch/hub/ultralytics_yolov5_master/hubconf.py", line 58, in _create model.model.model[-1].inplace = False # Detect.inplace=False for safe multithread inference File "/Users/jackson/Documents/GitHub/w210-capstone/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1185, in __getattr__ raise AttributeError("'{}' object has no attribute '{}'".format( AttributeError: 'DetectMultiBackend' object has no attribute 'model' ``` * Update hubconf.py * Update common.py Co-authored-by: Glenn Jocher <[email protected]>
* New `smart_resume()` * Update torch_utils.py * Update torch_utils.py * Update torch_utils.py * fix
* Single checkpoint resume * Update train.py * Add hyp * Add hyp * Add hyp * FIX * avoid resume on url data * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * avoid resume on url data * avoid resume on url data * Update Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Add check_file(data) i.e. `--data coco128.yaml` * [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>
* export.py replace `check_file` -> `check_yaml` * [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>
* Fix TensorRT --dynamic excess outputs bug Potential fix for ultralytics#8790 * Cleanup * Update common.py * Update common.py * New fix
@kalenmike should represent a 30% filesize reduction vs 75 quality
--resume training from URL weights fix @kalenmike should fix data error on HUB resume
* Update CI to default Python 3.10 * Update ci-testing.yml * Update ci-testing.yml
* Add titles to matplotlib plots * Add ClearML Experiment Tracking integration. * Add ClearML Data Version Management automatic download when requested * Add ClearML Hyperparameter Optimization * ClearML save period integration * Fix wandb breaking when used with ClearML dataset * Fix wandb breaking when used with ClearML resume and dataset * Add ClearML documentation * fixed small bug in clearml integration that misreports epoch number * Final ClearMl additions before refactor * Add correct epoch reporting * Add remote execution and autoscaling docs for ClearML integration * Added images to clearml integration docs * fixed logo alignment bug and added hpo screenshot clearml * Fixed small epoch number bug in clearml integration * Remove saved model flush clearml * Cleanup clearml readme section * Cleaned up clearml logger docstring * Remove resume readme section clearml * Clearml integration cleanup * Updated ClearML documentation * Added dark vs light icons ClearML Readme * Clearml Readme styling * Add better gifs * Fixed gif file size * Add better images in tutorial notebook * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Addressed comments in PR ultralytics#8620 * Fixed circular import * Fixed circular import * Update tutorial.ipynb * Update tutorial.ipynb * Inline comment * Restructured tutorial notebook * Add correct ClearML link to README * Update tutorial.ipynb * Update general.py * Update __init__.py * Update __init__.py * [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 * Update __init__.py * Update README.md * Update __init__.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * spelling * Update tutorial.ipynb * notebook cutt.ly links * Update README.md * Update README.md * cutt.ly links in tutorial * Removed labels as they show up on last subplot only Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <[email protected]>
Update smart_optimizer() weight_decay reporting
* emoji-safe default logging * implement everywhere
* fix: added transparent image and empty alt to social bar * fix: remove underlines * fix: hide underlines for all social links * Update image URLs to ultralytics/assets * Update bottom 3% icons * Update README.md Co-authored-by: Glenn Jocher <[email protected]>
* Fix anchor incorrectly initialized Using --noautoanchor and --evolve simultaneously leads to anchor incorrectly initialized. --noautoanchor denotes anchors don't need to evolve, thus removing anchors from hyp will fix it. * Update train.py * Update train.py Co-authored-by: Glenn Jocher <[email protected]>
The notes says "Return True if directory has write permissions", however, the code below is "os.R_OK", I think "os.W_OK" is preferred.
Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
Until more ops are fully supported this update will allow for seamless MPS inference (but slower MPS to CPU transfer before NMS, so slower NMS times). Partially resolves ultralytics#9596 Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
* Updated Segmentation and Classification usage Signed-off-by: Glenn Jocher <[email protected]> * Update export.py Signed-off-by: Glenn Jocher <[email protected]> * Update export.py Signed-off-by: Glenn Jocher <[email protected]> * Update export.py Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
* Update export.py Usage examples Signed-off-by: Glenn Jocher <[email protected]> * Update export.py Signed-off-by: Glenn Jocher <[email protected]> * Update export.py Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
Failing on missing path, i.e. no 'www.' Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
* NMS MPS device wrapper May resolve ultralytics#9613 Signed-off-by: Glenn Jocher <[email protected]> * Update general.py Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
* Add SegmentationModel unsupported warning Signed-off-by: Glenn Jocher <[email protected]> * Update hubconf.py Signed-off-by: Glenn Jocher <[email protected]> * Update hubconf.py Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
…ug (ultralytics#9652) * disabled upload_dataset flag temporarily due to an artifact related bug * [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>
Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
ultralytics#9668) * Added cutout import from utils/augmentations.py to use Cutout Aug in data loader by un-commenting line 679, 680, 681 * [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>
* Update __init__.py In the Comet logger, when I run train.py, it wants to download the data artifact. It was requiring me to format the 'names' field in the data artifact metadata as a dictionary, so I've changed this so that it also accepts a list. Signed-off-by: KristenKehrer <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update utils/loggers/comet/__init__.py Co-authored-by: Dhruv Nair <[email protected]> Signed-off-by: KristenKehrer <[email protected]> Signed-off-by: KristenKehrer <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Dhruv Nair <[email protected]> Co-authored-by: Glenn Jocher <[email protected]>
updates: - [github.com/asottile/pyupgrade: v2.37.3 → v2.38.2](asottile/pyupgrade@v2.37.3...v2.38.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* Update export.py Signed-off-by: Glenn Jocher <[email protected]> * Update export.py Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
When running segmentation predict on gpu, the conversion from tensor to numpy fails. Calling `.cpu()` solves this problem. Signed-off-by: Paul Guerrie <[email protected]> Signed-off-by: Paul Guerrie <[email protected]>
* Update * Cleanup
Update README.md Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
* Update * Update tutorial.ipynb Signed-off-by: Glenn Jocher <[email protected]> * Update tutorial.ipynb Signed-off-by: Glenn Jocher <[email protected]> * Update tutorial.ipynb Signed-off-by: Glenn Jocher <[email protected]> * Update requirements.txt Signed-off-by: Glenn Jocher <[email protected]> * Update * Update README.md Signed-off-by: Glenn Jocher <[email protected]> * Update Signed-off-by: Glenn Jocher <[email protected]>
* update mask2segments and saving results * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update general.py Signed-off-by: Glenn Jocher <[email protected]> * Update predict.py Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Glenn Jocher <[email protected]>
Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
* Update hubconf.py Signed-off-by: Glenn Jocher <[email protected]> * Update hubconf.py Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
If a parameter does not fall into any other category Signed-off-by: Glenn Jocher <[email protected]> Signed-off-by: Glenn Jocher <[email protected]>
* Allow PyTorch Hub results to display in notebooks * fix CI * fix CI * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix CI * fix CI * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix CI * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix CI * fix CI * fix CI * fix CI * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix CI * fix CI * fix CI Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
select_device()
for Multi-GPU (Fix2select_device()
for Multi-GPU ultralytics/yolov5#6461)export.py
usage examples (Improvedexport.py
usage examples ultralytics/yolov5#6495)list()
->sorted()
(CoreML inference fixlist()
->sorted()
ultralytics/yolov5#6496)torch.jit.TracerWarning
on export (Suppresstorch.jit.TracerWarning
on export ultralytics/yolov5#6498)export.run()
TracerWarning
ultralytics/yolov5#6499)batch_size
on resuming ultralytics/yolov5#6512)lrf: 0.1
ultralytics/yolov5#6525)sudo
fix (Edge TPU compilersudo
fix ultralytics/yolov5#6531)tf.lite.experimental.load_delegate
fix (Edge TPUtf.lite.experimental.load_delegate
fix ultralytics/yolov5#6536)if any(f):
(Fix zero-export handling withif any(f):
ultralytics/yolov5#6569)plot_labels()
colored histogram bug (Fixplot_labels()
colored histogram bug ultralytics/yolov5#6574)--evolve
project names (Allow custom--evolve
project names ultralytics/yolov5#6567)DATASETS_DIR
global in general.py (AddDATASETS_DIR
global in general.py ultralytics/yolov5#6578)opt
fromtrain.run()
(returnopt
fromtrain.run()
ultralytics/yolov5#6581)pafy
package (Fix YouTube dislike button bug inpafy
package ultralytics/yolov5#6603)hyp_evolve.yaml
indexing bug (Fixhyp_evolve.yaml
indexing bug ultralytics/yolov5#6604)ROOT / data
when running W&Blog_dataset()
(FixROOT / data
when running W&Blog_dataset()
ultralytics/yolov5#6606)youtube_dl==2020.12.2
(YouTube dependency fixyoutube_dl==2020.12.2
ultralytics/yolov5#6612)vmin=0.0
(Fix ConfusionMatrix scalevmin=0.0
ultralytics/yolov5#6638)KeyError
ultralytics/yolov5#6637)--workers
(Validate with 2x--workers
ultralytics/yolov5#6658)--workers
single-GPU/CPU fix (Validate with 2x--workers
single-GPU/CPU fix ultralytics/yolov5#6659)--cache val
(Add--cache val
option ultralytics/yolov5#6663)scipy.cluster.vq.kmeans
too few points (Robustscipy.cluster.vq.kmeans
too few points ultralytics/yolov5#6668)torch==1.10.2+cu113
(Update Dockerfiletorch==1.10.2+cu113
ultralytics/yolov5#6669)--evolve --bucket gs://...
(Fix--evolve --bucket gs://...
ultralytics/yolov5#6698)nw
(Fix floating point in number of workers ultralytics/yolov5#6701)export_formats()
in export.py (Useexport_formats()
in export.py ultralytics/yolov5#6705)torch
AMP-CPU warnings (Suppresstorch
AMP-CPU warnings ultralytics/yolov5#6706)nw
tomax(nd, 1)
(Updatenw
tomax(nd, 1)
ultralytics/yolov5#6714)OMP_NUM_THREADS=8
(DefaultOMP_NUM_THREADS=8
ultralytics/yolov5#6770)tau
(Update EMA decaytau
ultralytics/yolov5#6769)*.ts
toVID_FORMATS
(Add*.ts
toVID_FORMATS
ultralytics/yolov5#6859)--cache disk
deprecate*_npy/
dirs (Update--cache disk
deprecate*_npy/
dirs ultralytics/yolov5#6876)max_workspace_size
deprecation notice (Fix TRTmax_workspace_size
deprecation notice ultralytics/yolov5#6856)git_describe()
to general.py (Movegit_describe()
to general.py ultralytics/yolov5#6918)--half
handling (DetectMultiBackend()--half
handling ultralytics/yolov5#6945)torch==1.11.0+cu113
(Update Dockerfiletorch==1.11.0+cu113
ultralytics/yolov5#6954)cuda
variable (New val.pycuda
variable ultralytics/yolov5#6957)device
update (DetectMultiBackend() returndevice
update ultralytics/yolov5#6958)ema
key backward compatibility fix (Modelema
key backward compatibility fix ultralytics/yolov5#6972)Timeout()
by OS (disable on Windows) (ConditionalTimeout()
by OS (disable on Windows) ultralytics/yolov5#7013)ComputeLoss()
indexing/speed improvements (ComputeLoss()
indexing/speed improvements ultralytics/yolov5#7048)git clone
instead ofCOPY
(Update Dockerfile togit clone
instead ofCOPY
ultralytics/yolov5#7053)check_anchor_order()
in pixel-space not grid-space (Fixcheck_anchor_order()
in pixel-space not grid-space ultralytics/yolov5#7060)y.tensor_split()
(Update detect.py non-inplace withy.tensor_split()
ultralytics/yolov5#7062)LOGGER.info()
(Update W&B message toLOGGER.info()
ultralytics/yolov5#7064)da
check_anchor_order()
condition (Add non-zeroda
check_anchor_order()
condition ultralytics/yolov5#7066)check_anchor_order()
in pixel-space not grid-space (Fix2check_anchor_order()
in pixel-space not grid-space ultralytics/yolov5#7067)y.tensor_split()
(Update detect.py non-inplace withy.tensor_split()
ultralytics/yolov5#7062)" (Revert "Update detect.py non-inplace withy.tensor_split()
" ultralytics/yolov5#7074)if self.gr < 1:
(Update loss.py withif self.gr < 1:
ultralytics/yolov5#7087)tobj
(Update loss for FP16tobj
ultralytics/yolov5#7088)torch.split()
1.7.0 compatibility fix (torch.split()
1.7.0 compatibility fix ultralytics/yolov5#7102)pathlib
fix (Model summarypathlib
fix ultralytics/yolov5#7104)np.fromfile()
Chinese image paths fix (np.fromfile()
Chinese image paths fix ultralytics/yolov5#6979)results.save(labels=False)
option (Add PyTorch Hubresults.save(labels=False)
option ultralytics/yolov5#7129)cv2.imwrite
on non-ASCII paths (Fixcv2.imwrite
on non-ASCII paths ultralytics/yolov5#7139)detect.py --view-img
for non-ASCII paths (Fixdetect.py --view-img
for non-ASCII paths ultralytics/yolov5#7093)os.path.relpath()
Windows bug (Sidestepos.path.relpath()
Windows bug ultralytics/yolov5#7158)yolo.py --profile
default GPU batch size 16yolo.py --profile
updates (yolo.py --profile
updates ultralytics/yolov5#7170)C3()
change (RevertC3()
change ultralytics/yolov5#7172)ENV OMP_NUM_THREADS=8
(ENV OMP_NUM_THREADS=8
ultralytics/yolov5#7215)--name cfg
option (Add train.py--name cfg
option ultralytics/yolov5#7202)fire
prep updates (CLIfire
prep updates ultralytics/yolov5#7229)www.youtube.com
hostname (Fixwww.youtube.com
hostname ultralytics/yolov5#7242)description_file
field (Update setup.cfg todescription_file
field ultralytics/yolov5#7248)nn.SiLU()
(Export with officialnn.SiLU()
ultralytics/yolov5#7256)Detect()
for reduced ops (Refactor out-of-placeDetect()
for reduced ops ultralytics/yolov5#7257)torch.split()
replace slicing on out-of-place inference (torch.split()
replace slicing on out-of-place inference ultralytics/yolov5#7258)--nms
and--agnostic-nms
(Enable TensorFlow ops for--nms
and--agnostic-nms
ultralytics/yolov5#7281)cv2.imread()
patch with flags argument (Updatecv2.imread()
patch with flags argument ultralytics/yolov5#7287)open(file) as f
fixes (Context manageropen(file) as f
fixes ultralytics/yolov5#7289)--weights
and--data
compatibility check (val.py--weights
and--data
compatibility check ultralytics/yolov5#7292)check_requirements(('pycocotools>=2.0',))
(Addcheck_requirements(('pycocotools>=2.0',))
ultralytics/yolov5#7295)tqdm.auto
(Usetqdm.auto
ultralytics/yolov5#7311)retry=3
todownload()
(Addretry=3
todownload()
ultralytics/yolov5#7313)if RANK in (-1, 0)
(Print dataset scan onlyif RANK in (-1, 0)
ultralytics/yolov5#7337)_make_grid()
(Update_make_grid()
to modeldtype
ultralytics/yolov5#7346)python benchmarks.py --test
for export-only (Addpython benchmarks.py --test
for export-only ultralytics/yolov5#7350)stride=32
(DetectMultiBackend() defaultstride=32
ultralytics/yolov5#7342)unsafe_chunk()
forchunk()
(Swapunsafe_chunk()
forchunk()
ultralytics/yolov5#7362)opset<=12
check (Remove OpenVINO ONNXopset<=12
check ultralytics/yolov5#7398)git_describe()
(Updategit_describe()
ultralytics/yolov5#7402)tensorrt
pip install check (Removetensorrt
pip install check ultralytics/yolov5#7439)pbar
for DDP ranks > 0 (Disablepbar
for DDP ranks > 0 ultralytics/yolov5#7440)--half
support for FP16 CoreML exports with (Add--half
support for FP16 CoreML exports with ultralytics/yolov5#7446)Annotator()
plotting (Improved non-latinAnnotator()
plotting ultralytics/yolov5#7488)check_fonts()
download toCONFIG_DIR
fix (check_fonts()
download toCONFIG_DIR
fix ultralytics/yolov5#7489)YOLOv5_AUTOINSTALL
environment variable (AddedYOLOv5_AUTOINSTALL
environment variable ultralytics/yolov5#7505)utils/docker
(Refactor Dockerfiles toutils/docker
ultralytics/yolov5#7510)plots=plots
(Fix valplots=plots
ultralytics/yolov5#7524)--file
argument to build (Add Docker--file
argument to build ultralytics/yolov5#7527)cmds=()
argument (Update check_requirements() withcmds=()
argument ultralytics/yolov5#7543)--noplots
flag to suppress figures and images logging (Add--noplots
flag to suppress figures and images logging ultralytics/yolov5#7534)_verbose=False
fix2 (PyTorch Hub_verbose=False
fix2 ultralytics/yolov5#7550)results.print()
when_verbose=False
(Enableresults.print()
when_verbose=False
ultralytics/yolov5#7558)print(results)
override for PyTorch Hub results (Addprint(results)
override for PyTorch Hub results ultralytics/yolov5#7559)from yolov5 import utils
statement (Fixfrom yolov5 import utils
statement ultralytics/yolov5#7578)tqdm.auto
(Removetqdm.auto
ultralytics/yolov5#7599)--half
support for OpenVINO exports (Add--half
support for OpenVINO exports ultralytics/yolov5#7615)increment_path()
robustness improvements (increment_path()
robustness improvements ultralytics/yolov5#7628)opencv-python>=4.1.1
for Jetson Nano (Reduceopencv-python>=4.1.1
for Jetson Nano ultralytics/yolov5#7645)scipy>=1.5
to meet numpy constraints (Bumpscipy>=1.5
to meet numpy constraints ultralytics/yolov5#7646)--dynamic
when--half
is passed (Disallow--dynamic
when--half
is passed ultralytics/yolov5#7669)FROM ubuntu:20.04
(Pin Docker-cpuFROM ubuntu:20.04
ultralytics/yolov5#7677)on_train_end
callback (Updateon_train_end
callback ultralytics/yolov5#7716)static_graph=True
(Implement DDPstatic_graph=True
ultralytics/yolov5#6940)utils/datasets.py
>utils/dataloaders.py
(Renameutils/datasets.py
->utils/dataloaders.py
ultralytics/yolov5#7799)@threaded
decorator (Add@threaded
decorator ultralytics/yolov5#7813)TFDWConv()
module (New TensorFlowTFDWConv()
module ultralytics/yolov5#7824)TFCrossConv()
module (New TensorFlowTFCrossConv()
module ultralytics/yolov5#7827)c1 == c2
check (Fix TFDWConv()c1 == c2
check ultralytics/yolov5#7842)openvino-dev
with OpenVINO Runtime inference (Replaceopenvino-dev
with OpenVINO Runtime inference ultralytics/yolov5#7843)depthwise_initializer
fix (TFDWConv()depthwise_initializer
fix ultralytics/yolov5#7845)--no-install-recommends
(Update Dockerfile--no-install-recommends
ultralytics/yolov5#7846)libpython3.8-dev
(Update Dockerfile-cpu installlibpython3.8-dev
ultralytics/yolov5#7857)depth_multiplier
(Add TFDWConv()depth_multiplier
arg ultralytics/yolov5#7858)cv2.resize
interpolation fix (cv2.resize
interpolation fix ultralytics/yolov5#7903)DWConvTranspose2d()
module (AddDWConvTranspose2d()
module ultralytics/yolov5#7881)check_yaml()
to benchmarks.py (Addcheck_yaml()
to benchmarks.py ultralytics/yolov5#7916)--keras
argument for TF exports (Add--keras
argument for TF exports ultralytics/yolov5#7921)check_file()
fix (Windowscheck_file()
fix ultralytics/yolov5#7938)formats
variable to avoidpd
conflict (Removeformats
variable to avoidpd
conflict ultralytics/yolov5#7993)check_requirements()
Windows fix (check_requirements()
Windows fix ultralytics/yolov5#7997)psutil
andipython
to requirements.txt (Addpsutil
andipython
to requirements.txt ultralytics/yolov5#7998)--conf > 0.001
(Add warning emoji ⚠️ on--conf > 0.001
ultralytics/yolov5#8005)protobuf==3.20.1
(Pin CIprotobuf==3.20.1
ultralytics/yolov5#8015)check_requirements()
"" Windows double quote (check_requirements()
"" Windows double quote ultralytics/yolov5#8016)protobuf<=3.20.1
(Add requirements.txtprotobuf<=3.20.1
ultralytics/yolov5#8017)--save-period
epoch 0 (Simplify and fix--save-period
epoch 0 ultralytics/yolov5#8042).detach()
on bias init (.detach()
on bias init ultralytics/yolov5#8044)attempt_load()
deserialize fix (attempt_load()
deserialize fix ultralytics/yolov5#8051)ultralytics/yolov5
repo (Make Docker actions conditional onultralytics/yolov5
repo ultralytics/yolov5#8060)long
tofloat
tensor on HUB macOS (Fix torchlong
tofloat
tensor on HUB macOS ultralytics/yolov5#8067)opencv-python<4.6.0.66
(Docker GPU pip installopencv-python<4.6.0.66
ultralytics/yolov5#8164)dataset_stats()
YAML checks (Improveddataset_stats()
YAML checks ultralytics/yolov5#8125)process_batch()
as numpy arrays (process_batch()
as numpy arrays ultralytics/yolov5#8254)logging.ERROR
onRANK
not in (0, 1) (logging.ERROR
onRANK
not in (0, 1) ultralytics/yolov5#8284)device_name="MYRIAD" for Intel NCS2
comment (device_name="MYRIAD" for Intel NCS2
comment ultralytics/yolov5#8327)--dynamic
export on GPU (Fix ONNX--dynamic
export on GPU ultralytics/yolov5#8378)--local_rank
arg comment (Improve--local_rank
arg comment ultralytics/yolov5#8409)--half
fix autocast images to FP16 (TRT--half
fix autocast images to FP16 ultralytics/yolov5#8435)batch_size
similarly to TensorRT (Expose OpenVINObatch_size
similarly to TensorRT ultralytics/yolov5#8437)torch==1.12
on Multi-GPU systems ultralytics/yolov5#8395) (Exclude torch==1.12.0, torchvision==0.13.0 (Fix #8395) ultralytics/yolov5#8497)batch_size
similarly to TensorRT" (Revert "Expose OpenVINObatch_size
similarly to TensorRT" ultralytics/yolov5#8510)--hard-fail
argument to benchmarks for CI errors (Add--hard-fail
argument to benchmarks for CI errors ultralytics/yolov5#8513)batch_size
from OpenVINO similarly to TensorRT (Properly exposebatch_size
from OpenVINO similarly to TensorRT ultralytics/yolov5#8514)--half
arguments to export.py Usage examples (Add--half
arguments to export.py Usage examples ultralytics/yolov5#8516)--half
fix (XML export--half
fix ultralytics/yolov5#8522)LoadImages()
with dataset YAML lists (FixLoadImages()
with dataset YAML lists ultralytics/yolov5#8517)assert ncm == nc
fix (val.pyassert ncm == nc
fix ultralytics/yolov5#8545)thop>=0.1.0
(Addthop>=0.1.0
ultralytics/yolov5#8558)--optimize
not used with cuda device (Assert--optimize
not used with cuda device ultralytics/yolov5#8569)weight_decay
value (Explicitly setweight_decay
value ultralytics/yolov5#8592)scipy>=1.7.3
(Updatescipy>=1.7.3
ultralytics/yolov5#8595)tqdm>=4.64.0
andthop>=0.1.1
(Updatetqdm>=4.64.0
andthop>=0.1.1
ultralytics/yolov5#8596)pip install wheel
to avoid legacysetup.py install
(Addpip install wheel
to avoid legacysetup.py install
ultralytics/yolov5#8597)OMP_NUM_THREADS=1
for macOS (FixOMP_NUM_THREADS=1
for macOS ultralytics/yolov5#8624)torch.cuda.manual_seed_all()
for DDP (Settorch.cuda.manual_seed_all()
for DDP ultralytics/yolov5#8688)else:
from load_image() (Removeelse:
from load_image() ultralytics/yolov5#8692)HUBDatasetStats()
class (NewHUBDatasetStats()
class ultralytics/yolov5#8716)is_docker
check (fix: brokenis_docker
check ultralytics/yolov5#8711)detect.py --update
list bug (Fixdetect.py --update
list bug ultralytics/yolov5#8783)compat _non_persistent_buffers_set
(Deprecate torch 1.6.0compat _non_persistent_buffers_set
ultralytics/yolov5#8797)Detect.inplace=False
for multithread-safe inference (Detect.inplace=False
for multithread-safe inference ultralytics/yolov5#8801)val.run(half=amp)
(Update train.py forval.run(half=amp)
ultralytics/yolov5#8804)ultralytics
ororigin
dynamically (Check git status on upstreamultralytics
ororigin
dynamically ultralytics/yolov5#8694)assert not is_docker()
from GitHub checks (Removeassert not is_docker()
from GitHub checks ultralytics/yolov5#8813)torch.nan_to_num(x)
(Remove hooktorch.nan_to_num(x)
ultralytics/yolov5#8826)/usr/src/app
(RUN git clone instead of COPY to/usr/src/app
ultralytics/yolov5#8827)smart_resume()
(Newsmart_resume()
ultralytics/yolov5#8838)--resume
(Self-contained checkpoint--resume
ultralytics/yolov5#8839)--data coco128.yaml
(Add check_file(data) i.e.--data coco128.yaml
ultralytics/yolov5#8851)check_file
->check_yaml
(export.py replacecheck_file
->check_yaml
ultralytics/yolov5#8852)float64
shapes (Update dataloaders.py removefloat64
shapes ultralytics/yolov5#8865)--resume
training from URL weights (--resume
training from URL weights ultralytics/yolov5#8882)--resume
training from URL weights fix (--resume
training from URL weights fix ultralytics/yolov5#8884)smart_optimizer()
improved reporting (smart_optimizer()
improved reporting ultralytics/yolov5#8887)--search_delegate
fix (Edge TPU add--search_delegate
fix ultralytics/yolov5#8902)torchvision.utils.draw_bounding_boxes
import (Scopetorchvision.utils.draw_bounding_boxes
import ultralytics/yolov5#8915)torch==1.7.0
to CI tests (Addtorch==1.7.0
to CI tests ultralytics/yolov5#8916)--source 'path/*.jpg'
glob example (Fix--source 'path/*.jpg'
glob example ultralytics/yolov5#8927)destroy_process_group()
on train end (Remove DDPdestroy_process_group()
on train end ultralytics/yolov5#8935)smart_inference_mode()
conditional decorator (Newsmart_inference_mode()
conditional decorator ultralytics/yolov5#8957).tar
support for datasets (Add.tar
support for datasets ultralytics/yolov5#8963)attempt_download(release='v6.2')
(Updateattempt_download(release='v6.2')
ultralytics/yolov5#8998)names
from array to dictionary (Update datasetnames
from array to dictionary ultralytics/yolov5#9000)decay
to argparser (Add weightdecay
to argparser ultralytics/yolov5#9006)Profile()
inference timing (ImprovedProfile()
inference timing ultralytics/yolov5#9024)torch.empty()
for speed improvements (torch.empty()
for speed improvements ultralytics/yolov5#9025)time_sync
import (Remove unusedtime_sync
import ultralytics/yolov5#9026)imagenette160
training (fastest) (Default --dataimagenette160
training (fastest) ultralytics/yolov5#9033)names
dictionary fix (VOCnames
dictionary fix ultralytics/yolov5#9034)import val as validate
(Update train.pyimport val as validate
ultralytics/yolov5#9037)macos-latest
from CI (Temporarily removemacos-latest
from CI ultralytics/yolov5#9049)--save-hybrid
mAP warning (Add--save-hybrid
mAP warning ultralytics/yolov5#9050).detach()
to EMA (zero-mAP fix return.detach()
to EMA ultralytics/yolov5#9056)plot_labels()
for faster start (Daemonplot_labels()
for faster start ultralytics/yolov5#9057)torch.empty()
forward pass in.train()
mode (zero-mAP fix removetorch.empty()
forward pass in.train()
mode ultralytics/yolov5#9068)size=(h,w)
AutoShape support (Two dimensionalsize=(h,w)
AutoShape support ultralytics/yolov5#9072)torch
latest stable (Installtorch
latest stable ultralytics/yolov5#9092)@try_export
decorator (New@try_export
decorator ultralytics/yolov5#9096)transforms
argument to LoadStreams() (Add optionaltransforms
argument to LoadStreams() ultralytics/yolov5#9105)_make_grid()
meshgrid (Inline_make_grid()
meshgrid ultralytics/yolov5#9170)check_git_status(..., branch='master')
argument (Addcheck_git_status(..., branch='master')
argument ultralytics/yolov5#9199)check_font()
on notebook init (check_font()
on notebook init ultralytics/yolov5#9200)protobuf
in requirements.txt (Commentprotobuf
in requirements.txt ultralytics/yolov5#9207)check_font()
fstring update (check_font()
fstring update ultralytics/yolov5#9208)LetterBox(size)
CenterCrop(size)
,ToTensor()
transforms (NewLetterBox(size)
CenterCrop(size)
,ToTensor()
transforms (#9213) ultralytics/yolov5#9213)pathlib.Path.unlink(missing_ok=...)
(Remove usage ofpathlib.Path.unlink(missing_ok=...)
ultralytics/yolov5#9227).pfm
images (Add support for*.pfm
images ultralytics/yolov5#9230)url_getsize()
function (Addurl_getsize()
function ultralytics/yolov5#9247)cudnn.benchmarks(True)
to LoadStreams (Movecudnn.benchmarks(True)
to LoadStreams ultralytics/yolov5#9258)cudnn.benchmark = True
on Seed 0 (cudnn.benchmark = True
on Seed 0 ultralytics/yolov5#9259)TryExcept(msg='...')
` ultralytics/yolov5#9261)--hard-fail
min metric floor (Update benchmarks CI with--hard-fail
min metric floor ultralytics/yolov5#9276)--vid-stride
inference parameter for videos (Add new--vid-stride
inference parameter for videos ultralytics/yolov5#9256)np.int
withint
(Replace deprecatednp.int
withint
ultralytics/yolov5#9307)check_requirements()
single install (Updatecheck_requirements()
single install ultralytics/yolov5#9353)check_requirements(args, cmds='')
(Updatecheck_requirements(args, cmds='')
ultralytics/yolov5#9355)check_requirements()
multiple string (Updatecheck_requirements()
multiple string ultralytics/yolov5#9356)ipython
from hubconf.pycheck_requirements()
(Excludeipython
from hubconf.pycheck_requirements()
ultralytics/yolov5#9362)torch.jit.trace()
fix (torch.jit.trace()
fix ultralytics/yolov5#9363).train()
mode exports (Remove.train()
mode exports ultralytics/yolov5#9429)activation:
field (New model.yamlactivation:
field ultralytics/yolov5#9371)cudnn.benchmark=True
fix (AutoBatchcudnn.benchmark=True
fix ultralytics/yolov5#9448)Detect()
andSegment()
fixes for CoreML and Paddle (Detect()
andSegment()
fixes for CoreML and Paddle ultralytics/yolov5#9458)macos-latest
runner for CoreML benchmarks (Addmacos-latest
runner for CoreML benchmarks ultralytics/yolov5#9453)Conv()
dilation argument fix (Conv()
dilation argument fix ultralytics/yolov5#9466)imgsz=224
(Update ClassificationModel default trainingimgsz=224
ultralytics/yolov5#9469)WARNING ⚠️ ...
(Standardize warnings withWARNING ⚠️ ...
ultralytics/yolov5#9467)classify/predict --save-txt
fix (classify/predict --save-txt
fix ultralytics/yolov5#9478)for
loop (Update Detect() grid initfor
loop ultralytics/yolov5#9494)polygons2masks_overlap()
innp.int32
(Segmentationpolygons2masks_overlap()
innp.int32
ultralytics/yolov5#9493)random_perspective
param bug in segment (Fixrandom_perspective
param bug in segment ultralytics/yolov5#9512)check_requirements('flatbuffers==1.12')
(Removecheck_requirements('flatbuffers==1.12')
ultralytics/yolov5#9514)coremltools>=6.0
(Updatecoremltools>=6.0
ultralytics/yolov5#9532)--source screen
for screenshot inference (Add--source screen
for screenshot inference ultralytics/yolov5#9542)is_url()
(Updateis_url()
ultralytics/yolov5#9566)scale_segments()
function (Newscale_segments()
function ultralytics/yolov5#9570)is_url('https://ultralytics.com')
(Fixis_url('https://ultralytics.com')
ultralytics/yolov5#9610)results.save(save_dir='path', exist_ok=False)
(Addresults.save(save_dir='path', exist_ok=False)
ultralytics/yolov5#9617)--dynamic
fix (TensorRT--dynamic
fix ultralytics/yolov5#9691)masks2segments()
(Error in utils/segment/generalmasks2segments()
ultralytics/yolov5#9724)smart_optimizer()
revert to weight with decay (smart_optimizer()
revert to weight with decay ultralytics/yolov5#9817)