Skip to content

[bug]: PaperCut checkpoint cannot be loaded #1718

@Connum

Description

@Connum

Is there an existing issue for this?

  • I have searched the existing issues

OS

Windows

GPU

cuda

VRAM

6GB

What happened?

Using the web interface in the most recent version installed by the binary installer, changing the model to "papercut-1.0" results in the following error in the cmd window:

>> Loading papercut-1.0 from C:\Users\***\AppData\Roaming\InvokeAI\models\ldm\stable-diffusion-v1\PaperCut_v1.ckpt
   | LatentDiffusion: Running in eps-prediction mode
   | DiffusionWrapper has 859.52 M params.
   | Making attention of type 'vanilla' with 512 in_channels
   | Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
   | Making attention of type 'vanilla' with 512 in_channels
** model papercut-1.0 could not be loaded: Error(s) in loading state_dict for LatentDiffusion:
        size mismatch for embedding_manager.string_to_param_dict.*: copying a param with shape torch.Size([1, 768]) from checkpoint, the shape in current model is torch.Size([8, 768]).
        size mismatch for embedding_manager.initial_embeddings.*: copying a param with shape torch.Size([1, 768]) from checkpoint, the shape in current model is torch.Size([8, 768]).
Traceback (most recent call last):
  File "d:\ai\invokeai\ldm\invoke\model_cache.py", line 80, in get_model
    requested_model, width, height, hash = self._load_model(model_name)
  File "d:\ai\invokeai\ldm\invoke\model_cache.py", line 232, in _load_model
    model.load_state_dict(sd, strict=False)
  File "D:\AI\InvokeAI\.venv\lib\site-packages\torch\nn\modules\module.py", line 1604, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for LatentDiffusion:
        size mismatch for embedding_manager.string_to_param_dict.*: copying a param with shape torch.Size([1, 768]) from checkpoint, the shape in current model is torch.Size([8, 768]).
        size mismatch for embedding_manager.initial_embeddings.*: copying a param with shape torch.Size([1, 768]) from checkpoint, the shape in current model is torch.Size([8, 768]).

Screenshots

No response

Additional context

No response

Contact Details

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions