Skip to content

global state contamination issue in maptr loader cfgs #178

@kamalrajkannan78

Description

@kamalrajkannan78

Issue

  • Below issues were observed while running the test for variants present maptr_loader combinely not separately.
  • exp2 indicates that num_cams remains same across the tests, but it should be 7 for TINY_R50_24E_AV2 & 6 for TINY_R50_24E & exp 1 indicates there might be a global cfg contamination

Root cause

  • This is due to the reuse of the same global config dict - gkt_cfg.
  • In the loader I did attn_cfgs[1] = gkt_cfg (no copy). Then for AV2 I set attn_cfgs[1]["num_cams"] = 7, which changes the shared gkt_cfg itself.
  • The next test gets that already-modified gkt_cfg, so num_cams sticks to the previous run’s value.

Fix

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions