You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am more familiar with java and c# but while debugging an error in the api endpoint,
/represent or http://localhost:5000/represent
it seems that if you supply a regular image, it errors out with,
{
"error": "Exception while representing: conversion from RGB to BGR not supported"
}
looking into it, it seems the file 'preprocessing.py', function 'def load_image(img: Union[str, np.ndarray]) -> Tuple[np.ndarray, str]:'
if img.startswith("http"):
return (
np.array(Image.open(requests.get(img, stream=True, timeout=60).raw).convert("BGR")),
# return url as image name
img,
)
instead of
if img.startswith("http"):
return (
np.array(Image.open(requests.get(img, stream=True, timeout=60).raw)),
# return url as image name
img,
)
as if it's expecting an opencv compatible image or mat? even if the detector_backend is set to 'retinaface'
i am more familiar with java and c# but while debugging an error in the api endpoint,
/represent or http://localhost:5000/represent
it seems that if you supply a regular image, it errors out with,
looking into it, it seems the file 'preprocessing.py', function 'def load_image(img: Union[str, np.ndarray]) -> Tuple[np.ndarray, str]:'
instead of
as if it's expecting an opencv compatible image or mat? even if the detector_backend is set to 'retinaface'
http request body tried,
url is valid and accessible.
The text was updated successfully, but these errors were encountered: