fix cogvideox autoencoder decode by Xiang-cd · Pull Request #9569 · huggingface/diffusers (original) (raw)
could we have caught it with some tests? Or not really? In the former case, let's also add a test?
Previously, we did not need to decode 1-frame video so this was not required, so testing for this case was not necessary. For Image-to-Video training, however, we need to be able to encode single frames (which is already supported). I think having decode work for a single frame is good to have too, since it could help with debugging.