Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add condlane #20

Merged
merged 15 commits into from
Sep 11, 2021
Prev Previous commit
Merge branch 'main' into condlane
  • Loading branch information
Turoad authored Sep 10, 2021
commit 28ef0106f1c866ca647456e505247fe60e148406
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Supported detectors:
- [x] [LaneATT](configs/laneatt)
- [x] [CondLane](configs/condlane)


## Installation
<!--
Please refer to [INSTALL.md](INSTALL.md) for installation.
Expand Down
4 changes: 4 additions & 0 deletions lanedet/datasets/base_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ def __len__(self):

def __getitem__(self, idx):
data_info = self.data_infos[idx]
if not osp.isfile(data_info['img_path']):
raise FileNotFoundError('cannot find file: {}'.format(data_info['img_path']))

img = cv2.imread(data_info['img_path'])

img = img[self.cfg.cut_height:, :, :]
sample = data_info.copy()
sample.update({'img': img})
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.