Skip to content

Commit

Permalink
update yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvK278 committed Apr 18, 2024
1 parent ba230f9 commit 583e78e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yolov5/combined.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ def process_image_lane(image):
dist = dist_pickle["dist"]

def process_image(image):
lane_image = process_image_lane(image)
results = model(torch.from_numpy(image).unsqueeze(0))
lane_image = process_image_lane(image)
results = model(torch.from_numpy(image).unsqueeze(0).float())
labels, cord = results.xyxyn[0][:, -1], results.xyxyn[0][:, :-1]
n = len(labels)
x_shape, y_shape = image.shape[1], image.shape[0]
Expand Down

0 comments on commit 583e78e

Please sign in to comment.