Skip to content

Feat/unsupervised anomaly detection #116

Feat/unsupervised anomaly detection

Feat/unsupervised anomaly detection #116

Triggered via pull request October 18, 2024 08:45
Status Failure
Total duration 3m 6s
Artifacts

ci.yaml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors
type-check: luxonis_train/attached_modules/losses/reconstruction_segmentation_loss.py#L46
Type "tuple[list[Tensor], list[Tensor], Tensor, list[Tensor]]" is not assignable to return type "tuple[Tensor, Tensor, Tensor, Tensor]"   "list[Tensor]" is not assignable to "Tensor"   "list[Tensor]" is not assignable to "Tensor"   "list[Tensor]" is not assignable to "Tensor" (reportReturnType)
type-check: luxonis_train/attached_modules/losses/reconstruction_segmentation_loss.py#L253
Operator "-" not supported for types "Literal[1]" and "Unknown | None"   Operator "-" not supported for types "Literal[1]" and "None" (reportOperatorIssue)
type-check: luxonis_train/nodes/backbones/recsubnet/recsubnet.py#L62
Type "tuple[Any, Unknown | Tensor]" is not assignable to return type "Tensor"   "tuple[Any, Unknown | Tensor]" is not assignable to "Tensor" (reportReturnType)
type-check: luxonis_train/nodes/backbones/recsubnet/recsubnet.py#L64
Type "tuple[Any, Unknown | Tensor, Tensor | Unknown | Unbound]" is not assignable to return type "Tensor"   "tuple[Any, Unknown | Tensor, Tensor | Unknown | Unbound]" is not assignable to "Tensor" (reportReturnType)
type-check: luxonis_train/nodes/heads/discsubnet_head/discsubnet_head.py#L37
Argument of type "list[int] | int" cannot be assigned to parameter "out_channels" of type "int" in function "__init__"   Type "list[int] | int" is not assignable to type "int"     "list[int]" is not assignable to "int" (reportArgumentType)
type-check: luxonis_train/nodes/heads/discsubnet_head/discsubnet_head.py#L46
Expression with type "Tuple[Tensor, Tensor]" cannot be assigned to target tuple   Type "Tuple[Tensor, Tensor]" is incompatible with target tuple     Tuple size mismatch; expected 3 but received 2 (reportAssignmentType)
type-check: luxonis_train/nodes/heads/discsubnet_head/discsubnet_head.py#L56
Type "tuple[Any, Tensor, Tensor, Unbound | Unknown]" is not assignable to return type "Tensor"   "tuple[Any, Tensor, Tensor, Unbound | Unknown]" is not assignable to "Tensor" (reportReturnType)
type-check: luxonis_train/nodes/heads/discsubnet_head/discsubnet_head.py#L63
Type "dict[str, tuple[list[Tensor], list[Tensor], list[Tensor]] | list[Tensor]]" is not assignable to return type "Packet[Tensor]"   Type "tuple[list[Tensor], list[Tensor], list[Tensor]] | list[Tensor]" is not assignable to type "list[Tensor]"     "tuple[list[Tensor], list[Tensor], list[Tensor]]" is not assignable to "list[Tensor]" (reportReturnType)
type-check: luxonis_train/nodes/heads/discsubnet_head/discsubnet_head.py#L65
Expression with type "tuple[list[Tensor], list[Tensor], list[Tensor]] | list[Tensor]" cannot be assigned to target tuple   Type "tuple[list[Tensor], list[Tensor], list[Tensor]]" is incompatible with target tuple     Tuple size mismatch; expected 4 but received 3 (reportAssignmentType)
type-check: luxonis_train/nodes/heads/discsubnet_head/discsubnet_head.py#L66
Type "dict[str, list[Tensor] | Tensor | list[list[Tensor] | Tensor]]" is not assignable to return type "Packet[Tensor]"   Type "list[Tensor] | Tensor" is not assignable to type "list[Tensor]"     "Tensor" is not assignable to "list[Tensor]"   Type "list[Tensor] | Tensor" is not assignable to type "list[Tensor]"     "Tensor" is not assignable to "list[Tensor]"   Type "list[Tensor] | Tensor" is not assignable to type "Tensor"     "list[Tensor]" is not assignable to "Tensor"   "Tensor" is not assignable to "list[Tensor]" (reportReturnType)