enable training mask2former and maskformer for transformers trainer (#28277)
* fix get_num_masks output as [int] to int * fix loss size from torch.Size([1]) to torch.Size([])
This commit is contained in:
committed by
GitHub
parent
6b8ec2588e
commit
4a66c0d952
@@ -189,7 +189,7 @@ class MaskFormerModelTester:
|
||||
comm_check_on_output(result)
|
||||
|
||||
self.parent.assertTrue(result.loss is not None)
|
||||
self.parent.assertEqual(result.loss.shape, torch.Size([1]))
|
||||
self.parent.assertEqual(result.loss.shape, torch.Size([]))
|
||||
|
||||
|
||||
@require_torch
|
||||
|
||||
Reference in New Issue
Block a user