Skip to content

RuntimeError: Error while calling cudaOccupancyMaxPotentialBlockSize(&num_blocks,&num_threads,K) #1641

@999-saxena

Description

@999-saxena

Hi,
I'm trying to run face recognition for a small project that im making on google colab but I'm facing this error.

!pip install face-recognition
!pip install opencv-python-headless
import face_recognition

from google.colab import files
video_file = files.upload()
target_face = files.upload()

import cv2
import face_recognition
import io
from PIL import Image
import numpy as np

ref_img = next(iter(target_face))
ref_image = face_recognition.load_image_file(io.BytesIO(target_face[ref_img]))
ref_encoding = face_recognition.face_encodings(ref_image)[0]

Error:

RuntimeError: Error while calling cudaOccupancyMaxPotentialBlockSize(&num_blocks,&num_threads,K) in file /tmp/.tmpC1GBSI/sdists-v9/pypi/dlib/19.24.6/gUXudNfXDEAetBJpufeEr/src/dlib/cuda/cuda_utils.h:186. code: 222, reason: the provided PTX was compiled with an unsupported toolchain.

any idea how to overcome this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions