src detectors unused imports
This commit is contained in:
@@ -9,7 +9,7 @@ import torch
|
||||
from mediapipe.tasks import python
|
||||
from mediapipe.tasks.python import vision
|
||||
from mediapipe.tasks.python.core.base_options import BaseOptions
|
||||
from typing import List, Tuple
|
||||
from typing import List
|
||||
# Import new types
|
||||
from ..types import FaceDetectionResult, BoundingBox, FaceKeypoint
|
||||
from ...utils.timing import TimestampProvider # Import from utils
|
||||
|
||||
@@ -6,7 +6,7 @@ from mediapipe.tasks.python import vision
|
||||
from mediapipe.tasks.python.core.base_options import BaseOptions
|
||||
from typing import List, Tuple, Optional, Dict
|
||||
# Import new types
|
||||
from ..types import LandmarkPoint, FaceLandmarksResult
|
||||
from ..types import LandmarkPoint
|
||||
from ...utils.timing import TimestampProvider # Import TimestampProvider
|
||||
|
||||
class FaceLandmarkDetector:
|
||||
|
||||
@@ -3,7 +3,6 @@ import numpy as np
|
||||
import torch
|
||||
from mediapipe.tasks import python
|
||||
from mediapipe.tasks.python import vision
|
||||
from typing import List, Optional
|
||||
from ...utils.timing import TimestampProvider
|
||||
|
||||
class FaceStylizer:
|
||||
|
||||
@@ -4,7 +4,7 @@ import torch
|
||||
from mediapipe.tasks import python
|
||||
from mediapipe.tasks.python import vision
|
||||
from mediapipe.tasks.python.core.base_options import BaseOptions
|
||||
from typing import List, Tuple, Optional
|
||||
from typing import List
|
||||
# Import new types
|
||||
from ..types import LandmarkPoint, HandLandmarksResult
|
||||
from ...utils.timing import TimestampProvider # Import TimestampProvider
|
||||
|
||||
@@ -8,7 +8,7 @@ import mediapipe as mp
|
||||
import numpy as np
|
||||
import torch
|
||||
import cv2
|
||||
from typing import List, Tuple, Optional, Dict, Any
|
||||
from typing import List, Tuple, Optional, Any
|
||||
|
||||
# Import needed types
|
||||
from ..types import LandmarkPoint, HolisticLandmarksResult
|
||||
|
||||
@@ -4,7 +4,7 @@ import torch
|
||||
from mediapipe.tasks import python
|
||||
from mediapipe.tasks.python import vision
|
||||
from mediapipe.tasks.python.core.base_options import BaseOptions
|
||||
from typing import List, Optional
|
||||
from typing import List
|
||||
# Import new types
|
||||
from ..types import ImageEmbedderResult
|
||||
# Import TimestampProvider from the new location
|
||||
|
||||
@@ -3,10 +3,6 @@ import mediapipe as mp
|
||||
import numpy as np
|
||||
import torch
|
||||
from mediapipe.tasks import python
|
||||
from mediapipe.tasks.python import vision
|
||||
from mediapipe.tasks.python.vision.interactive_segmenter import (
|
||||
InteractiveSegmenter,
|
||||
)
|
||||
from mediapipe.tasks.python.vision import interactive_segmenter
|
||||
from mediapipe.tasks.python.components.containers import keypoint
|
||||
|
||||
|
||||
Reference in New Issue
Block a user