[RTDETR]fix "Grad strides do not match bucket view strides" when training with DDP (#3255)
This commit is contained in:
@ -31,9 +31,6 @@ class HungarianMatcher(nn.Module):
|
||||
_cost_mask(bs, num_gts, masks=None, gt_mask=None): Computes the mask cost and dice cost if masks are predicted.
|
||||
"""
|
||||
|
||||
class HungarianMatcher(nn.Module):
|
||||
...
|
||||
|
||||
def __init__(self, cost_gain=None, use_fl=True, with_mask=False, num_sample_points=12544, alpha=0.25, gamma=2.0):
|
||||
super().__init__()
|
||||
if cost_gain is None:
|
||||
|
Reference in New Issue
Block a user