Error!!! animatediff generate -c 'config/prompts/01-ToonYou.json' -W 576 -H 576 -L 128 -C 16
Byronnar opened this issue · 1 comments
Byronnar commented
I have configured the environment as required and downloaded the relevant models. When I run the above command, an error message is reported. The error message is as follows. How should I solve it:
animatediff-cli/src/animatediff/cli.py:252 in generate │
│ │
│ 249 │ │
│ 250 │ config_path = config_path.absolute() │
│ 251 │ logger.info(f"Using generation config: {relative_path(config_path)}") │
│ ❱ 252 │ model_config: ModelConfig = get_model_config(config_path) │
│ 253 │ infer_config: InferenceConfig = get_infer_config() │
│ 254 │ │
│ 255 │ # set sane defaults for context, overlap, and stride if not supplied │
│ │
│ animatediff-cli/src/an │
│ imatediff/settings.py:126 in get_model_config │
│ │
│ 123 │
│ 124 @lru_cache(maxsize=2) │
│ 125 def get_model_config(config_path: Path) -> ModelConfig: │
│ ❱ 126 │ settings = ModelConfig(json_config_path=config_path) │
│ 127 │ return settings │
│ 128 │
│ │
│ in pydantic.env_settings.BaseSettings.__init__:39 │
│ │
│ in pydantic.main.BaseModel.__init__:342 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ValidationError: 1 validation error for ModelConfig
scheduler
value is not a valid enumeration member; permitted: 'ddim', 'pndm', 'heun', 'unipc', 'euler', 'euler_a', 'lms', 'k_lms', 'dpm_2', 'k_dpm_2', 'dpm_2_a', 'k_dpm_2_a', 'dpmpp_2m', 'k_dpmpp_2m', 'dpmpp_sde', 'k_dpmpp_sde', 'dpmpp_2m_sde', 'k_dpmpp_2m_sde' (type=type_error.enum; enum_values=[<DiffusionScheduler.ddim: 'ddim'>,
<DiffusionScheduler.pndm: 'pndm'>, <DiffusionScheduler.heun: 'heun'>, <DiffusionScheduler.unipc: 'unipc'>, <DiffusionScheduler.euler: 'euler'>, <DiffusionScheduler.euler_a: 'euler_a'>, <DiffusionScheduler.lms: 'lms'>, <DiffusionScheduler.k_lms: 'k_lms'>, <DiffusionScheduler.dpm_2: 'dpm_2'>, <DiffusionScheduler.k_dpm_2: 'k_dpm_2'>,
<DiffusionScheduler.dpm_2_a: 'dpm_2_a'>, <DiffusionScheduler.k_dpm_2_a: 'k_dpm_2_a'>, <DiffusionScheduler.dpmpp_2m: 'dpmpp_2m'>, <DiffusionScheduler.k_dpmpp_2m: 'k_dpmpp_2m'>, <DiffusionScheduler.dpmpp_sde: 'dpmpp_sde'>, <DiffusionScheduler.k_dpmpp_sde: 'k_dpmpp_sde'>, <DiffusionScheduler.dpmpp_2m_sde: 'dpmpp_2m_sde'>,
<DiffusionScheduler.k_dpmpp_2m_sde: 'k_dpmpp_2m_sde'>])
neggles commented
Looks like the scheduler
value in the prompt example JSON is wrong - that's my bad, I renamed them and didn't update the examples.
Have just pushed an update that should fix this (by defaulting to DDIM in all of the examples) 😄