Skip to content

Commit

Permalink
slight alteration
Browse files Browse the repository at this point in the history
  • Loading branch information
dweizzz committed Oct 21, 2023
1 parent be4cd9f commit 4f9b2b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modelrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def run(self):
self.output_dict = pickle.load(f)

def pose(self):
model = YOLO('best.pt')
model = YOLO('src/pose_estimation/best.pt')
results = model(
source = self.video_path,
show=False,
Expand Down
Binary file renamed best.pt → src/pose_estimation/best.pt
Binary file not shown.
2 changes: 1 addition & 1 deletion src/pose_estimation/pose_estimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ultralytics import YOLO

class PoseEstimator:
def __init__(self, model_path='best.pt', video_path='res/pose_results/test_multiple_people.mp4', combinations=None):
def __init__(self, model_path='src/pose_estimation/best.pt', video_path='res/pose_results/test_multiple_people.mp4', combinations=None):
# Initialize paths, model, and combinations of keypoints to calculate angles
self.model_path = model_path
self.video_path = video_path
Expand Down

0 comments on commit 4f9b2b5

Please sign in to comment.