Skip to content

Commit

Permalink
fix: フォーマットの修正2
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashitom committed Sep 9, 2024
1 parent 4590eb3 commit 46a5617
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/detect_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
import torch
import pathlib
from pathlib import Path

# Linux環境で推論する場合はコメントアウト
temp = pathlib.PosixPath
pathlib.PosixPath = pathlib.WindowsPath
import os
import numpy as np
import sys
from ultralytics.utils.plotting import Annotator, colors

# Linux環境で推論する場合はコメントアウト
temp = pathlib.PosixPath
pathlib.PosixPath = pathlib.WindowsPath

script_dir = os.path.dirname(os.path.abspath(__file__)) # noqa
YOLO_PATH = os.path.join(script_dir, "..", "yolo") # noqa
sys.path.append(YOLO_PATH) # noqa
Expand Down

0 comments on commit 46a5617

Please sign in to comment.