Skip to content

Commit

Permalink
Update tests for SemSegment
Browse files Browse the repository at this point in the history
  • Loading branch information
akihironitta committed Nov 3, 2020
1 parent 9809624 commit 037434a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/models/test_vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ def train_dataloader(self):

dm = DummyDataModule()

model = SemSegment(datamodule=dm, num_classes=19)
model = SemSegment(num_classes=19)

trainer = pl.Trainer(fast_dev_run=True, max_epochs=1)
trainer.fit(model)
trainer.fit(model, dm)
loss = trainer.progress_bar_dict['loss']

assert float(loss) > 0

0 comments on commit 037434a

Please sign in to comment.