deforum-stable-diffusion icon indicating copy to clipboard operation
deforum-stable-diffusion copied to clipboard

Max_frame error for Animation

Open gigius opened this issue 2 years ago • 1 comments

Hello everyone. I have a problem with version 0.7. I use it in colab. If I enter a value greater than 720 as max_frame I get error when I start the "load_setting" function. (only for Animation)

I get this error:

`TypeError Traceback (most recent call last) in 153 # dispatch to appropriate renderer 154 if anim_args.animation_mode == '2D' or anim_args.animation_mode == '3D': --> 155 render_animation(args, anim_args, animation_prompts, root) 156 elif anim_args.animation_mode == 'Video Input': 157 render_input_video(args, anim_args, animation_prompts, root)

5 frames /usr/local/lib/python3.8/dist-packages/numexpr/necompiler.py in stringToExpression(s, types, context) 291 ex = expressions.ConstantNode(ex, expressions.getKind(ex)) 292 elif not isinstance(ex, expressions.ExpressionNode): --> 293 raise TypeError("unsupported expression type: %s" % type(ex)) 294 finally: 295 expressions._context.set_new_context(old_ctx)

TypeError: unsupported expression type: <class `'tuple'>``

gigius avatar Feb 07 '23 11:02 gigius

Hey friend, looks like your settings aren't formatted correctly. Please check your animation settings and try again. If it still fails, post your settings file in the Deforum Discord so that we can analyze what exactly is going wrong. Also, make sure that if you have max frames at 720, you don't have any keyframe settings exceeding that. Hope this helps!

AIManifest avatar Feb 08 '23 13:02 AIManifest