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

image resize issue in training.py #27

Open
tykell opened this issue Mar 2, 2019 · 1 comment
Open

image resize issue in training.py #27

tykell opened this issue Mar 2, 2019 · 1 comment

Comments

@tykell
Copy link

tykell commented Mar 2, 2019

img = cv2.resize(img,(self.img_w, self.img_h),None)
cv2.error: OpenCV(3.4.4) /io/opencv/modules/imgproc/src/resize.cpp:3784: error: (-215:Assertion failed) !ssize.empty() in function 'resize'

I keep getting the above error inspite of resizing my images to 128x64 and I am not able to train the model because of this.

@quan7794
Copy link

quan7794 commented Mar 5, 2019

You get this error because image have problem. Please check a path to your image. In Windows,character like "/" must be convert to "//". Ex: "./DB/train/" => ".//DB//train//".

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

2 participants