Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischoy authored Apr 23, 2020
1 parent 416bd68 commit fc01d5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def train(model, data_loader, val_data_loader, config, transform_data_fn=None):
# Preprocess input
color = input[:, :3].int()
if config.normalize_color:
input[:, :3] = input[:, 1:] / 255. - 0.5
input[:, 1:] = input[:, 1:] / 255. - 0.5
sinput = SparseTensor(input, coords).to(device)

data_time += data_timer.toc(False)
Expand Down

0 comments on commit fc01d5b

Please sign in to comment.