• 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
名称
最后提交
最后更新
..
aws 正在载入提交数据...
flask_rest_api 正在载入提交数据...
google_app_engine 正在载入提交数据...
wandb_logging 正在载入提交数据...
__init__.py 正在载入提交数据...
activations.py 正在载入提交数据...
autoanchor.py 正在载入提交数据...
datasets.py 正在载入提交数据...
general.py 正在载入提交数据...
google_utils.py 正在载入提交数据...
loss.py 正在载入提交数据...
metrics.py 正在载入提交数据...
plots.py 正在载入提交数据...
torch_utils.py 正在载入提交数据...