WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Discussion options

You must be logged in to vote

Ah, this one gets me too. Unfortunately Hydra converts lists to a omegaconf.ListConfig object and does not convert it to list on instantiation. There are two options for you:

  1. Convert the object to list: json.dumps(list(list_obj))
  2. Use the convert all flag for Hydra instantiate: json_config = builds(json_serialize_func, ['test', 'item'], hydra_convert="all")

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jeffliu-LL
Comment options

@rsokl
Comment options

@jgbos
Comment options

@rsokl
Comment options

Answer selected by jeffliu-LL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants