Skip to content
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

Closed
virginiafdez opened this issue Dec 15, 2023 · 0 comments · Fixed by #449
Closed

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

virginiafdez opened this issue Dec 15, 2023 · 0 comments · Fixed by #449
Assignees

Comments

@virginiafdez
Copy link
Contributor

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.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
1 participant