Skip to content

Commit

Permalink
Optimize imports (#9464)
Browse files Browse the repository at this point in the history
* Optimize imports

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Reformat

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
glenn-jocher and pre-commit-ci[bot] authored Sep 18, 2022
1 parent 8ae81a6 commit 95cef1a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions segment/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
sys.path.append(str(ROOT)) # add ROOT to PATH
ROOT = Path(os.path.relpath(ROOT, Path.cwd())) # relative

import torch.nn.functional as F

import segment.val as validate # for end-of-epoch mAP
from models.experimental import attempt_load
from models.yolo import SegmentationModel
Expand Down
1 change: 1 addition & 0 deletions utils/loggers/clearml/clearml_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
try:
import clearml
from clearml import Dataset, Task

assert hasattr(clearml, '__version__') # verify package import not local dir
except (ImportError, AssertionError):
clearml = None
Expand Down
2 changes: 1 addition & 1 deletion utils/loggers/comet/hpo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
if str(ROOT) not in sys.path:
sys.path.append(str(ROOT)) # add ROOT to PATH

from train import parse_opt, train
from train import train
from utils.callbacks import Callbacks
from utils.general import increment_path
from utils.torch_utils import select_device
Expand Down

0 comments on commit 95cef1a

Please sign in to comment.