continue-revolution / sd-webui-animatediff

AnimateDiff for AUTOMATIC1111 Stable Diffusion WebUI
Other
3.11k stars 258 forks source link

Make supported_animation_formats #424

Closed light-and-ray closed 9 months ago

light-and-ray commented 9 months ago

Expected behavior

animatediff_ui contains variable:

supported_save_formats = ["GIF", "MP4", "WEBP", "WEBM", "PNG", "TXT"]

But _check function has its own list with no "TXT" element

    def _check(self):
        assert (
            self.video_length >= 0 and self.fps > 0
        ), "Video length and FPS should be positive."
        assert not set(["GIF", "MP4", "PNG", "WEBP", "WEBM"]).isdisjoint(
            self.format
        ), "At least one saving format should be selected."

In futher updates of supported formats if should be fixed. E.g

supported_animation_formats =  ["GIF", "MP4", "WEBP", "WEBM", "PNG", "TXT"]
supported_save_formats = supported_animation_format + ["TXT"]
continue-revolution commented 9 months ago

finished in #425