Skip to content

Commit

Permalink
Ignore PEP8 F841 in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
vniclas committed Oct 5, 2021
1 parent 3e14713 commit 054b8aa
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -48,6 +48,7 @@ def train():
train_stats = learner.fit(train_dataset, val_dataset=val_dataset,
logging_path=str(Path(__file__).parent / 'work_dir'))
learner.save(path=f'{DATA_ROOT}/checkpoints/efficientPS')
assert train_stats # This assert is just a workaround since pyflakes does not support the NOQA comment


def evaluate():
Expand All @@ -59,6 +60,7 @@ def evaluate():
)
learner.load(path=f'{DATA_ROOT}/checkpoints/model_cityscapes.pth')
eval_stats = learner.eval(val_dataset, print_results=True)
assert eval_stats # This assert is just a workaround since pyflakes does not support the NOQA comment


def inference():
Expand Down

0 comments on commit 054b8aa

Please sign in to comment.