Skip to content

Commit dc5e5cb

Browse files
author
ReverseZoom2151
committed
fix: Suppress IDE warning for optional pytorch_i3d import
- Added type: ignore comment for optional pytorch_i3d import - Removed unused typing imports (Optional, List, TYPE_CHECKING) - FVD works with simplified I3D by default - Full I3D is optional (install from GitHub if needed) Resolves IDE import warning while maintaining functionality.
1 parent 18e2af6 commit dc5e5cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/fvd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(
8989

9090
try:
9191
# Try to use proper I3D implementation if available
92-
from pytorch_i3d import InceptionI3d
92+
from pytorch_i3d import InceptionI3d # type: ignore[import]
9393
self.i3d = InceptionI3d(400, in_channels=3).to(device)
9494

9595
# Load pretrained weights

0 commit comments

Comments
 (0)