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

Providing sweep_id #7

Open
BjarnePfitzner opened this issue Aug 2, 2022 · 0 comments
Open

Providing sweep_id #7

BjarnePfitzner opened this issue Aug 2, 2022 · 0 comments

Comments

@BjarnePfitzner
Copy link

First of all thanks for writing this hydra plugin, it was exactly what I was looking for.

Unfortunately providing a sweep_id does not work for me, I get the following traceback:

Traceback (most recent call last):
  File "/dhc/home/bjarne.pfitzner/conda3/envs/tff_cuda11.2/lib/python3.8/site-packages/hydra/_internal/utils.py", line 211, in run_and_report
    return func()
  File "/dhc/home/bjarne.pfitzner/conda3/envs/tff_cuda11.2/lib/python3.8/site-packages/hydra/_internal/utils.py", line 376, in <lambda>
    lambda: hydra.multirun(
  File "/dhc/home/bjarne.pfitzner/conda3/envs/tff_cuda11.2/lib/python3.8/site-packages/hydra/_internal/hydra.py", line 130, in multirun
    sweeper = Plugins.instance().instantiate_sweeper(
  File "/dhc/home/bjarne.pfitzner/conda3/envs/tff_cuda11.2/lib/python3.8/site-packages/hydra/core/plugins.py", line 175, in instantiate_sweeper
    sweeper = self._setup_plugin(
  File "/dhc/home/bjarne.pfitzner/conda3/envs/tff_cuda11.2/lib/python3.8/site-packages/hydra/core/plugins.py", line 159, in _setup_plugin
    plugin.setup(
  File "/dhc/home/bjarne.pfitzner/conda3/envs/tff_cuda11.2/lib/python3.8/site-packages/hydra_plugins/hydra_wandb_sweeper/wandb_sweeper.py", line 27, in setup
    return self.sweeper.setup(
  File "/dhc/home/bjarne.pfitzner/conda3/envs/tff_cuda11.2/lib/python3.8/site-packages/hydra_plugins/hydra_wandb_sweeper/_impl.py", line 455, in setup
    OmegaConf.to_container(self.sweep_id, resolve=True)
  File "/dhc/home/bjarne.pfitzner/conda3/envs/tff_cuda11.2/lib/python3.8/site-packages/omegaconf/omegaconf.py", line 549, in to_container
    raise ValueError(
ValueError: Input cfg is not an OmegaConf config object (str)

By simply changing line 455 to self.sweep_id, I could circumvent this error. Instead, I think the whole block from ll. 454 to 458 can be deleted.

Also, for a future documentation, please note that the sweep_id apparently has to follow the structure {entity}/{project}/{sweep_id}. This was not obvious to me, even though it may be to others.

Package Versions:

  • python==3.8
  • hydra-core==1.1.0
  • hydra-wandb-sweeper==0.0.1
  • omegaconf==2.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant