Is there an existing issue for this?
OS
macOS
GPU
mps
VRAM
32GB
What happened?
The backend errors out and becomes unresponsive after trying to run face restoration (either GFPGAN or CodeFormer). This is with the current version installed using this fork (because mac installation is currently broken on this repo): https://github.com/damian0815/InvokeAI/tree/fix_macos_installer
Note, this does not seem to be the same error as #1451
Screenshots
Traceback (most recent call last):
File "/Users/who/Downloads/InvokeAI/ldm/generate.py", line 467, in prompt2image
results = generator.generate(
File "/Users/who/Downloads/InvokeAI/ldm/invoke/generator/base.py", line 98, in generate
image_callback(image, seed, first_seed=first_seed)
File "/Users/who/Downloads/InvokeAI/backend/invoke_ai_web_server.py", line 761, in image_done
image = self.codeformer.process(
File "/Users/who/Downloads/InvokeAI/ldm/invoke/restoration/codeformer.py", line 50, in process
face_helper.get_face_landmarks_5(resize=640, eye_dist_threshold=5)
File "/Users/who/Downloads/InvokeAI/.venv/lib/python3.10/site-packages/facexlib/utils/face_restoration_helper.py", line 139, in get_face_landmarks_5
bboxes = self.face_det.detect_faces(input_img, 0.97) * scale
File "/Users/who/Downloads/InvokeAI/.venv/lib/python3.10/site-packages/facexlib/detection/retinaface.py", line 227, in detect_faces
keep = py_cpu_nms(bounding_boxes, nms_threshold)
File "/Users/who/Downloads/InvokeAI/.venv/lib/python3.10/site-packages/facexlib/detection/retinaface_utils.py", line 41, in py_cpu_nms
keep = torchvision.ops.nms(
File "/Users/who/Downloads/InvokeAI/.venv/lib/python3.10/site-packages/torchvision/ops/boxes.py", line 40, in nms
_assert_has_ops()
File "/Users/who/Downloads/InvokeAI/.venv/lib/python3.10/site-packages/torchvision/extension.py", line 33, in _assert_has_ops
raise RuntimeError(
RuntimeError: Couldn't load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check https://github.com/pytorch/vision#installation for the compatibility matrix. Please check your PyTorch version with torch.version and your torchvision version with torchvision.version and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install.
Additional context
No response
Contact Details
No response
Is there an existing issue for this?
OS
macOS
GPU
mps
VRAM
32GB
What happened?
The backend errors out and becomes unresponsive after trying to run face restoration (either GFPGAN or CodeFormer). This is with the current version installed using this fork (because mac installation is currently broken on this repo): https://github.com/damian0815/InvokeAI/tree/fix_macos_installer
Note, this does not seem to be the same error as #1451
Screenshots
Traceback (most recent call last):
File "/Users/who/Downloads/InvokeAI/ldm/generate.py", line 467, in prompt2image
results = generator.generate(
File "/Users/who/Downloads/InvokeAI/ldm/invoke/generator/base.py", line 98, in generate
image_callback(image, seed, first_seed=first_seed)
File "/Users/who/Downloads/InvokeAI/backend/invoke_ai_web_server.py", line 761, in image_done
image = self.codeformer.process(
File "/Users/who/Downloads/InvokeAI/ldm/invoke/restoration/codeformer.py", line 50, in process
face_helper.get_face_landmarks_5(resize=640, eye_dist_threshold=5)
File "/Users/who/Downloads/InvokeAI/.venv/lib/python3.10/site-packages/facexlib/utils/face_restoration_helper.py", line 139, in get_face_landmarks_5
bboxes = self.face_det.detect_faces(input_img, 0.97) * scale
File "/Users/who/Downloads/InvokeAI/.venv/lib/python3.10/site-packages/facexlib/detection/retinaface.py", line 227, in detect_faces
keep = py_cpu_nms(bounding_boxes, nms_threshold)
File "/Users/who/Downloads/InvokeAI/.venv/lib/python3.10/site-packages/facexlib/detection/retinaface_utils.py", line 41, in py_cpu_nms
keep = torchvision.ops.nms(
File "/Users/who/Downloads/InvokeAI/.venv/lib/python3.10/site-packages/torchvision/ops/boxes.py", line 40, in nms
_assert_has_ops()
File "/Users/who/Downloads/InvokeAI/.venv/lib/python3.10/site-packages/torchvision/extension.py", line 33, in _assert_has_ops
raise RuntimeError(
RuntimeError: Couldn't load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check https://github.com/pytorch/vision#installation for the compatibility matrix. Please check your PyTorch version with torch.version and your torchvision version with torchvision.version and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install.
Additional context
No response
Contact Details
No response