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
2 changes: 1 addition & 1 deletion training_pipeline/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def predict_batch(model, image_paths, device="cuda", threshold=0.5, checkpoint_p
processed_images.append(image_path)

# Save checkpoint every 10 images
if checkpoint_path and (i + 1) % 10 == 0:
if checkpoint_path and newly_processed % 10 == 0:
metadata = {
'device': device,
'threshold': threshold,
Expand Down