File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Autonomous Racing Robot With an Arduino, a Raspberry Pi and a Pi Camera
2
2
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 )
5
5
6
6
7
7
Autonomous toy racing car. CAMaleon team at the Toulouse Robot Race 2017. Humbavision team at IronCar.
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ def __getitem__(self, index):
166
166
167
167
# Normalize labels
168
168
labels = np .array (self .labels [image ]).astype (np .float32 )
169
+ assert len (labels ) == 3 , "Error with label of image {}" .format (image )
169
170
labels [:, 0 ] = (labels [:, 0 ] - margin_left ) / MAX_WIDTH
170
171
labels [:, 1 ] = (labels [:, 1 ] - margin_top ) / MAX_HEIGHT
171
172
You can’t perform that action at this time.
0 commit comments