Skip to content

Commit 116b014

Browse files
committed
reorganize imports after ruff
1 parent 7a1e96c commit 116b014

File tree

1 file changed

+7
-10
lines changed
  • happypose/pose_estimators/cosypose/cosypose/evaluation

1 file changed

+7
-10
lines changed

happypose/pose_estimators/cosypose/cosypose/evaluation/evaluation.py

+7-10
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,16 @@
1212
from happypose.pose_estimators.cosypose.cosypose.evaluation.prediction_runner import (
1313
PredictionRunner,
1414
)
15+
from happypose.pose_estimators.cosypose.cosypose.integrated.detector import Detector
1516
from happypose.pose_estimators.cosypose.cosypose.integrated.pose_estimator import (
1617
PoseEstimator,
1718
)
19+
from happypose.pose_estimators.cosypose.cosypose.training.detector_models_cfg import (
20+
check_update_config as check_update_config_detector,
21+
)
22+
from happypose.pose_estimators.cosypose.cosypose.training.detector_models_cfg import (
23+
create_model_detector,
24+
)
1825

1926
# Detection
2027
from happypose.pose_estimators.cosypose.cosypose.training.pose_models_cfg import (
@@ -42,20 +49,10 @@
4249
from happypose.toolbox.utils.distributed import get_rank, get_tmp_dir
4350
from happypose.toolbox.utils.logging import get_logger
4451

45-
# """" Temporary imports
46-
4752
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
4853

4954
logger = get_logger(__name__)
5055

51-
from happypose.pose_estimators.cosypose.cosypose.integrated.detector import Detector
52-
from happypose.pose_estimators.cosypose.cosypose.training.detector_models_cfg import (
53-
check_update_config as check_update_config_detector,
54-
)
55-
from happypose.pose_estimators.cosypose.cosypose.training.detector_models_cfg import (
56-
create_model_detector,
57-
)
58-
5956

6057
def load_detector(run_id, ds_name):
6158
run_dir = EXP_DIR / run_id

0 commit comments

Comments
 (0)