Skip to content

Commit

Permalink
fixed ignore_index bug
Browse files Browse the repository at this point in the history
  • Loading branch information
VMarsocci authored Sep 11, 2024
1 parent ff8c83b commit 8ea3149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def load_configs(parser:argparse.ArgumentParser) -> OmegaConf:
encoder_cfg["input_bands"] = dataset_cfg['bands']

segmentor_cfg["loss"]['distribution'] = dataset_cfg['distribution']
segmentor_cfg["loss"]['ignore_index'] = dataset_cfg['ignore_index']

file_cfg["encoder"] = encoder_cfg
file_cfg["dataset"] = dataset_cfg
Expand Down Expand Up @@ -119,4 +120,4 @@ def _nest(
if val is None and include_none:
nested[key] = val

return dict(nested) if nested else None
return dict(nested) if nested else None

0 comments on commit 8ea3149

Please sign in to comment.