Error running Circular Interpolation
nuclearsugar opened this issue · comments
I'm seeing an error when running the Circular Interpolation portion of the generate.py script. Check out the error pasted below.
I don't believe that I'm passing any illegal values or character into the attributes. Am I missing something simple or is it a bug?
Here is a Google Colab notebook showcasing the issue (logs included). Included at the bottom of the notebook is a proof-of-concept test using just the required attributes, and then also a more realistic use case scenario. Both return the same error.
https://colab.research.google.com/drive/1VADM8w2b9fSnO_25axSJB44hMY8jnCB2?usp=sharing
Traceback (most recent call last):
File "generate.py", line 743, in <module>
main() # pylint: disable=no-value-for-parameter
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "generate.py", line 704, in circular_video
videoclip = moviepy.editor.VideoClip(make_frame, duration=duration_sec)
File "/usr/local/lib/python3.7/dist-packages/moviepy/video/VideoClip.py", line 86, in __init__
self.size = self.get_frame(0).shape[:2][::-1]
File "<decorator-gen-10>", line 2, in get_frame
File "/usr/local/lib/python3.7/dist-packages/moviepy/decorators.py", line 89, in wrapper
return f(*new_a, **new_kw)
File "/usr/local/lib/python3.7/dist-packages/moviepy/Clip.py", line 94, in get_frame
return self.make_frame(t)
File "generate.py", line 689, in make_frame
dlatents = gen_utils.z_to_dlatent(G, latents, label, truncation_psi=1.0) # Get the pure dlatent
TypeError: z_to_dlatent() got an unexpected keyword argument 'truncation_psi'
Hey! Sorry for the late reply. 60f4bdc should fix the error, so you should do a git pull
. Let me know if any other error shows up or this one somehow persists!
Thanks for the fix! Works great.