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

some questions about progress-cacd #32

Open
Ayueer opened this issue May 5, 2021 · 3 comments
Open

some questions about progress-cacd #32

Ayueer opened this issue May 5, 2021 · 3 comments

Comments

@Ayueer
Copy link

Ayueer commented May 5, 2021

I have download the cacd dataset from the provided site. but I run the progress-cacd ,there comes some problems,
TypeError: call(): incompatible function arguments. The following argument types are supported:
1. (self: _dlib_pybind11.fhog_object_detector, image: array, upsample_num_times: int=0) -> _dlib_pybind11.rectangles
Invoked with: <_dlib_pybind11.fhog_object_detector object at 0x00000214FD970930>, None, 1。
I don't know how to fix it, please help me.

@rasbt
Copy link
Member

rasbt commented May 5, 2021

Hm that's weird. Haven't seen this before. I just ran the script and it seems to work fine for me. The software versions were

# DLIB: 19.22.0
# NumPy: 1.20.2
# OpenCV: 4.5.2

I added these to the script so when you run it it should show the current versions you have installed:
https://github.com/Raschka-research-group/coral-cnn/blob/master/datasets/image-preprocessing-code/preprocess-cacd.py

If there is a mismatch, maybe try to update and see if that solves the issue.

@Ayueer
Copy link
Author

Ayueer commented May 6, 2021

Thanks for reply !

@fefei69
Copy link

fefei69 commented Oct 20, 2021

I think the reason is that some names are not English so the function can not read the image
use :

stream = open(path, "rb")
bytes = bytearray(stream.read())
numpyarray = np.asarray(bytes, dtype=np.uint8)
img = cv2.imdecode(numpyarray, cv2.IMREAD_UNCHANGED)

instead of :
img = cv2.imread(os.path.join(orig_path, picture_name))

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

3 participants