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

TypeError: unsupported operand type(s) for -: 'NoneType' and 'int' #113

Open
hotdogarea opened this issue Mar 14, 2024 · 0 comments
Open

Comments

@hotdogarea
Copy link

Installed in Autumn Leaf Launcher
sd-wav2lip-uhq plug-in, but it cannot run normally, the prompt is as follows

File "H:\AI\sd-webui-aki\sd-webui-aki-v4.4\python\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "H:\AI\sd-webui-aki\sd-webui-aki-v4.4\python\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "H:\AI\sd-webui-aki\sd-webui-aki-v4.4\extensions\sd-wav2lip-uhq\scripts\ui.py", line 160, in generate
w2l.execute()
File "H:\AI\sd-webui-aki\sd-webui-aki-v4.4\extensions\sd-wav2lip-uhq\scripts\wav2lip\w2l.py", line 251, in execute
for i, (img_batch, mel_batch, frames, coords) in enumerate(tqdm(gen,
File "H:\AI\sd-webui-aki\sd-webui-aki-v4.4\python\lib\site-packages\tqdm\std.py", line 1178, in iter
for obj in iterable:
File "H:\AI\sd-webui-aki\sd-webui-aki-v4.4\extensions\sd-wav2lip-uhq\scripts\wav2lip\w2l.py", line 117, in datagen
face_det_results = self.face_detect([frames[0]])
File "H:\AI\sd-webui-aki\sd-webui-aki-v4.4\extensions\sd-wav2lip-uhq\scripts\wav2lip\w2l.py", line 75, in face_detect
predictions.extend(detector.get_detections_for_batch(np.array(images[i:i + batch_size])))
File "H:\AI\sd-webui-aki\sd-webui-aki-v4.4\extensions\sd-wav2lip-uhq\scripts\wav2lip\face_detection\api.py", line 63, in get_detections_for_batch
detected_faces = self.face_detector.detect_from_batch(images.copy())
File "H:\AI\sd-webui-aki\sd-webui-aki-v4.4\extensions\sd-wav2lip-uhq\scripts\wav2lip\face_detection\detection\sfd\sfd_detector.py", line 43, in detect_from_batch
bboxlists = batch_detect(self.face_detector, images, device=self.device)
File "H:\AI\sd-webui-aki\sd-webui-aki-v4.4\extensions\sd-wav2lip-uhq\scripts\wav2lip\face_detection\detection\sfd\detect.py", line 59, in batch_detect
imgs = imgs - np.array([104, 117, 123])
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

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

1 participant