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

Error #1

Open
LiStopaD45 opened this issue Apr 5, 2024 · 5 comments
Open

Error #1

LiStopaD45 opened this issue Apr 5, 2024 · 5 comments
Labels
question Further information is requested

Comments

@LiStopaD45
Copy link

Thanks for your work. I wanted to try your work, but I get an error.

D:\WriterCSharper\handwritten-writer-identification-main>python src/main.py
Traceback (most recent call last):
  File "D:\WriterCSharper\handwritten-writer-identification-main\src\main.py", line 25, in <module>
    res,time = pipeline.pipe(feature='cslbcop', clf='svm',_verbose=VERBOSE, _mode=MODE, test_folder=test_folder)
  File "D:\WriterCSharper\handwritten-writer-identification-main\src\pipeline.py", line 139, in pipe
    X_tune,y_tune = step_1(train_images,_verbose, feat=feature)
  File "D:\WriterCSharper\handwritten-writer-identification-main\src\pipeline.py", line 56, in step_1
    list_images = preprocessing.preprocess(image)
  File "D:\WriterCSharper\handwritten-writer-identification-main\src\preprocessing.py", line 14, in preprocess
    xy_coord_lines = get_lines_coord(thresh)
  File "D:\WriterCSharper\handwritten-writer-identification-main\src\preprocessing.py", line 37, in get_lines_coord
    y_start = lines_indexes[ np.argmax(lines_indexes > (lines_indexes[0]+150) ) ]
IndexError: index 0 is out of bounds for axis 0 with size 0

How can I fix this?

@muhammad-sayed-mahdy muhammad-sayed-mahdy added the question Further information is requested label Apr 6, 2024
@muhammad-sayed-mahdy
Copy link
Owner

can you share what's in your data folder ?

@LiStopaD45
Copy link
Author

image

image

image

@muhammad-sayed-mahdy
Copy link
Owner

I'm unable to reproduce the error, can you share the data folder as ZIP file

@LiStopaD45
Copy link
Author

I am grateful to you for your prompt participation in solving my problem.
I made an archive of the data folder.
I'm using Windows 10 x64.
I'm starting the journey of working with python on windows, maybe I'm missing something.

data.zip

@fraciccio2
Copy link

I also encountered the same error, by any chance were you able to resolve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants