Skip to content

Commit

Permalink
fix: updates the posix path on windows os
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulhakkeempa committed Mar 5, 2024
1 parent b81e3c4 commit cd70d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

import torch

# PosixPath on Windows
# Updating PosixPath on Windows for compatibility
if sys.platform == "win32":
temp = pathlib.PosixPath
pathlib.PosixPath = pathlib.WindowsPath
Expand Down

0 comments on commit cd70d91

Please sign in to comment.