Skip to content

Commit 73ba66e

Browse files
davnov134facebook-github-bot
authored andcommitted
Bugfix in reduction feature aggr.
Summary: Bugfix Reviewed By: bottler Differential Revision: D40146840 fbshipit-source-id: a8415c361ed3cd939999b87311aff4d3bb1bcfe1
1 parent 4c8338b commit 73ba66e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch3d/implicitron/models/view_pooler/feature_aggregator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def forward(
229229
masks_sampled.device,
230230
self.exclude_target_view,
231231
)
232-
aggr_weigths = masks_sampled * sampling_mask
232+
aggr_weigths = masks_sampled[..., 0] * sampling_mask[..., None]
233233
feats_aggregated = {
234234
k: _avgmaxstd_reduction_function(
235235
f,

0 commit comments

Comments
 (0)