Skip to content

Commit

Permalink
fix #33
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischoy authored Apr 24, 2020
1 parent fc01d5b commit 0b3ad50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def train(model, data_loader, val_data_loader, config, transform_data_fn=None):
data_timer.tic()
coords, input, target = data_iter.next()

# For some networks, making the network invariant to even, odd coords is important
coords[:, :3] += (torch.rand(3) * 100).type_as(coords)
# For some networks, making the network invariant to even, odd coords is important. Random translation
coords[:, 1:] += (torch.rand(3) * 100).type_as(coords)

# Preprocess input
color = input[:, :3].int()
Expand Down

0 comments on commit 0b3ad50

Please sign in to comment.