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: Couldnt read the file 284_letterbox1024. Make sure only images are present in the folder #27

Open
luoyexk opened this issue Jan 4, 2023 · 0 comments

Comments

@luoyexk
Copy link

luoyexk commented Jan 4, 2023

I used the code in readme and got the following error

>python train.py positiveImages negativeImages trainingDataPositive trainingDataNegative 30    
positive samples: 12
negative samples: 16                                                                                 
Error: Couldnt read the file 284_letterbox1024. Make sure only images are present in the folder      
Exception: [Errno 2] No such file or directory: 'trainingDataPositive\\284_letterbox1024_LL.tiff'    
Error: Couldnt read the file 284_letterbox1024. Make sure only images are present in the folder      
Exception: [Errno 2] No such file or directory: 'trainingDataPositive\\284_letterbox1024_180_LL.tiff'
Error: Couldnt read the file 284_letterbox1024. Make sure only images are present in the folder      
...
> python test.py moirePattern3CNN_.h5 positiveImages negativeImages
...
Total Samples Loaded:  30
...
ValueError: Cannot assign value to variable ' dense_1/kernel:0': Shape mismatch. The variable shape (32, 2), and the assigned value shape (32, 1) are incompatible.

I modified the code and the error was dismissed. The "After" code is right?

Before
  1. python createTrainingData.py positiveImages negativeImages 0

  2. python train.py positiveImages negativeImages trainingDataPositive trainingDataNegative 5

  3. python test.py moirePattern3CNN_.h5 positiveImages negativeImages

After
  1. python createTrainingData.py positiveImages negativeImages 0

  2. python train.py positiveImages negativeImages trainDataPositive trainDataNegative 5

  3. python test.py moirePattern3CNN_.h5 positiveImages negativeImages

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

1 participant