Giter Club home page Giter Club logo

Comments (2)

enzyme69 avatar enzyme69 commented on August 30, 2024

Maybe this error:

Error running postprocess_batch: /Users/jimmygunawan/stable-diffusion-webui/extensions/sd-webui-roop/scripts/faceswap.py
Traceback (most recent call last):
  File "/Users/jimmygunawan/stable-diffusion-webui/modules/scripts.py", line 462, in postprocess_image
    script.postprocess_image(p, pp, *script_args)
  File "/Users/jimmygunawan/stable-diffusion-webui/extensions/sd-webui-roop/scripts/faceswap.py", line 187, in postprocess_image
    result: ImageResult = swap_face(
  File "/Users/jimmygunawan/stable-diffusion-webui/extensions/sd-webui-roop/scripts/swapper.py", line 131, in swap_face
    result_image = upscale_image(result_image, upscale_options)
  File "/Users/jimmygunawan/stable-diffusion-webui/extensions/sd-webui-roop/scripts/swapper.py", line 68, in upscale_image
    numpy_image = upscale_options.face_restorer.restore(numpy_image)
  File "/Users/jimmygunawan/stable-diffusion-webui/modules/codeformer_model.py", line 96, in restore
    self.face_helper.get_face_landmarks_5(only_center_face=False, resize=640, eye_dist_threshold=5)
  File "/Users/jimmygunawan/stable-diffusion-webui/repositories/CodeFormer/facelib/utils/face_restoration_helper.py", line 151, in get_face_landmarks_5
    bboxes = self.face_det.detect_faces(input_img)
  File "/Users/jimmygunawan/stable-diffusion-webui/repositories/CodeFormer/facelib/detection/retinaface/retinaface.py", line 231, in detect_faces
    keep = py_cpu_nms(bounding_boxes, nms_threshold)
  File "/Users/jimmygunawan/stable-diffusion-webui/repositories/CodeFormer/facelib/detection/retinaface/retinaface_utils.py", line 41, in py_cpu_nms
    keep = torchvision.ops.nms(
  File "/Users/jimmygunawan/stable-diffusion-webui/venv/lib/python3.10/site-packages/torchvision/ops/boxes.py", line 40, in nms
    _assert_has_ops()
  File "/Users/jimmygunawan/stable-diffusion-webui/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.


from sd-webui-roop.

s0md3v avatar s0md3v commented on August 30, 2024

NSFW images are skipped.

If your image is SFW and its related to the error you posted, use google to figure out how to fix it. Installation and env specific problems are out of scope.

from sd-webui-roop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.