Open prajwalsingh opened 5 days ago
Thank you so much for your dedicated efforts. Honestly, I forgot to release the multi-prompt version of FIFO in this public repository, but you have already succeeded! I will incorporate your changes into my repository within a week.
@jjihwan Thank you.
Thank you for making code publicly available.
Here are the fix in the code for multi-prompt video generation:
Add the following line in the argparse section
Add the following code in main function
if args.output_dir is None: output_path = output_dir+"/fifo" else: output_path = output_dir+f"/{prompt[:100]}"
if args.use_mp4 and not args.multiprompt: imageio.mimsave(output_path+".mp4", video_frames[-args.new_video_length:], fps=args.output_fps) elif not args.multiprompt: imageio.mimsave(output_path+".gif", video_frames[-args.new_video_length:], duration=int(1000/args.output_fps))
if args.use_mp4 and args.multiprompt: imageio.mimsave(output_path+".mp4", video_frames[(args.num_inference_steps-args.video_length):], fps=args.output_fps) elif args.multiprompt: imageio.mimsave(output_path+".gif", video_frames[(args.num_inference_steps-args.video_length):], duration=int(1000/args.output_fps))
In the funcs.py file, replace the fifo_ddim_sampling_multiprompts function with following
The above modifications helps in generating multi-prompt videos as shown in the paper.