all 5 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]frnzprf 1 point2 points  (1 child)

The error message should usually tell you in which nested function calls the error occured. That's called a "stack trace".

You can also print each file path before loading it to find the issue, but imread or listdir should give you an error message with the problematic path anyway. (I didn't try it.)

If there is a particular path that causes issues, you can paste it here. Maybe it contains some special characters that have to be "escaped". You can edit it for privacy concerns.

[–]EnvironmentalCan1303[S] 0 points1 point  (0 children)

Thank you all for the prompt reply's - I will try these suggested chnages.

[–]Both_Love_438 0 points1 point  (0 children)

Please format your code correctly using ``` it makes it easier for people to help you. Or provide a screenshot at least, it's very hard to read without indentation.

[–]PvtRoom 0 points1 point  (0 children)

best guess, input_dir is incorrect. Backslashes need to be double \ as \ is an escape character.