Unverified Commit 6f1a268e authored by ChaimZhu's avatar ChaimZhu Committed by GitHub
Browse files

[Enhancement] Upgrade isort in pre-commit hook (#1217)

* update isort

* update setuptools

* fix

* pre-commit run --all-files
parent 53488dad
# Copyright (c) OpenMMLab. All rights reserved.
import tempfile
from os import path as osp
import mmcv
import numpy as np
import pytest
import tempfile
import torch
from os import path as osp
from mmdet3d.datasets import NuScenesMonoDataset
......
......@@ -239,10 +239,11 @@ def test_seg_evaluate():
def test_seg_show():
import mmcv
import tempfile
from os import path as osp
import mmcv
tmp_dir = tempfile.TemporaryDirectory()
temp_dir = tmp_dir.name
root_path = './tests/data/s3dis'
......
# Copyright (c) OpenMMLab. All rights reserved.
import copy
import numpy as np
import pytest
import torch
......@@ -200,10 +201,11 @@ def test_evaluate():
def test_show():
import mmcv
import tempfile
from os import path as osp
import mmcv
from mmdet3d.core.bbox import DepthInstance3DBoxes
tmp_dir = tempfile.TemporaryDirectory()
temp_dir = tmp_dir.name
......@@ -581,10 +583,11 @@ def test_seg_evaluate():
def test_seg_show():
import mmcv
import tempfile
from os import path as osp
import mmcv
tmp_dir = tempfile.TemporaryDirectory()
temp_dir = tmp_dir.name
root_path = './tests/data/scannet'
......@@ -652,9 +655,10 @@ def test_seg_show():
def test_seg_format_results():
import mmcv
from os import path as osp
import mmcv
root_path = './tests/data/scannet'
ann_file = './tests/data/scannet/scannet_infos.pkl'
scannet_dataset = ScanNetSegDataset(
......
......@@ -210,10 +210,11 @@ def test_evaluate():
def test_show():
import mmcv
import tempfile
from os import path as osp
import mmcv
from mmdet3d.core.bbox import DepthInstance3DBoxes
tmp_dir = tempfile.TemporaryDirectory()
temp_dir = tmp_dir.name
......
# Copyright (c) OpenMMLab. All rights reserved.
import tempfile
import numpy as np
import pytest
import tempfile
import torch
from mmdet3d.datasets import WaymoDataset
......@@ -165,9 +166,10 @@ def test_evaluate():
def test_show():
import mmcv
from os import path as osp
import mmcv
from mmdet3d.core.bbox import LiDARInstance3DBoxes
# Waymo shares show function with KITTI so I just copy it here
......
# Copyright (c) OpenMMLab. All rights reserved.
from os import path as osp
import mmcv
import numpy as np
import torch
from os import path as osp
from mmdet3d.core.bbox import DepthInstance3DBoxes
from mmdet3d.datasets.pipelines import Compose
......
# Copyright (c) OpenMMLab. All rights reserved.
from os import path as osp
import mmcv
import numpy as np
import pytest
from os import path as osp
from mmdet3d.core.bbox import DepthInstance3DBoxes
from mmdet3d.core.points import DepthPoints, LiDARPoints
......
# Copyright (c) OpenMMLab. All rights reserved.
import copy
import random
from os.path import dirname, exists, join
import numpy as np
import pytest
import random
import torch
from os.path import dirname, exists, join
from mmdet3d.core.bbox import (CameraInstance3DBoxes, DepthInstance3DBoxes,
LiDARInstance3DBoxes)
......
......@@ -6,9 +6,10 @@ CommandLine:
xdoctest tests/test_models/test_forward.py zero
"""
import copy
from os.path import dirname, exists, join
import numpy as np
import torch
from os.path import dirname, exists, join
def _get_config_directory():
......
# Copyright (c) OpenMMLab. All rights reserved.
import copy
import random
from os.path import dirname, exists, join
import mmcv
import numpy as np
import pytest
import random
import torch
from os.path import dirname, exists, join
from mmdet3d.core.bbox import (Box3DMode, CameraInstance3DBoxes,
DepthInstance3DBoxes, LiDARInstance3DBoxes)
......
# Copyright (c) OpenMMLab. All rights reserved.
import copy
from os.path import dirname, exists, join
import numpy as np
import pytest
import torch
from os.path import dirname, exists, join
from mmdet3d.models.builder import build_segmentor
from mmdet.apis import set_random_seed
......
# Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
import os
import pytest
import tempfile
from os.path import dirname, exists, join
import numpy as np
import pytest
import torch
from mmcv.parallel import MMDataParallel
from os.path import dirname, exists, join
from mmdet3d.apis import (convert_SyncBN, inference_detector,
inference_mono_3d_detector,
......
# Copyright (c) OpenMMLab. All rights reserved.
import unittest
import numpy as np
import pytest
import torch
import unittest
from mmdet3d.core.bbox import (BaseInstance3DBoxes, Box3DMode,
CameraInstance3DBoxes, Coord3DMode,
......
# Copyright (c) OpenMMLab. All rights reserved.
import argparse
import json
from collections import defaultdict
import numpy as np
import seaborn as sns
from collections import defaultdict
from matplotlib import pyplot as plt
......
# Copyright (c) OpenMMLab. All rights reserved.
import argparse
import time
import torch
from mmcv import Config
from mmcv.parallel import MMDataParallel
......
# Copyright (c) OpenMMLab. All rights reserved.
import argparse
import torch
from mmcv import Config, DictAction
......
# Copyright (c) OpenMMLab. All rights reserved.
import pickle
from os import path as osp
import mmcv
import numpy as np
import pickle
from mmcv import track_iter_progress
from mmcv.ops import roi_align
from os import path as osp
from pycocotools import mask as maskUtils
from pycocotools.coco import COCO
......
# Copyright (c) OpenMMLab. All rights reserved.
import os
import mmcv
import numpy as np
import os
from tools.data_converter.s3dis_data_utils import S3DISData, S3DISSegData
from tools.data_converter.scannet_data_utils import ScanNetData, ScanNetSegData
......
# Copyright (c) OpenMMLab. All rights reserved.
from collections import OrderedDict
from pathlib import Path
import mmcv
import numpy as np
from collections import OrderedDict
from nuscenes.utils.geometry_utils import view_points
from pathlib import Path
from mmdet3d.core.bbox import box_np_ops, points_cam2img
from .kitti_data_utils import get_kitti_image_info, get_waymo_image_info
......
# Copyright (c) OpenMMLab. All rights reserved.
import mmcv
import numpy as np
from collections import OrderedDict
from concurrent import futures as futures
from os import path as osp
from pathlib import Path
import numpy as np
from skimage import io
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment