s9roll7 / animatediff-cli-prompt-travel

animatediff prompt travel
Apache License 2.0
1.19k stars 105 forks source link

Error with json unet_batch_size #131

Open SoftologyPro opened 11 months ago

SoftologyPro commented 11 months ago
10:54:15 INFO     Using generation config: config\prompts\prompt_travel.json                                                                                                                                                                                        cli.py:288
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ lib\site-packages\anima │
│ tediff\cli.py:289 in generate                                                                    │
│                                                                                                  │
│    286 │                                                                                         │
│    287 │   config_path = config_path.absolute()                                                  │
│    288 │   logger.info(f"Using generation config: {path_from_cwd(config_path)}")                 │
│ ❱  289 │   model_config: ModelConfig = get_model_config(config_path)                             │
│    290 │   is_v2 = is_v2_motion_module(data_dir.joinpath(model_config.motion_module))            │
│    291 │   infer_config: InferenceConfig = get_infer_config(is_v2)                               │
│    292                                                                                           │
│                                                                                                  │
│ lib\site-packages\anima │
│ tediff\settings.py:134 in get_model_config                                                       │
│                                                                                                  │
│   131                                                                                            │
│   132 @lru_cache(maxsize=2)                                                                      │
│   133 def get_model_config(config_path: Path) -> ModelConfig:                                    │
│ ❱ 134 │   settings = ModelConfig(json_config_path=config_path)                                   │
│   135 │   return settings                                                                        │
│   136                                                                                            │
│                                                                                                  │
│ in pydantic.env_settings.BaseSettings.__init__:40                                                │
│                                                                                                  │
│ in pydantic.main.BaseModel.__init__:341                                                          │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ValidationError: 1 validation error for ModelConfig
unet_batch_size
  extra fields not permitted (type=value_error.extra)
Press any key to continue . . .
SoftologyPro commented 11 months ago

After stripping out the unet_batch_size line...

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ lib\site-packages\anima │
│ tediff\cli.py:323 in generate                                                                    │
│                                                                                                  │
│    320 │   global g_pipeline                                                                     │
│    321 │   global last_model_path                                                                │
│    322 │   if g_pipeline is None or last_model_path != model_config.path.resolve():              │
│ ❱  323 │   │   g_pipeline = create_pipeline(                                                     │
│    324 │   │   │   base_model=base_model_path,                                                   │
│    325 │   │   │   model_config=model_config,                                                    │
│    326 │   │   │   infer_config=infer_config,                                                    │
│                                                                                                  │
│ lib\site-packages\anima │
│ tediff\generate.py:372 in create_pipeline                                                        │
│                                                                                                  │
│    369 │   │   │   )                                                                             │
│    370 │   │   │   del temp_pipeline                                                             │
│    371 │   │   else:                                                                             │
│ ❱  372 │   │   │   raise FileNotFoundError(f"model_path {model_path} is not a file or directory  │
│    373 │   │                                                                                     │
│    374 │   │   # Load into the unet, TE, and VAE                                                 │
│    375 │   │   logger.info("Merging weights into UNet...")                                       │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
FileNotFoundError: model_path animatediff-cli-prompt-travel\data\share\Stable-diffusion\mistoonAnime_v20.safetensors is not a file or directoryPress any key to continue . . .

The model path is wrong. It was animatediff-cli-prompt-travel\data\models\sd Now chaged? If so, will that be the permanent new location?