Skip to content

Commit

Permalink
[Fix] Fix training of VPD model (#3323)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Louis committed Sep 15, 2023
1 parent b6090a1 commit 2b3d3d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/vpd/vpd_sd_4xb8-25k_nyu-480x480.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# custom optimizer
optim_wrapper = dict(
type='ForceDefaultOptimWrapperConstructor',
constructor='ForceDefaultOptimWrapperConstructor',
paramwise_cfg=dict(
bias_decay_mult=0,
force_default_settings=True,
Expand Down
2 changes: 1 addition & 1 deletion mmseg/datasets/transforms/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ def _flip(self, results: dict) -> None:
for key in results.get('seg_fields', []):
if results.get(key, None) is not None:
results[key] = self._flip_seg_map(
results[key], direction=results['flip_direction'])
results[key], direction=results['flip_direction']).copy()
results['swap_seg_labels'] = self.swap_seg_labels


Expand Down

0 comments on commit 2b3d3d0

Please sign in to comment.