1. 18 4月, 2021 1 次提交
    • Glenn Jocher's avatar
      PyTorch Hub cv2 .save() .show() bug fix (#2831) · c15e25c4
      Glenn Jocher 提交于
      * PyTorch Hub cv2 .save() .show() bug fix
      
      cv2.rectangle() was failing on non-contiguous np array inputs. This checks for contiguous arrays and applies is necessary:
      ```python
      imgs[i] = im if im.data.contiguous else np.ascontiguousarray(im)  # update
      ```
      
      * Update plots.py
      
      ```python
      assert im.data.contiguous, 'Image not contiguous. Apply np.ascontiguousarray(im) to plot_on_box() input image.'
      ```
      
      * Update hubconf.py
      
      Expand CI tests to OpenCV image.
      c15e25c4
  2. 16 4月, 2021 2 次提交
    • Glenn Jocher's avatar
      YouTube Bug Fix (#2818) · aff03be3
      Glenn Jocher 提交于
      Fix for #2810
      ```shell
      python detect.py --source 0
      ```
      introduced by YouTube Livestream Detection PR #2752
      aff03be3
    • Glenn Jocher's avatar
      ONNX Simplifier (#2815) · 1f3e482b
      Glenn Jocher 提交于
      * ONNX Simplifier
      
      Add ONNX Simplifier to ONNX export pipeline in export.py. Will auto-install onnx-simplifier if onnx is installed but onnx-simplifier is not.
      
      * Update general.py
      1f3e482b
  3. 15 4月, 2021 2 次提交
  4. 12 4月, 2021 9 次提交
  5. 11 4月, 2021 3 次提交
  6. 10 4月, 2021 1 次提交
  7. 09 4月, 2021 1 次提交
  8. 07 4月, 2021 1 次提交
    • Glenn Jocher's avatar
      Add Hub results.pandas() method (#2725) · c03d5903
      Glenn Jocher 提交于
      * Add Hub results.pandas() method
      
      New method converts results from torch tensors to pandas DataFrames with column names.
      
      This PR may partially resolve issue https://github.com/ultralytics/yolov5/issues/2703
      
      ```python
      results = model(imgs)
      
      print(results.pandas().xyxy[0])
               xmin        ymin        xmax        ymax  confidence  class    name
      0   57.068970  391.770599  241.383545  905.797852    0.868964      0  person
      1  667.661255  399.303589  810.000000  881.396667    0.851888      0  person
      2  222.878387  414.774231  343.804474  857.825073    0.838376      0  person
      3    4.205386  234.447678  803.739136  750.023376    0.658006      5     bus
      4    0.000000  550.596008   76.681190  878.669922    0.450596      0  person
      ```
      
      * Update comments 
      
      torch example input now shown resized to size=640 and also now a multiple of P6 stride 64 (see https://github.com/ultralytics/yolov5/issues/2722#issuecomment-814785930)
      
      * apply decorators
      
      * PEP8
      
      * Update common.py
      
      * pd.options.display.max_columns = 10
      
      * Update common.py
      c03d5903
  9. 06 4月, 2021 4 次提交
  10. 02 4月, 2021 4 次提交
  11. 01 4月, 2021 4 次提交
  12. 31 3月, 2021 2 次提交
  13. 30 3月, 2021 1 次提交
  14. 29 3月, 2021 5 次提交