Skip to content

Commit

Permalink
Update instancesegmentation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ariannasole23 authored Jan 9, 2025
1 parent 52daa1c commit 68756a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions torchgeo/trainers/instancesegmentation.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Any # Allows us to annotate arguments and return types of functions
import torch.nn as nn # PyTorch module for neural network layers
import torch # PyTorch for deep learning operations
from torch import Tensor # Type hint for tensors
from torchmetrics.detection.mean_ap import MeanAveragePrecision # Metric to evaluate instance segmentation models
from torchvision.models.detection import maskrcnn_resnet50_fpn # Pre-built Mask R-CNN model from PyTorch
from typing import Any

Check failure on line 1 in torchgeo/trainers/instancesegmentation.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (D100)

torchgeo/trainers/instancesegmentation.py:1:1: D100 Missing docstring in public module
import torch.nn as nn
import torch

Check failure on line 3 in torchgeo/trainers/instancesegmentation.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

torchgeo/trainers/instancesegmentation.py:3:8: F401 `torch` imported but unused
from torch import Tensor
from torchmetrics.detection.mean_ap import MeanAveragePrecision
from torchvision.models.detection import maskrcnn_resnet50_fpn
from ultralytics import YOLO
from .base import BaseTask

Expand Down

0 comments on commit 68756a7

Please sign in to comment.