1. 20 11月, 2021 3 次提交
  2. 19 11月, 2021 1 次提交
  3. 18 11月, 2021 1 次提交
  4. 17 11月, 2021 1 次提交
  5. 16 11月, 2021 4 次提交
  6. 15 11月, 2021 1 次提交
  7. 14 11月, 2021 1 次提交
  8. 13 11月, 2021 2 次提交
  9. 12 11月, 2021 2 次提交
  10. 11 11月, 2021 2 次提交
  11. 10 11月, 2021 5 次提交
  12. 09 11月, 2021 1 次提交
    • Glenn Jocher's avatar
      New `DetectMultiBackend()` class (#5549) · 38832611
      Glenn Jocher 提交于
      * New `DetectMultiBackend()` class
      
      * [pre-commit.ci] auto fixes from pre-commit.com hooks
      
      for more information, see https://pre-commit.ci
      
      * pb to pt fix
      
      * Cleanup
      
      * explicit apply_classifier path
      
      * Cleanup2
      
      * Cleanup3
      
      * Cleanup4
      
      * Cleanup5
      
      * Cleanup6
      
      * val.py MultiBackend inference
      
      * warmup fix
      
      * to device fix
      
      * pt fix
      
      * device fix
      
      * Val cleanup
      
      * COCO128 URL to assets
      
      * half fix
      
      * detect fix
      
      * detect fix 2
      
      * remove half from DetectMultiBackend
      
      * training half handling
      
      * training half handling 2
      
      * training half handling 3
      
      * Cleanup
      
      * Fix CI error
      
      * Add torchscript _extra_files
      
      * Add TorchScript
      
      * Add CoreML
      
      * CoreML cleanup
      
      * New `DetectMultiBackend()` class
      
      * pb to pt fix
      
      * [pre-commit.ci] auto fixes from pre-commit.com hooks
      
      for more information, see https://pre-commit.ci
      
      * Cleanup
      
      * explicit apply_classifier path
      
      * Cleanup2
      
      * Cleanup3
      
      * Cleanup4
      
      * Cleanup5
      
      * Cleanup6
      
      * val.py MultiBackend inference
      
      * warmup fix
      
      * to device fix
      
      * pt fix
      
      * device fix
      
      * Val cleanup
      
      * COCO128 URL to assets
      
      * half fix
      
      * detect fix
      
      * detect fix 2
      
      * remove half from DetectMultiBackend
      
      * training half handling
      
      * training half handling 2
      
      * training half handling 3
      
      * Cleanup
      
      * Fix CI error
      
      * Add torchscript _extra_files
      
      * Add TorchScript
      
      * Add CoreML
      
      * CoreML cleanup
      
      * revert default to pt
      
      * Add Usage examples
      
      * Cleanup val
      Co-authored-by: 's avatarpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
      38832611
  13. 08 11月, 2021 2 次提交
  14. 07 11月, 2021 2 次提交
  15. 06 11月, 2021 11 次提交
  16. 05 11月, 2021 1 次提交
    • Glenn Jocher's avatar
      Fix `increment_path()` explicit file vs dir handling (#5523) · 85350533
      Glenn Jocher 提交于
      Resolves https://github.com/ultralytics/yolov5/pull/5341#issuecomment-961774729
      
      Tests:
      ```python
      import glob
      import re
      from pathlib import Path
      
      
      def increment_path(path, exist_ok=False, sep='', mkdir=False):
          # Increment file or directory path, i.e. runs/exp --> runs/exp{sep}2, runs/exp{sep}3, ... etc.
          path = Path(path)  # os-agnostic
          if path.exists() and not exist_ok:
              path, suffix = (path.with_suffix(''), path.suffix) if path.is_file() else (path, '')
              dirs = glob.glob(f"{path}{sep}*")  # similar paths
              matches = [re.search(rf"%s{sep}(\d+)" % path.stem, d) for d in dirs]
              i = [int(m.groups()[0]) for m in matches if m]  # indices
              n = max(i) + 1 if i else 2  # increment number
              path = Path(f"{path}{sep}{n}{suffix}")  # increment path
          if mkdir:
              path.mkdir(parents=True, exist_ok=True)  # make directory
          return path
      
      
      print(increment_path('runs'))
      print(increment_path('export.py'))
      print(increment_path('abc.def.dir'))
      print(increment_path('abc.def.file'))
      ```
      85350533