Skip to content

Commit

Permalink
download
Browse files Browse the repository at this point in the history
  • Loading branch information
chxw20 committed Feb 18, 2021
1 parent 648908e commit 9ed00cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,4 @@ dmypy.json
**/tmp/
**/*~
**/data/
**/saved_models/
4 changes: 2 additions & 2 deletions BAN_vqa/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from utils import trim_collate
from dataset import tfidf_from_questions

GPUID = 0
GPUID = 2
os.environ["CUDA_VISIBLE_DEVICES"] = str(GPUID)

def parse_args():
Expand Down Expand Up @@ -117,4 +117,4 @@ def parse_args():
train_loader = DataLoader(train_dset, batch_size, shuffle=True, num_workers=1, collate_fn=utils.trim_collate)
eval_loader = DataLoader(val_dset, batch_size, shuffle=False, num_workers=1, collate_fn=utils.trim_collate)

train(model, train_loader, eval_loader, args.epochs, args.output, optim, epoch)
train(model, train_loader, eval_loader, args.epochs, args.output, optim, epoch)

0 comments on commit 9ed00cd

Please sign in to comment.