Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's only generating the first frame of a video, and then returning an error? #106

Open
KarmaMole opened this issue Nov 2, 2024 · 1 comment

Comments

@KarmaMole
Copy link

The masking process works and it generates all the mask frames for my video (8 seconds at 25 fps), but then it generates the first image of the new video and stops with an error message:

inpainting fragment 1 / 1
Aspect ratio has been corrected from 512x512 to 384x680
Use cn inpaint instead of sd inpaint
*** object of type 'NoneType' has no len() ***
Traceback (most recent call last):
File "C:\stable-diffusion-webui\extensions\sd-webui-replacer\replacer\video_animatediff.py", line 165, in animatediffGenerate
processed = processFragment(fragmentPath, initImage, gArgs)
File "C:\stable-diffusion-webui\extensions\sd-webui-replacer\replacer\video_animatediff.py", line 26, in processFragment
processed, _ = inpaint(initImage, gArgs)
File "C:\stable-diffusion-webui\extensions\sd-webui-replacer\replacer\inpaint.py", line 122, in inpaint
processed = process_images(p)
File "C:\stable-diffusion-webui\modules\processing.py", line 847, in process_images
res = process_images_inner(p)
File "C:\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 56, in processing_process_images_hijack
cn_is_batch, batches, output_dir, input_file_names = get_cn_batches(p)
File "C:\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 210, in get_cn_batches
cn_batch_size = min(len(getattr(unit, 'batch_images', []))
File "C:\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 210, in
cn_batch_size = min(len(getattr(unit, 'batch_images', []))
TypeError: object of type 'NoneType' has no len()

Any help much appreciated! 
@light-and-ray
Copy link
Owner

Hello. Which versions you use:

  • a1111 webui
  • controlnet
  • animatediff
  • replacer

Also can you provide more information. Because I don't have this error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants