allenai / rslearn

A tool for developing remote sensing datasets and models.
Apache License 2.0
5 stars 0 forks source link

Configuration overhaul #2

Open favyen2 opened 8 months ago

favyen2 commented 8 months ago

Figure out how configuration files and loading config from them should work.

Right now some configuration loads arguments to a constructor directly (e.g. loading data source), while others have dedicated parsing functions.

Look into best practices but I think sticking with a function to parse the configuration into a class is good.

Dataset should store config as DatasetConfig or similar rather than keeping the decoded JSON dict.

favyen2 commented 8 months ago

There is config object now but I think there are still some things to look into: