Skip to content

Commit

Permalink
Adjust to precommit style
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzLamm committed Oct 30, 2023
1 parent abd7ed2 commit 10da629
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/membrain_seg/segmentation/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ def segment(
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

# Initialize the model and load trained weights from checkpoint
pl_model = SemanticSegmentationUnet.load_from_checkpoint(model_checkpoint, map_location=device, strict=False)

pl_model = SemanticSegmentationUnet.load_from_checkpoint(
model_checkpoint, map_location=device, strict=False
)
pl_model.to(device)

# Preprocess the new data
Expand Down

0 comments on commit 10da629

Please sign in to comment.