Skip to content

Commit

Permalink
convert Path to str
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Aug 2, 2024
1 parent 2be8b80 commit 98c96dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sleap/nn/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -5652,7 +5652,7 @@ def main(args: Optional[list] = None):

# Load predictions
print("Loading predictions...")
labels_pr = sleap.load_file(data_path)
labels_pr = sleap.load_file(data_path.as_posix())
frames = sorted(labels_pr.labeled_frames, key=lambda lf: lf.frame_idx)
if provider.example_indices is not None:
# Convert indices to a set to search in O(1), otherwise it is much slower
Expand Down Expand Up @@ -5681,7 +5681,7 @@ def main(args: Optional[list] = None):
labels_pr.provenance["sleap_version"] = sleap.__version__
labels_pr.provenance["platform"] = platform.platform()
labels_pr.provenance["command"] = " ".join(sys.argv)
labels_pr.provenance["data_path"] = data_path
labels_pr.provenance["data_path"] = os.fspath(data_path)
labels_pr.provenance["output_path"] = output_path
labels_pr.provenance["total_elapsed"] = total_elapsed
labels_pr.provenance["start_timestamp"] = start_timestamp
Expand Down

0 comments on commit 98c96dc

Please sign in to comment.