Skip to content

Commit

Permalink
Update tests for SemSegment
Browse files Browse the repository at this point in the history
  • Loading branch information
akihironitta authored and Borda committed Nov 6, 2020
1 parent cde62eb commit 5263a5f
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 5263a5f

Please sign in to comment.