mirror of https://github.com/open-mmlab/mmyolo.git
[Update] Change the typing import method based on mmdet (#261)
* Fix import from mmdet * Fix pre-commit known_third_partypull/276/head
parent
4c1878ce8b
commit
ee122ec5bd
|
@ -5,7 +5,7 @@ from typing import List, Sequence, Union
|
|||
import torch.nn as nn
|
||||
from mmcv.cnn import ConvModule, DepthwiseSeparableConvModule
|
||||
from mmdet.models.backbones.csp_darknet import CSPLayer
|
||||
from mmdet.utils.typing import ConfigType, OptConfigType, OptMultiConfig
|
||||
from mmdet.utils import ConfigType, OptConfigType, OptMultiConfig
|
||||
|
||||
from mmyolo.registry import MODELS
|
||||
from ..layers import SPPFBottleneck
|
||||
|
|
|
@ -3,7 +3,7 @@ line_length = 79
|
|||
multi_line_output = 0
|
||||
extra_standard_library = setuptools
|
||||
known_first_party = mmyolo
|
||||
known_third_party = PIL,asynctest,cityscapesscripts,cv2,gather_models,matplotlib,mmcv,numpy,onnx,onnxruntime,pycocotools,pytest,parameterized,pytorch_sphinx_theme,requests,scipy,seaborn,six,terminaltables,torch,ts,yaml,mmengine,mmdet
|
||||
known_third_party = PIL,asynctest,cityscapesscripts,cv2,gather_models,matplotlib,mmcv,numpy,onnx,onnxruntime,pycocotools,pytest,parameterized,pytorch_sphinx_theme,requests,scipy,seaborn,six,terminaltables,torch,ts,yaml,mmengine,mmdet,mmdeploy
|
||||
no_lines_before = STDLIB,LOCALFOLDER
|
||||
default_section = THIRDPARTY
|
||||
|
||||
|
|
Loading…
Reference in New Issue