PyTorch Hub _verbose=False fix2 (#7550)
* PyTorch Hub `_verbose=False` fix2 * Update downloads.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update hubconf.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update * Update * Update * Update * Update * Update * Update * Update Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
1f1ec1c3e7
commit
7043872f25
5 files changed
+37
-36
No files matched your search
@@ -66,9 +66,6 @@ def check_pil_font(font=FONT, size=10):
|
||||
|
||||
|
||||
class Annotator:
|
||||
if RANK in (-1, 0):
|
||||
check_pil_font() # download TTF if necessary
|
||||
|
||||
# YOLOv5 Annotator for train/val mosaics and jpgs and detect/hub inference annotations
|
||||
def __init__(self, im, line_width=None, font_size=None, font='Arial.ttf', pil=False, example='abc'):
|
||||
assert im.data.contiguous, 'Image not contiguous. Apply np.ascontiguousarray(im) to Annotator() input images.'
|
||||
|
||||
Reference in new issue
Block a user