Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions training_pipeline/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,7 @@ def main():
print(f"Checkpoint path: {checkpoint_path}")

print(f"Processing {len(valid_images)} images...")
predictions = predict_batch(model, valid_images, device, args.threshold,
checkpoint_path, resume)
processed_images, predictions = predict_batch(model, valid_images, device, args.threshold, checkpoint_path, resume)

# Save predictions
for i, (image_path, pred_mask) in enumerate(zip(valid_images, predictions)):
Expand Down