Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chanind committed Aug 26, 2023
1 parent 6f2e1d1 commit b331dfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame_semantic_transformer/scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
parser.add_argument(
"--use-gpu",
default=torch.cuda.is_available(),
action='store_true',
action="store_true",
help=f"Whether to use GPU for training, default {torch.cuda.is_available()}",
)
parser.add_argument(
"--use-cpu",
dest="use_gpu",
action='store_false',
action="store_false",
help=f"Whether to use CPU for training, default {not torch.cuda.is_available()}",
)
parser.add_argument("--learning-rate", default=1e-4, type=float)
Expand Down

0 comments on commit b331dfa

Please sign in to comment.