Skip to content

Commit 413a2bd

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0f052d5 commit 413a2bd

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

torch_points3d/metrics/base_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Dict, Any, Callable, Optional
1+
from typing import Any, Dict, Optional
22
import torch
33
from torch import nn
44
from torchmetrics import AverageMeter

torch_points3d/metrics/segmentation/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import torch
2-
from typing import Dict, Optional, Tuple, Any, Union
2+
from typing import Optional, Tuple, Union
33

44

55
def compute_average_intersection_union(confusion_matrix: torch.Tensor, missing_as_one: bool = False) -> torch.Tensor:

torch_points3d/metrics/segmentation/segmentation_tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import torch
2-
from typing import Dict, Optional, Tuple, Any, Union
2+
from typing import Any, Dict
33
from torchmetrics import ConfusionMatrix
44
from torchmetrics import Metric
55

torch_points3d/models/base_model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ def forward(self) -> Optional[torch.Tensor]:
2323
def compute_loss(self):
2424
raise (NotImplementedError("get_losses needs to be defined!"))
2525

26-
def get_losses(self) -> Optional[Dict["str", torch.Tensor]]:
26+
def get_losses(self) -> Optional[Dict["str", torch.Tensor]]:
2727
return self._losses
2828

29-
3029
def get_outputs(self) -> Dict[str, Optional[torch.Tensor]]:
3130
"""
3231
return the outputs to track for the metrics

0 commit comments

Comments
 (0)