Skip to content

Commit

Permalink
Add a check
Browse files Browse the repository at this point in the history
  • Loading branch information
araffin committed Jun 17, 2018
1 parent ad366d4 commit 0fbba32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Autonomous Racing Robot With an Arduino, a Raspberry Pi and a Pi Camera

[![Build Status](https://travis-ci.com/sergionr2/RacingRobot.svg?branch=line-pred)](https://travis-ci.com/sergionr2/RacingRobot)
[![codecov](https://codecov.io/gh/sergionr2/RacingRobot/branch/line-pred/graph/badge.svg)](https://codecov.io/gh/sergionr2/RacingRobot)
[![Build Status](https://travis-ci.com/sergionr2/RacingRobot.svg?branch=master)](https://travis-ci.com/sergionr2/RacingRobot)
[![codecov](https://codecov.io/gh/sergionr2/RacingRobot/branch/master/graph/badge.svg)](https://codecov.io/gh/sergionr2/RacingRobot)


Autonomous toy racing car. CAMaleon team at the Toulouse Robot Race 2017. Humbavision team at IronCar.
Expand Down
1 change: 1 addition & 0 deletions train/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def __getitem__(self, index):

# Normalize labels
labels = np.array(self.labels[image]).astype(np.float32)
assert len(labels) == 3, "Error with label of image {}".format(image)
labels[:, 0] = (labels[:, 0] - margin_left) / MAX_WIDTH
labels[:, 1] = (labels[:, 1] - margin_top) / MAX_HEIGHT

Expand Down

0 comments on commit 0fbba32

Please sign in to comment.