Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize imports #9464

Merged
merged 5 commits into from
Sep 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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