Closed MoonRide303 closed 1 year ago
I looked at the code, and found the hint how to disable video generation:
save_video = video_fps != 0
so changing FPS to 0 is the usable workaround for this problem.
Hi, yes, the "Save results as video" checkbox was removed while I was cleaning up the ui because it started to get too cluttered, but I completely forgot to add that to the README. Sorry. :(
Even if the video generation failed, you should have copies of the images in (default) ../outputs/txt2img-images/shifts/
I'm still a bit curious about what went wrong, I haven't seen that error and not sure I know how to reproduce it. I'd love to fix it (if possible).
I don't remember the details, but it was pretty simple use case - I was using this extension to generate intermediate weights for negative embedding. It could be something like "(bad-image-v2-39000:0.8~1)", more or less.
From the code point of view I've included the full stack trace. Maybe you could catch the exception, and handle it in a way that would keep the static images in the UI, even in case video generation didn't work?
I added some error handling around the part that generates the video. Here: 4d90176830f7823d2a5fec0b3722f39f40fcc9fd
Still not sure what happen, it looks like it never got a value for "fps", but that should only be able to happen if the value is set to "nothing" and still larger than 0. ...either way. It should handle an empty value as if it was 0 now, and log an error instead of crashing if it can't create a video file. Doesn't really "solve" the issue, but handles it gracefully.
I just needed to see images for interpolated weight values in prompts (main and only use case for me), but it seems this extenesion enforces video generation, and fails at it - it was really disappointing to see all the images during rendering, and then, after multiple minutes of waiting, all gone (not even saved...), with that error message:
Please at least allow disabling video generation (like on the screenshot in documentation, where "Save results as video" option is available, and can be turned off).