Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

SpatialPad on the inferer when the to-pad shape is the same as the tensor #447

@virginiafdez

Description

@virginiafdez

In the Latent inferers, in some cases, if the latent tensor shape is the same as the one you have to pad to (because the users populated the fields ldm_latent_shape and vae_latent_shape), the code fails because the latent tensor's got a track_meta flag that tries to calculate the inverse transform when calling the resizer and it fails with an error.

A check, before padding, that verifies that padding is necessary (ldm_latent_shape != latent.shape) will overcome this problem.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions