Docker COPY with checkout fetch-depth: 0 (#4674)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
45ba99973d
commit
4b6147dd6f
7 changed files with 20 additions and 16 deletions
|
|
@ -3,11 +3,13 @@
|
|||
from ultralytics.utils import LOGGER, SETTINGS, TESTS_RUNNING, colorstr
|
||||
|
||||
try:
|
||||
# WARNING: do not move import due to protobuf issue in https://github.com/ultralytics/ultralytics/pull/4674
|
||||
from torch.utils.tensorboard import SummaryWriter
|
||||
|
||||
assert not TESTS_RUNNING # do not log pytest
|
||||
assert SETTINGS['tensorboard'] is True # verify integration is enabled
|
||||
from torch.utils.tensorboard import SummaryWriter
|
||||
# TypeError for handling 'Descriptors cannot not be created directly.' protobuf errors in Windows
|
||||
except (ImportError, AssertionError, TypeError):
|
||||
# TypeError for handling 'Descriptors cannot not be created directly.' protobuf errors in Windows
|
||||
SummaryWriter = None
|
||||
|
||||
WRITER = None # TensorBoard SummaryWriter instance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue