Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rl config #50

Merged
merged 15 commits into from
Oct 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: sample_factory needs optimizer in lowercase
fabioseel committed Oct 28, 2024
commit 6161013da9a8b091b9f874a89046cbe16c1bc111
2 changes: 1 addition & 1 deletion retinal_rl/rl/sample_factory/sf_framework.py
Original file line number Diff line number Diff line change
@@ -110,7 +110,7 @@ def to_sf_cfg(self, cfg: DictConfig) -> Config:
self._set_cfg_cli_argument(sf_cfg, "env", cfg.dataset.env_name)
self._set_cfg_cli_argument(sf_cfg, "input_satiety", cfg.dataset.input_satiety)
self._set_cfg_cli_argument(sf_cfg, "device", cfg.system.device)
optimizer_name = str.split(cfg.optimizer.optimizer._target_, sep='.')[-1]
optimizer_name = str.lower(str.split(cfg.optimizer.optimizer._target_, sep='.')[-1])
self._set_cfg_cli_argument(sf_cfg, "optimizer", optimizer_name)

self._set_cfg_cli_argument(sf_cfg, "brain", OmegaConf.to_object(cfg.brain))