Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update to v5 2 #5

Merged
merged 765 commits into from
Sep 22, 2021
Merged

Update to v5 2 #5

merged 765 commits into from
Sep 22, 2021
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Jun 11, 2021

  1. Configuration menu
    Copy the full SHA
    e8c5237 View commit details
    Browse the repository at this point in the history
  2. train.py GPU memory fix (ultralytics#3590)

    * train.py GPU memory fix
    
    * ema
    
    * cuda
    
    * cuda
    
    * zeros input
    
    * to device
    
    * batch index 0
    glenn-jocher committed Jun 11, 2021
    Configuration menu
    Copy the full SHA
    4984cf5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    53d4fc2 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2021

  1. Update dataset_stats() (ultralytics#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)
    ```
    glenn-jocher committed Jun 12, 2021
    Configuration menu
    Copy the full SHA
    7a565f1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    88b1945 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2021

  1. Simplify README.md (ultralytics#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>
    kalenmike and glenn-jocher committed Jun 13, 2021
    Configuration menu
    Copy the full SHA
    3133607 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2021

  1. merge develop

    glenn-jocher committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    f8adee1 View commit details
    Browse the repository at this point in the history
  2. Update datasets.py (ultralytics#3591)

    * 'changes-in_dataset'
    
    * Update datasets.py
    
    Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
    masoodazhar and glenn-jocher committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    6062319 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    239a11c View commit details
    Browse the repository at this point in the history
  4. Suppress wandb images size mismatch warning (ultralytics#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>
    AyushExel and glenn-jocher committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    daab682 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2021

  1. Configuration menu
    Copy the full SHA
    4c5d9bf View commit details
    Browse the repository at this point in the history
  2. Update check_file() (ultralytics#3622)

    * Update `check_file()`
    
    * Update datasets.py
    glenn-jocher committed Jun 15, 2021
    Configuration menu
    Copy the full SHA
    7d3686a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    30e4c4f View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2021

  1. Configuration menu
    Copy the full SHA
    de56813 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    65f81bf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6c0e1d9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bb79e13 View commit details
    Browse the repository at this point in the history
  5. Assert non-premature end of JPEG images (ultralytics#3638)

    * premature end of JPEG images
    
    * PEP8 reformat
    
    Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
    xiaowk5516 and glenn-jocher committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    d808855 View commit details
    Browse the repository at this point in the history
  6. Update CONTRIBUTING.md (ultralytics#3645)

    * Update CONTRIBUTING.md
    
    * Update CONTRIBUTING.md
    
    * Update CONTRIBUTING.md
    
    * Update CONTRIBUTING.md
    glenn-jocher committed Jun 16, 2021
    Configuration menu
    Copy the full SHA
    3ce0db8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6187edc View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fa29125 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2021

  1. Update README.md (ultralytics#3650)

    Be more user-friendly to new users
    SpongeBab committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    df7706d View commit details
    Browse the repository at this point in the history
  2. Update dataset_stats() to list of dicts (ultralytics#3657)

    * Update `dataset_stats()` to list of dicts
    
    @kalenmike
    
    * Update datasets.py
    glenn-jocher committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    9b6dba6 View commit details
    Browse the repository at this point in the history
  3. Remove /weights directory (ultralytics#3659)

    * Remove `/weights` directory
    
    * cleanup
    glenn-jocher committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    2754ada View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ac34834 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6d6e2ca View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fa201f9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    045d5d8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    2296f15 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2021

  1. Cache v0.3: improved corrupt image/label reporting (ultralytics#3676)

    * Cache v0.3: improved corrupt image/label reporting
    
    Fix for ultralytics#3656 (comment)
    
    * cleanup
    glenn-jocher committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    f527704 View commit details
    Browse the repository at this point in the history
  2. EMA changes for pre-model's batch_size (ultralytics#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>
    ZouJiu1 and glenn-jocher committed Jun 18, 2021
    Configuration menu
    Copy the full SHA
    2729761 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    463628a View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2021

  1. Update cache check (ultralytics#3691)

    Swapped order of operations for faster first per ultralytics@f527704#r52362419
    glenn-jocher committed Jun 19, 2021
    Configuration menu
    Copy the full SHA
    814806c View commit details
    Browse the repository at this point in the history
  2. Skip HSV augmentation when hyperparameters are [0, 0, 0] (ultralytics…

    …#3686)
    
    * Create shortcircuit in augment_hsv when hyperparameter are zero
    
    * implement faster opt-in
    
    Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
    thanhminhmr and glenn-jocher committed Jun 19, 2021
    Configuration menu
    Copy the full SHA
    bf209f6 View commit details
    Browse the repository at this point in the history
  3. Slightly modify CLI execution (ultralytics#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>
    lb-desupervised and Lewis Belcher committed Jun 19, 2021
    Configuration menu
    Copy the full SHA
    bfb2276 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5bab9a2 View commit details
    Browse the repository at this point in the history
  5. Update DDP for torch.distributed.run with gloo backend (ultralyti…

    …cs#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
    glenn-jocher committed Jun 19, 2021
    Configuration menu
    Copy the full SHA
    fad27c0 View commit details
    Browse the repository at this point in the history
  6. Eliminate total_batch_size variable (ultralytics#3697)

    * Eliminate `total_batch_size` variable
    
    * cleanup
    
    * Update train.py
    glenn-jocher committed Jun 19, 2021
    Configuration menu
    Copy the full SHA
    b3e2f4e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c1af67d View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2021

  1. Add train.run() method (ultralytics#3700)

    * Update train.py explicit arguments
    
    * Update train.py
    
    * Add run method
    glenn-jocher committed Jun 20, 2021
    Configuration menu
    Copy the full SHA
    fbf41e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e8810a5 View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2021

  1. [x]W&B: Don't resume transfer learning runs (ultralytics#3604)

    * Allow config cahnge
    
    * Allow val change in wandb config
    
    * Don't resume transfer learning runs
    
    * Add entity in log dataset
    AyushExel committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    75c0ff4 View commit details
    Browse the repository at this point in the history
  2. Update 4 main ops for paths and .run() (ultralytics#3715)

    * Add yolov5/ to path
    
    * rename functions to run()
    
    * cleanup
    
    * rename fix
    
    * CI fix
    
    * cleanup find models/export.py
    glenn-jocher committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    1f69d12 View commit details
    Browse the repository at this point in the history
  3. Fix img2label_paths() order (ultralytics#3720)

    * Fix `img2label_paths()` order
    
    * fix, 1
    glenn-jocher committed Jun 21, 2021
    Configuration menu
    Copy the full SHA
    b83e1a4 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2021

  1. Fix typo (ultralytics#3729)

    fcakyon committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    0e2d0d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9ac7d38 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dfc5a52 View commit details
    Browse the repository at this point in the history
  4. Update readme.

    robinmaillot committed Jun 22, 2021
    Configuration menu
    Copy the full SHA
    3182e4b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6306091 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2021

  1. Configuration menu
    Copy the full SHA
    fdc2239 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ae4261c View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2021

  1. Edit comment (ultralytics#3759)

    edit comment
    developer0hye committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    417a2f4 View commit details
    Browse the repository at this point in the history
  2. Add optional dataset.yaml path attribute (ultralytics#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
    glenn-jocher committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    f79d747 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    03281f8 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2021

  1. Add xyxy2xywhn() (ultralytics#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>
    developer0hye and glenn-jocher committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    3749573 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f2d97eb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    09246a5 View commit details
    Browse the repository at this point in the history
  4. W&B: Update Tables API and comply with new dataset_check (ultralytics…

    …#3772)
    
    * Update tables API and windows path fix
    
    * update dataset check
    AyushExel committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    ffb6e11 View commit details
    Browse the repository at this point in the history
  5. NGA xView 2018 Dataset Auto-Download (ultralytics#3775)

    * update clip_coords for numpy
    
    * uncomment
    
    * cleanup
    
    * Add autosplits
    
    * fix
    
    * cleanup
    glenn-jocher committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    f899417 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2021

  1. Configuration menu
    Copy the full SHA
    9dc5d35 View commit details
    Browse the repository at this point in the history
  2. Objectness IoU Sort (ultralytics#3610)

    Co-authored-by: U-LAPTOP-5N89P8V7\banhu <ban.huang@foxmail.com>
    glenn-jocher and XHBrain committed Jun 26, 2021
    Configuration menu
    Copy the full SHA
    157aa2f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8035b61 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bd581b3 View commit details
    Browse the repository at this point in the history
  5. Fix datasets for aws and get_coco.sh (ultralytics#3788)

    * merge master
    
    * Update get_coco.sh
    glenn-jocher committed Jun 26, 2021
    Configuration menu
    Copy the full SHA
    8e7f285 View commit details
    Browse the repository at this point in the history
  6. Update seeds for single-GPU reproducibility (ultralytics#3789)

    For seed=0 on single-GPU.
    glenn-jocher committed Jun 26, 2021
    Configuration menu
    Copy the full SHA
    92d49fd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    07166ba View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    96c87f1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5e6886c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    47543f9 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2021

  1. Fix competition link (ultralytics#3799)

    * link to the competition repaired
    
    * Update README.md
    
    Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
    batrlatom and glenn-jocher committed Jun 27, 2021
    Configuration menu
    Copy the full SHA
    5e976a2 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2021

  1. Fix warmup accumulate (ultralytics#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>
    yellowdolphin and glenn-jocher committed Jun 28, 2021
    Configuration menu
    Copy the full SHA
    3974d72 View commit details
    Browse the repository at this point in the history
  2. Add feature map visualization (ultralytics#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>
    Zigars and glenn-jocher committed Jun 28, 2021
    Configuration menu
    Copy the full SHA
    20d45aa View commit details
    Browse the repository at this point in the history
  3. Update feature_visualization() (ultralytics#3807)

    * Update `feature_visualization()`
    
    Only plot for data with height, width > 1
    
    * cleanup
    
    * Cleanup
    glenn-jocher committed Jun 28, 2021
    Configuration menu
    Copy the full SHA
    02719dd View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2021

  1. Configuration menu
    Copy the full SHA
    3213d87 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5ea771d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    57c5d02 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    00fcfb5 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0e5b5cb View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2021

  1. Fix LoadStreams() dataloader frame skip issue (ultralytics#3833)

    * Update datasets.py to read every 4th frame of streams
    
    * Update datasets.py
    
    Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
    feras-oughali and glenn-jocher committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    7d6af69 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    25d1f29 View commit details
    Browse the repository at this point in the history
  3. Copy-Paste augmentation for YOLOv5 (ultralytics#3845)

    * Copy-paste augmentation initial commit
    
    * if any segments
    
    * Add obscuration rejection
    
    * Add copy_paste hyperparameter
    
    * Update comments
    glenn-jocher committed Jun 30, 2021
    Configuration menu
    Copy the full SHA
    c6c88dc View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Configuration menu
    Copy the full SHA
    b686338 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4717a3b View commit details
    Browse the repository at this point in the history
  3. Add EXIF rotation to YOLOv5 Hub inference (ultralytics#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>
    vaaliferov and glenn-jocher committed Jul 2, 2021
    Configuration menu
    Copy the full SHA
    831773f View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2021

  1. --evolve 300 generations CLI argument (ultralytics#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>
    3 people committed Jul 4, 2021
    Configuration menu
    Copy the full SHA
    d3e9d69 View commit details
    Browse the repository at this point in the history
  2. Add multi-stream saving feature (ultralytics#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>
    ketan-b and glenn-jocher committed Jul 4, 2021
    Configuration menu
    Copy the full SHA
    9d86b54 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bd88e7f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    81b3182 View commit details
    Browse the repository at this point in the history
  5. Create utils/augmentations.py (ultralytics#3877)

    * Create `utils/augmentations.py`
    
    * cleanup
    glenn-jocher committed Jul 4, 2021
    Configuration menu
    Copy the full SHA
    9e8fb9f View commit details
    Browse the repository at this point in the history
  6. Improved BGR2RGB speeds (ultralytics#3880)

    * Update BGR2RGB ops
    
    * speed improvements
    
    * cleanup
    glenn-jocher committed Jul 4, 2021
    Configuration menu
    Copy the full SHA
    3c3f8fb View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2021

  1. Evolution commented hyp['anchors'] fix (ultralytics#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'
    ```
    glenn-jocher committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    8930e22 View commit details
    Browse the repository at this point in the history
  2. Hub models map_location=device (ultralytics#3894)

    * Hub models `map_location=device`
    
    * cleanup
    glenn-jocher committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    6a3ee7c View commit details
    Browse the repository at this point in the history
  3. YOLOv5 + Albumentations integration (ultralytics#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
    glenn-jocher committed Jul 5, 2021
    Configuration menu
    Copy the full SHA
    33202b7 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2021

  1. Save PyTorch Hub models to /root/hub/cache/dir (ultralytics#3904)

    * Create hubconf.py
    
    * Add save_dir variable
    
    Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
    johnohagan and glenn-jocher committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    61047a2 View commit details
    Browse the repository at this point in the history
  2. Feature visualization update (ultralytics#3920)

    * Feature visualization update
    
    * Save to jpg (faster)
    
    * Save to png
    glenn-jocher committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    87b094b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    411842e View commit details
    Browse the repository at this point in the history
  4. Update setattr() default for Hub PIL images (ultralytics#3923)

    Fix inference from PIL source.
    jmiranda-laplateforme committed Jul 7, 2021
    Configuration menu
    Copy the full SHA
    588094e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    850970e View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2021

  1. Update dataset_stats() for zipped datasets (ultralytics#3926)

    * Update `dataset_stats()` for zipped datasets
    
    @kalenmike
    
    * cleanup
    glenn-jocher committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    8c6f9e1 View commit details
    Browse the repository at this point in the history
  2. Fix inconsistent NMS IoU value for COCO (ultralytics#3934)

    Evaluation of 'best' and 'last' models will use the same params as the evaluation during the training phase. 
    This PR fixes ultralytics#3907
    eldarkurtic committed Jul 8, 2021
    Configuration menu
    Copy the full SHA
    e7888af View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dabad57 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2021

  1. Configuration menu
    Copy the full SHA
    248504c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a26e7de View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2021

  1. Configuration menu
    Copy the full SHA
    443af8b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    80299a5 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2021

  1. Configuration menu
    Copy the full SHA
    8298ce5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    90e60b4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a544d59 View commit details
    Browse the repository at this point in the history
  4. Ensemble() visualize fix (ultralytics#3973)

    * fix visualize error
    
    * Revert "fix visualize error"
    
    * add visualise profile
    seven320 committed Jul 11, 2021
    Configuration menu
    Copy the full SHA
    647223a View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2021

  1. Configuration menu
    Copy the full SHA
    41fdf9f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b3dabdc View commit details
    Browse the repository at this point in the history
  3. Alert (no detections) (ultralytics#3984)

    * `Detections()` class `print()` overload
    
    * Update common.py
    glenn-jocher committed Jul 12, 2021
    Configuration menu
    Copy the full SHA
    d204a61 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2021

  1. Configuration menu
    Copy the full SHA
    8ee9fd1 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2021

  1. Configuration menu
    Copy the full SHA
    720aaa6 View commit details
    Browse the repository at this point in the history
  2. W&B sweeps support (ultralytics#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>
    AyushExel and glenn-jocher committed Jul 14, 2021
    Configuration menu
    Copy the full SHA
    62409ee View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2021

  1. Update greetings.yml (ultralytics#4024)

    * Update greetings.yml
    
    * Update greetings.yml
    glenn-jocher committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    b7e985e View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2021

  1. Add --sync-bn known issue (ultralytics#4032)

    * Add `--sync-bn` known issue
    
    * Update train.py
    glenn-jocher committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    951922c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0067d95 View commit details
    Browse the repository at this point in the history
  3. Update README.md (ultralytics#4041)

    * Update README.md
    
    * Update README.md
    
    * Update README.md
    glenn-jocher committed Jul 17, 2021
    Configuration menu
    Copy the full SHA
    dd62e2d View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2021

  1. AutoShape PosixPath support (ultralytics#4047)

    * AutoShape PosixPath support
    
    Usage example:
    
    ````python
    from pathlib import Path
    
    model = ...
    file = Path('data/images/zidane.jpg')
    
    results = model(file)
    ```
    
    * Update common.py
    glenn-jocher committed Jul 18, 2021
    Configuration menu
    Copy the full SHA
    9dd33fd View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2021

  1. val.py refactor (ultralytics#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 (ultralytics#4061)
    
    Co-authored-by: Ayush Chaurasia <ayush.chaurarsia@gmail.com>
    glenn-jocher and AyushExel committed Jul 19, 2021
    Configuration menu
    Copy the full SHA
    f7d8562 View commit details
    Browse the repository at this point in the history
  2. Module super().__init__() (ultralytics#4065)

    * Module `super().__init__()`
    
    * remove NMS
    glenn-jocher committed Jul 19, 2021
    Configuration menu
    Copy the full SHA
    b1be685 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c8a98cb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ee76a68 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7fdcc77 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0cc7c58 View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2021

  1. Refactor export.py (ultralytics#4080)

    * Refactor `export.py`
    
    * cleanup
    
    * Update check_requirements()
    
    * Update export.py
    glenn-jocher committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    442a7ab View commit details
    Browse the repository at this point in the history
  2. Addition refactor export.py (ultralytics#4089)

    * Addition refactor `export.py`
    
    * Update export.py
    glenn-jocher committed Jul 20, 2021
    Configuration menu
    Copy the full SHA
    3bef77f View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2021

  1. Configuration menu
    Copy the full SHA
    2c073cd View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2021

  1. Configuration menu
    Copy the full SHA
    4bad914 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2021

  1. Configuration menu
    Copy the full SHA
    4495e00 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2021

  1. Configuration menu
    Copy the full SHA
    39ef6c7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2e53844 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    264be1a View commit details
    Browse the repository at this point in the history
  4. Update train.py (ultralytics#4136)

    * Refactor train.py
    
    * Update imports
    
    * Update imports
    
    * Update optimizer
    
    * cleanup
    glenn-jocher committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    63dd65e View commit details
    Browse the repository at this point in the history
  5. Refactor train.py and val.py loggers (ultralytics#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
    glenn-jocher committed Jul 24, 2021
    Configuration menu
    Copy the full SHA
    efe60b5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d17b45e View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2021

  1. Configuration menu
    Copy the full SHA
    6e4358f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3764277 View commit details
    Browse the repository at this point in the history
  3. New CSV Logger (ultralytics#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
    glenn-jocher committed Jul 25, 2021
    Configuration menu
    Copy the full SHA
    96e36a7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8acb573 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2021

  1. Configuration menu
    Copy the full SHA
    f8e1148 View commit details
    Browse the repository at this point in the history
  2. Update script headers (ultralytics#4163)

    * Update download script headers
    
    * cleanup
    
    * bug fix attempt
    
    * bug fix attempt2
    
    * bug fix attempt3
    
    * cleanup
    glenn-jocher committed Jul 26, 2021
    Configuration menu
    Copy the full SHA
    0ad6301 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2021

  1. Configuration menu
    Copy the full SHA
    63a1971 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3fef117 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2021

  1. Train from --data path/to/dataset.zip feature (ultralytics#4185)

    * Train from `--data path/to/dataset.zip` feature
    
    * Update dataset_stats()
    
    * cleanup
    
    * cleanup2
    glenn-jocher committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    5d66e48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a8d3d5e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1f31b7c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2683b18 View commit details
    Browse the repository at this point in the history
  5. W&B: Restructure code to support the new dataset_check() feature (ult…

    …ralytics#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>
    AyushExel and glenn-jocher committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    e88e8f7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e016b15 View commit details
    Browse the repository at this point in the history
  7. W&B: More improvements and refactoring (ultralytics#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>
    AyushExel and glenn-jocher committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    750465e View commit details
    Browse the repository at this point in the history
  8. PyCharm reformat (ultralytics#4209)

    * PyCharm reformat
    
    * YAML reformat
    
    * Markdown reformat
    glenn-jocher committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    b60b62e View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2021

  1. Configuration menu
    Copy the full SHA
    7820614 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c2c958c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    18f6ba7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    083c13d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1a10b0e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8d3c3ef View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2021

  1. Configuration menu
    Copy the full SHA
    9468657 View commit details
    Browse the repository at this point in the history
  2. Add python train.py --freeze N argument (ultralytics#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>
    IneovaAI and glenn-jocher committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    bceb57b View commit details
    Browse the repository at this point in the history
  3. Update profile() for CUDA Memory allocation (ultralytics#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
    glenn-jocher committed Jul 30, 2021
    Configuration menu
    Copy the full SHA
    d8f1883 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2021

  1. Add train.py and val.py callbacks (ultralytics#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>
    kalenmike and glenn-jocher committed Jul 31, 2021
    Configuration menu
    Copy the full SHA
    b74929c View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2021

  1. W&B: suppress warnings (ultralytics#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>
    AyushExel and glenn-jocher committed Aug 1, 2021
    Configuration menu
    Copy the full SHA
    cd540d8 View commit details
    Browse the repository at this point in the history
  2. Update AP calculation (ultralytics#4260)

    * Update AP calculation
    
    * Cleanup
    
    * Remove original
    glenn-jocher committed Aug 1, 2021
    Configuration menu
    Copy the full SHA
    53bfcbe View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2021

  1. Configuration menu
    Copy the full SHA
    306fc01 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9c6732f View commit details
    Browse the repository at this point in the history
  3. Add DWConvClass() (ultralytics#4274)

    * Add `DWConvClass()`
    
    * Cleanup
    
    * Cleanup2
    glenn-jocher committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    587c4b4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    388016e View commit details
    Browse the repository at this point in the history
  5. W&B: Fix sweep bug (ultralytics#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>
    AyushExel and glenn-jocher committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    621caea View commit details
    Browse the repository at this point in the history
  6. Feature python train.py --cache disk (ultralytics#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>
    junjihashimoto and glenn-jocher committed Aug 2, 2021
    Configuration menu
    Copy the full SHA
    2d99063 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2021

  1. Fixed logging level in distributed mode (ultralytics#4284)

    Co-authored-by: fkwong <huangfuqiang@transai.cn>
    imyhxy and fkwong committed Aug 3, 2021
    Configuration menu
    Copy the full SHA
    771ac6c View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2021

  1. Configuration menu
    Copy the full SHA
    4103ce9 View commit details
    Browse the repository at this point in the history
  2. Evolve in CSV format (ultralytics#4307)

    * Update evolution to CSV format
    
    * Update
    
    * Update
    
    * Update
    
    * Update
    
    * Update
    
    * reset args
    
    * reset args
    
    * reset args
    
    * plot_results() fix
    
    * Cleanup
    
    * Cleanup2
    glenn-jocher committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    e78aeac View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    86c7150 View commit details
    Browse the repository at this point in the history
  4. Update README.md (ultralytics#4309)

    remove unnecessary "`"
    Justsubh01 committed Aug 4, 2021
    Configuration menu
    Copy the full SHA
    f409d8e View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2021

  1. Simpler code for DWConvClass (ultralytics#4310)

    * more simpler code for DWConvClass
    
    more simpler code for DWConvClass
    
    * remove DWConv function
    
    * Replace DWConvClass with DWConv
    developer0hye committed Aug 5, 2021
    Configuration menu
    Copy the full SHA
    e96c74b View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2021

  1. int(mlc) (ultralytics#4385)

    glenn-jocher committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    ce7deec View commit details
    Browse the repository at this point in the history
  2. Fix module count in parse_model (ultralytics#4379)

    Co-authored-by: yangyuantao <yangyuantao@transai.cn>
    orangeccc and yangyuantao committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    e7fc274 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b27f69f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    11e4aeb View commit details
    Browse the repository at this point in the history
  5. W&B: Add advanced features tutorial (ultralytics#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>
    AyushExel and glenn-jocher committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    75d323d View commit details
    Browse the repository at this point in the history
  6. W&B: Fix for 4360 (ultralytics#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>
    AyushExel and glenn-jocher committed Aug 11, 2021
    Configuration menu
    Copy the full SHA
    a4e4553 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3e7c59a View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2021

  1. Configuration menu
    Copy the full SHA
    57c342a View commit details
    Browse the repository at this point in the history
  2. No cache option for reading datasets (ultralytics#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>
    ahmadmustafaanis and glenn-jocher committed Aug 13, 2021
    Configuration menu
    Copy the full SHA
    d9f23ed View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2021

  1. Configuration menu
    Copy the full SHA
    e086347 View commit details
    Browse the repository at this point in the history
  2. Add yolov5s-ghost.yaml (ultralytics#4412)

    * Add yolov5s-ghost.yaml
    
    * Finish C3Ghost
    
    * Add C3Ghost to list
    
    * Add C3Ghost to number of repeats if statement
    
    * Fixes
    
    * Cleanup
    glenn-jocher committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    4e8c81a View commit details
    Browse the repository at this point in the history
  3. Remove encoding='ascii' (ultralytics#4413)

    * Remove `encoding='ascii'`
    
    * Reinstate `encoding='ascii'` in emojis()
    glenn-jocher committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    63e09fd View commit details
    Browse the repository at this point in the history
  4. Merge PIL and OpenCV in plot_one_box(use_pil=False) (ultralytics#4416)

    * Merge PIL and OpenCV box plotting functions
    
    * Add ASCII check to plot_one_box
    
    * Cleanup
    
    * Cleanup2
    glenn-jocher committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    2da4e7a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bb0aed1 View commit details
    Browse the repository at this point in the history
  6. Standardize headers and docstrings (ultralytics#4417)

    * Implement new headers
    
    * Reformat 1
    
    * Reformat 2
    
    * Reformat 3 - math
    
    * Reformat 4 - yaml
    glenn-jocher committed Aug 14, 2021
    Configuration menu
    Copy the full SHA
    24bea5e View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2021

  1. Add SPPF() layer (ultralytics#4420)

    * Add `SPPF()` layer
    
    * Cleanup
    
    * Add credit
    glenn-jocher committed Aug 15, 2021
    Configuration menu
    Copy the full SHA
    01cdb76 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e65052 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    19d03a9 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2021

  1. Configuration menu
    Copy the full SHA
    dbc06ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f3e3f76 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2021

  1. Add TensorFlow and TFLite export (ultralytics#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>
    zldrobit and glenn-jocher committed Aug 17, 2021
    Configuration menu
    Copy the full SHA
    808bcad View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6dd7dd8 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2021

  1. Fix missing labels after albumentations (ultralytics#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>
    3 people committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    1d65e81 View commit details
    Browse the repository at this point in the history
  2. check_requirements(('coremltools',)) (ultralytics#4478)

    * `check_requirements(('coremltools',))`
    
    * Update ci-testing.yml
    
    * Update ci-testing.yml
    glenn-jocher committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    d1182c4 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2021

  1. W&B: Refactor the wandb_utils.py file (ultralytics#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>
    AyushExel and glenn-jocher committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    7316b78 View commit details
    Browse the repository at this point in the history
  2. Add install=True argument to check_requirements (ultralytics#4512)

    * Add `install=True` argument to `check_requirements`
    
    * Update general.py
    glenn-jocher committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    7b1643b View commit details
    Browse the repository at this point in the history
  3. Automatic TFLite uint8 determination (ultralytics#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 ultralytics#1127 (comment)
    
    * Cleanup
    glenn-jocher committed Aug 23, 2021
    Configuration menu
    Copy the full SHA
    79af114 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2021

  1. Fix for python models/yolo.py --profile (ultralytics#4541)

    Profiling fix copies input to Detect layer to circumvent inplace changes to the feature maps.
    glenn-jocher committed Aug 25, 2021
    Configuration menu
    Copy the full SHA
    2da6444 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2021

  1. Auto-fix corrupt JPEGs (ultralytics#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
    glenn-jocher committed Aug 26, 2021
    Configuration menu
    Copy the full SHA
    11f85e7 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2021

  1. Fix for corrupt JPEGs auto-fix PR (ultralytics#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.
    glenn-jocher committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    e899d6e View commit details
    Browse the repository at this point in the history
  2. Fix for AP calculation limits 0.0 - 1.0 (ultralytics#4563)

    This PR brings alignment in AP computation practices with Detectron2 and MMDetection. 
    
    Problem first noted by @yusiyoh in ultralytics#4546
    glenn-jocher committed Aug 27, 2021
    Configuration menu
    Copy the full SHA
    8ac96b7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8b18b66 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2021

  1. Add EarlyStopping feature (ultralytics#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
    glenn-jocher committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    93cc015 View commit details
    Browse the repository at this point in the history
  2. Remove image_weights DDP code (ultralytics#4579)

    * Initial commit
    
    * Update
    glenn-jocher committed Aug 28, 2021
    Configuration menu
    Copy the full SHA
    d7aa3f1 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2021

  1. Add Profile() profiler (ultralytics#4587)

    * Add `Profile()` profiler
    
    * CamelCase Timeout
    glenn-jocher committed Aug 29, 2021
    Configuration menu
    Copy the full SHA
    bbfafea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b35971 View commit details
    Browse the repository at this point in the history
  3. Create Annotator() class (ultralytics#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
    glenn-jocher committed Aug 29, 2021
    Configuration menu
    Copy the full SHA
    de44376 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e5e5ebc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dbbc6b5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bfad364 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b894e69 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2021

  1. Configuration menu
    Copy the full SHA
    dc13820 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb4da08 View commit details
    Browse the repository at this point in the history
  3. Auto-download Arial.ttf on init (ultralytics#4606)

    * Auto-download Arial.ttf on init
    
    * Fix ROOT
    glenn-jocher committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    e7d1842 View commit details
    Browse the repository at this point in the history
  4. Fix: add P2 layer 21 to yolov5-p2.yaml Detect() inputs (ultralytics…

    …#4608)
    
    Layer 21 includes the information of xsmall objects
    YukunXia committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    35fe031 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3a72d4a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    11e7c7b View commit details
    Browse the repository at this point in the history
  7. Close matplotlib plots after opening (ultralytics#4612)

    * Close plots
    
    * Replace fig.close() for plt.close()
    glenn-jocher committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    bb5ebc2 View commit details
    Browse the repository at this point in the history
  8. DDP torch.jit.trace() --sync-bn fix (ultralytics#4615)

    * Remove assert
    
    * debug0
    
    * trace=not opt.sync
    
    * sync to sync_bn fix
    
    * Cleanup
    glenn-jocher committed Aug 30, 2021
    Configuration menu
    Copy the full SHA
    50a9828 View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2021

  1. Configuration menu
    Copy the full SHA
    ba0f808 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a4e8f78 View commit details
    Browse the repository at this point in the history
  3. Fix 3 for Arial.ttf redownloads with hub inference (ultralytics#4629)

    Fix 3 for Arial.ttf redownloads with hub inference, follow-on to ultralytics#4628.
    glenn-jocher committed Aug 31, 2021
    Configuration menu
    Copy the full SHA
    de534e9 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2021

  1. Checkpoint code.

    robinmaillot committed Sep 1, 2021
    Configuration menu
    Copy the full SHA
    fda85a5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    234e8ae View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fad57c2 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2021

  1. Fix workers to 1 for windows and fix issue with image_size not being …

    …used correctly during training
    robinmaillot committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    c610bc4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    730970b View commit details
    Browse the repository at this point in the history
  3. Merge branch 'modify_wandb' into update-to-v5-2

    # Conflicts:
    #	README.md
    robinmaillot committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    c0ee52e View commit details
    Browse the repository at this point in the history
  4. Remove mojo files.

    robinmaillot committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    aa2432f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b20b128 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d16ac8f View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4e0abe6 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    87fc7ff View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2021

  1. Remove extra prints.

    robinmaillot committed Sep 3, 2021
    Configuration menu
    Copy the full SHA
    0195cbc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c379794 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4e5279e View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. Configuration menu
    Copy the full SHA
    8b16998 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2021

  1. Configuration menu
    Copy the full SHA
    c16dad8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a114edc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1b9d689 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    066de6e View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2021

  1. Configuration menu
    Copy the full SHA
    2c35fc5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de2e75c View commit details
    Browse the repository at this point in the history