Skip to content

I am getting an error in the Train-Image-Classification-Model block #1

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

Open
dsnsabari opened this issue Mar 18, 2024 · 1 comment
Open

Comments

@dsnsabari
Copy link

dsnsabari commented Mar 18, 2024

@siddgood @aws-dash @pooyavahidi pooyavahidi I used the scripts for data preprocessing and evaluation. I just changed the S3 bucket name to binary image data. It was updated in the code. The files generated on the S3 bucket are empty. I followed the steps mentioned in the readme and created the custom folder, uploading the pizza/non-pizza images separately in the folder.

preprocessing.py

    DATASET_NAME="binaryimagedata"
    BASE_DIR="/opt/ml/processing/input/data"
    IM2REC_PATH="/opt/ml/processing/input/code/im2rec.py"

evalution.py

    ###### 2. Loading and preparing test .rec file ######
    logger.debug("Reading test data.")
    
    DATASET_NAME="binaryimagedata"
    test_path = f"/opt/ml/processing/test/{DATASET_NAME}_test.rec"
    

ClientError: ClientError: Unable to start training. Empty .rec file in train channel., exit code: 2

@Daveiano
Copy link

I am getting the same issue when using the notebook. The generated .rec files are empty.

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