Skip to content

Commit

Permalink
Update instance_segmentation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ariannasole23 authored Jan 21, 2025
1 parent a160baa commit fa8697b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions torchgeo/trainers/instance_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,12 @@
from torchmetrics.detection.mean_ap import MeanAveragePrecision
from torchmetrics import MetricCollection
from torchvision.models.detection import maskrcnn_resnet50_fpn
from base import BaseTask
from .base import BaseTask

import matplotlib.pyplot as plt
from matplotlib.figure import Figure
from torchgeo.datasets import RGBBandsMissingError, unbind_samples
from ..datasets import RGBBandsMissingError, unbind_samples

# for testing
import pytorch_lightning as pl
from pytorch_lightning import LightningModule
from torch.utils.data import DataLoader
from torchgeo.datasets import VHR10

class InstanceSegmentationTask(BaseTask):

Check failure on line 20 in torchgeo/trainers/instance_segmentation.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (I001)

torchgeo/trainers/instance_segmentation.py:6:1: I001 Import block is un-sorted or un-formatted
"""Instance Segmentation."""
Expand Down

0 comments on commit fa8697b

Please sign in to comment.