Skip to content

Commit

Permalink
fix 'NotImplementedError: cannot instantiate 'PosixPath' on your syst…
Browse files Browse the repository at this point in the history
…em' error
  • Loading branch information
JosuaLimbu committed Jan 21, 2024
1 parent 050c72c commit 16b85bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
import platform
import sys
from pathlib import Path

import pathlib # added for Windows compatibility
pathlib.PosixPath = pathlib.WindowsPath # and fix "NotImplementedError: cannot instantiate 'PosixPath' on your system" error
import torch

FILE = Path(__file__).resolve()
Expand Down

0 comments on commit 16b85bf

Please sign in to comment.