Skip to content

v0.5.4 - Version ValueError: Value 'EMB_GRU_SKIP_ENC' not found in config (defaults not allowed). #421

Closed as not planned

Description

@Sharrnah

Getting this error with v0.5.4.

Traceback (most recent call last):
  # ...
  File "df\enhance.py", line 159, in init_df
    p = ModelParams()
  File "df\model.py", line 12, in __init__
    self.__params = getattr(import_module("df." + self.__model), "ModelParams")()
  File "df\deepfilternet3.py", line 55, in __init__
    self.emb_gru_skip_enc: str = config(
  File "df\config.py", line 136, in __call__
    raise ValueError(f"Value '{option}' not found in config (defaults not allowed).")
ValueError: Value 'EMB_GRU_SKIP_ENC' not found in config (defaults not allowed).

Tried to delete the cached model in case the config.ini is missing something and its not downloading the new one automatically, but it downloaded the same and error still persists.

Activity

  1. zhenghaoyuan commented on Aug 29, 2023

    @zhenghaoyuan

    Same here. Do you find any solutions on this ?

  2. Sharrnah commented on Aug 29, 2023

    @Sharrnah
    Author

    I just downgraded to v0.5.3 for the time being.

  3. paul-krug commented on Aug 29, 2023

    @paul-krug

    you have to set config_allow_defaults = True in the init_df() function:

    from df import enhance, init_df
    model, df_state, _ = init_df( config_allow_defaults = True ) # Load default model

  4. Sharrnah commented on Aug 29, 2023

    @Sharrnah
    Author

    thanks. the example code should be updated in the readme then if this is intended behaviour.

  5. Rikorose commented on Aug 31, 2023

    @Rikorose
    Owner

    I changed the default to True now, so this error should disappear.

  6. github-actions commented on Nov 30, 2023

    @github-actions

    This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions