Glenn Jocher
22ee6fb7c1
Update `is_writeable()` for 2 methods ( #4744 )
* Writeable test
* Fix
* Cleanup
3 years ago
Glenn Jocher
ff35292520
Add TF and TFLite models to `.dockerignore` ( #4748 )
3 years ago
Glenn Jocher
6c554b75ea
Add TF and TFLite models to `.gitignore` ( #4747 )
3 years ago
Glenn Jocher
a144536f88
Fix `is_writeable()` for 3 OS support ( #4743 )
* Fix `is_writeable()` for 3 OS support
* Update general.py
3 years ago
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>
3 years ago
Glenn Jocher
7af1b4c266
Improved `detect.py` timing ( #4741 )
* Improved detect.py timing
* Eliminate 1 time_sync() call
* Inference-only time
* dash
* #Save section
* Cleanup
3 years ago
Glenn Jocher
c5360f6e70
Fix `--data from_HUB.zip` ( #4732 )
@KalenMike
3 years ago
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
3 years ago
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>
3 years ago
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>
3 years ago
JD Costa
deb434aefa
Make CONFIG_DIR configurable per environment variable ( #4727 )
3 years ago
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>
3 years ago
Glenn Jocher
8e94bf62d9
Add `user_config_dir('Ultralytics')` ( #4715 )
* Add `user_config_dir`
* Linux to .config
3 years ago
Glenn Jocher
25a7e1dae5
Update `check_yaml()` comment ( #4713 )
* Update `check_yaml()` comment
* Cleanup
3 years ago
Glenn Jocher
f984cce52a
Fix `check_suffix()` ( #4712 )
Fix a bug when `file=''`
3 years ago
Glenn Jocher
a2b3c71636
Add suffix checks ( #4711 )
* Add suffix checks
* Cleanup
* Cleanup2
* Cleanup3
3 years ago
Zhiqiang Wang
8e5f9ddbdb
Remove redundant `ComputeLoss` code ( #4701 )
3 years ago
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>
3 years ago
Glenn Jocher
548745181a
EarlyStopper updates ( #4679 )
3 years ago
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
3 years ago
Glenn Jocher
fad57c29cd
Fix `is_coco` on missing `data['val']` key ( #4642 )
3 years ago
Glenn Jocher
234e8ae6fa
Fix for `plot_evolve()` string argument ( #4639 )
3 years ago
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 .
3 years ago
Glenn Jocher
a4e8f78c5e
Fix 2 for Arial.ttf redownloads with hub inference ( #4628 )
3 years ago
Glenn Jocher
ba0f80874f
Fix for Arial.ttf redownloads with hub inference ( #4627 )
3 years ago
Glenn Jocher
50a9828679
DDP `torch.jit.trace()` `--sync-bn` fix ( #4615 )
* Remove assert
* debug0
* trace=not opt.sync
* sync to sync_bn fix
* Cleanup
3 years ago
Glenn Jocher
bb5ebc290e
Close `matplotlib` plots after opening ( #4612 )
* Close plots
* Replace fig.close() for plt.close()
3 years ago
Ayush Chaurasia
11e7c7b48d
W&B: Don't log models in evolve operation ( #4611 )
3 years ago
Glenn Jocher
3a72d4a7e3
Update `check_git_status()` warning ( #4610 )
3 years ago
Yukun Xia
35fe031461
Fix: add P2 layer 21 to yolov5-p2.yaml `Detect()` inputs ( #4608 )
Layer 21 includes the information of xsmall objects
3 years ago
Glenn Jocher
e7d1842a98
Auto-download Arial.ttf on init ( #4606 )
* Auto-download Arial.ttf on init
* Fix ROOT
3 years ago
Glenn Jocher
bb4da083d1
Created using Colaboratory
3 years ago
Glenn Jocher
dc13820c9d
TensorBoard `on_train_end()` speed improvements ( #4605 )
3 years ago
Glenn Jocher
b894e69dfc
Update mosaic plots font size ( #4596 )
3 years ago
Glenn Jocher
bfad364455
Created using Colaboratory
3 years ago
Glenn Jocher
dbbc6b5c48
Re-order `plots.py` to class-first ( #4595 )
3 years ago
Glenn Jocher
e5e5ebc799
Auto-UTF handling ( #4594 )
3 years ago
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
3 years ago
Takumi Karasawa
7b35971ba5
Fix bug in `plot_one_box` when label is `None` ( #4588 )
3 years ago
Glenn Jocher
bbfafeabdb
Add `Profile()` profiler ( #4587 )
* Add `Profile()` profiler
* CamelCase Timeout
3 years ago
Glenn Jocher
d7aa3f153d
Remove `image_weights` DDP code ( #4579 )
* Initial commit
* Update
3 years ago
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
3 years ago
Glenn Jocher
8b18b66304
ONNX opset 13 ( #4566 )
3 years ago
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
3 years ago
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.
3 years ago
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
3 years ago
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.
3 years ago
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
3 years ago
Glenn Jocher
7b1643b5b5
Add `install=True` argument to `check_requirements` ( #4512 )
* Add `install=True` argument to `check_requirements`
* Update general.py
3 years ago
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>
3 years ago