Skip to content

Commit 0fbba32

Browse files
committed
Add a check
1 parent ad366d4 commit 0fbba32

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Autonomous Racing Robot With an Arduino, a Raspberry Pi and a Pi Camera
22

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

66

77
Autonomous toy racing car. CAMaleon team at the Toulouse Robot Race 2017. Humbavision team at IronCar.

train/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def __getitem__(self, index):
166166

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

0 commit comments

Comments
 (0)