Skip to content

Feat/unsupervised anomaly detection #119

Feat/unsupervised anomaly detection

Feat/unsupervised anomaly detection #119

Triggered via pull request October 21, 2024 10:01
Status Failure
Total duration 3m 13s
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#L39
Argument of type "Overload[(input: Tensor, dim: int, dtype: dtype | None = None, *, out: Tensor | None = None) -> Tensor, (input: Tensor, dim: str | ellipsis | None, *, dtype: dtype | None = None) -> Tensor]" cannot be assigned to parameter "apply_nonlin" of type "((Tensor) -> Tensor) | None" in function "__init__"   Type "Overload[(input: Tensor, dim: int, dtype: dtype | None = None, *, out: Tensor | None = None) -> Tensor, (input: Tensor, dim: str | ellipsis | None, *, dtype: dtype | None = None) -> Tensor]" is not assignable to type "((Tensor) -> Tensor) | None"     No overloaded function matches type "(Tensor) -> Tensor"     "function" is not assignable to "None" (reportArgumentType)
type-check: luxonis_train/attached_modules/losses/reconstruction_segmentation_loss.py#L54
Type "tuple[list[Tensor], list[Tensor], Tensor, 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" (reportReturnType)
type-check: luxonis_train/attached_modules/losses/reconstruction_segmentation_loss.py#L205
Type "tuple[Tensor | Unknown, Tensor]" is not assignable to return type "Tensor"   "tuple[Tensor | Unknown, Tensor]" is not assignable to "Tensor" (reportReturnType)
type-check: luxonis_train/attached_modules/losses/reconstruction_segmentation_loss.py#L206
Type "tuple[Tensor | Unknown, Unknown | Tensor]" is not assignable to return type "Tensor"   "tuple[Tensor | Unknown, Unknown | Tensor]" is not assignable to "Tensor" (reportReturnType)
type-check: luxonis_train/attached_modules/losses/reconstruction_segmentation_loss.py#L226
Expression of type "None" cannot be assigned to parameter of type "Tensor"   "None" is not assignable to "Tensor" (reportArgumentType)
type-check: luxonis_train/attached_modules/losses/reconstruction_segmentation_loss.py#L246
No parameter named "dim" (reportCallIssue)
type-check: luxonis_train/loaders/luxonis_perlin_loader_torch.py#L20
Expression of type "float" cannot be assigned to parameter of type "int"   "float" is not assignable to "int" (reportArgumentType)
type-check: luxonis_train/loaders/luxonis_perlin_loader_torch.py#L72
Cannot access attribute "mean" for class "LuxonisLoaderPerlinNoise*"   Attribute "mean" is unknown (reportAttributeAccessIssue)
type-check: luxonis_train/loaders/luxonis_perlin_loader_torch.py#L73
Cannot access attribute "std" for class "LuxonisLoaderPerlinNoise*"   Attribute "std" is unknown (reportAttributeAccessIssue)
type-check: luxonis_train/loaders/luxonis_perlin_loader_torch.py#L92
Type "tuple[dict[str, Tensor], dict[str, tuple[Tensor, TaskType]]]" is not assignable to return type "dict[Unknown, Unknown]"   "tuple[dict[str, Tensor], dict[str, tuple[Tensor, TaskType]]]" is not assignable to "dict[Unknown, Unknown]" (reportReturnType)