Skip to content

Error: Couldnt read the file 284_letterbox1024. Make sure only images are present in the folder  #27

Description

@luoyexk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions