Skip to content

Commit

Permalink
Revert "train on p percent of the data"
Browse files Browse the repository at this point in the history
This reverts commit ba6c3fe.
  • Loading branch information
jonahthelion committed Oct 28, 2021
1 parent 1ddcf93 commit d74598c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 130 deletions.
9 changes: 0 additions & 9 deletions .dockerignore

This file was deleted.

31 changes: 0 additions & 31 deletions Dockerfile

This file was deleted.

86 changes: 0 additions & 86 deletions ngc.py

This file was deleted.

4 changes: 0 additions & 4 deletions src/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def train(version,
nworkers=10,
lr=1e-3,
weight_decay=1e-7,
pdata = 1.0,
):
grid_conf = {
'xbound': xbound,
Expand All @@ -63,9 +62,6 @@ def train(version,
grid_conf=grid_conf, bsz=bsz, nworkers=nworkers,
parser_name='segmentationdata')

# take p% of the data
trainloader.dataset.ixes = trainloader.dataset.ixes[:int(pdata * len(trainloader.dataset.ixes))]

device = torch.device('cpu') if gpuid < 0 else torch.device(f'cuda:{gpuid}')

model = compile_model(grid_conf, data_aug_conf, outC=1)
Expand Down

0 comments on commit d74598c

Please sign in to comment.