nerdyrodent / VQGAN-CLIP

Just playing with getting VQGAN+CLIP running locally, rather than having to use colab.
Other
2.61k stars 427 forks source link

Saving each iteration to create a video #3

Closed shaolinseed closed 3 years ago

shaolinseed commented 3 years ago

Is there a way I can save each image along the process rather than just the final output? Then using ffmpeg to combine the images into an animation? I've got it working on my PC! just interested in that feature as I can't get 900*900 on collab.. Thanks!

nerdyrodent commented 3 years ago

There is indeed. Make a directory called "steps" and uncomment what is currently line 395: #imageio.imwrite('./steps/' + str(i) + '.jpg', np.array(img))

nerdyrodent commented 3 years ago

The current version now has the -vid option. E.g. python generate.py -p "A steps video" -vid True

shaolinseed commented 3 years ago

The current version now has the -vid option. E.g. python generate.py -p "A steps video" -vid True

great thanks alot man !