Skip to content

Commit

Permalink
Remove unused imports in python (Tencent#4378)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianjiaogit authored Jan 4, 2023
1 parent 10e9d91 commit b07c5fc
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 42 deletions.
2 changes: 0 additions & 2 deletions python/examples/fasterrcnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
2 changes: 0 additions & 2 deletions python/examples/mobilenetssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
2 changes: 0 additions & 2 deletions python/examples/mobilenetv2ssdlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
2 changes: 0 additions & 2 deletions python/examples/mobilenetv3ssdlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
4 changes: 0 additions & 4 deletions python/examples/model_zoo.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model_list

if __name__ == "__main__":
Expand Down
3 changes: 0 additions & 3 deletions python/examples/nanodet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

import sys
import cv2
import time
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
1 change: 0 additions & 1 deletion python/examples/peleenetssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model


Expand Down
2 changes: 0 additions & 2 deletions python/examples/retinaface.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_faceobjects

Expand Down
2 changes: 0 additions & 2 deletions python/examples/rfcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
2 changes: 0 additions & 2 deletions python/examples/shufflenetv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import print_topk

Expand Down
2 changes: 0 additions & 2 deletions python/examples/simplepose.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_pose

Expand Down
2 changes: 0 additions & 2 deletions python/examples/squeezenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import print_topk

Expand Down
2 changes: 0 additions & 2 deletions python/examples/squeezenetssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
1 change: 0 additions & 1 deletion python/examples/yolact.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
2 changes: 0 additions & 2 deletions python/examples/yolov2.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
2 changes: 0 additions & 2 deletions python/examples/yolov3.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
2 changes: 0 additions & 2 deletions python/examples/yolov4.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import sys
import cv2
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
3 changes: 0 additions & 3 deletions python/examples/yolov5.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@

import sys
import cv2
import time
import numpy as np
import ncnn
from ncnn.model_zoo import get_model
from ncnn.utils import draw_detection_objects

Expand Down
2 changes: 0 additions & 2 deletions python/ncnn/model_zoo/nanodet.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,11 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

import time
import numpy as np
import ncnn
from .model_store import get_model_file
from ..utils.objects import Detect_Object
from ..utils.functional import *
import cv2


class NanoDet:
Expand Down
1 change: 0 additions & 1 deletion python/ncnn/model_zoo/yolact.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import cv2
import ncnn
from .model_store import get_model_file
from ..utils.objects import Detect_Object
from ..utils.functional import sigmoid, nms


Expand Down
1 change: 0 additions & 1 deletion python/ncnn/utils/visual.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import numpy as np
import cv2
from .objects import Detect_Object, Face_Object


def draw_detection_objects(image, class_names, objects, min_prob=0.0):
Expand Down

0 comments on commit b07c5fc

Please sign in to comment.