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

Remove unused imports in python #4378

Merged
merged 1 commit into from Jan 4, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions python/examples/fasterrcnn.py
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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