Spaces:
Sleeping
π Dataset Directory
This directory serves as the local storage for the Kaggle Chest X-Ray (Pneumonia) Dataset.
To keep the repository lightweight and Git history clean, the raw image files are not committed to version control. Instead, the dataset is downloaded programmatically via our automated data ingestion pipeline.
π How to Download the Data
Do not manually download or extract the data. Use the provided bash script to ensure the data is formatted and placed correctly for the PyTorch training notebooks.
Prerequisites
You must have your Kaggle API Token configured. You can either set it as a Colab Secret or export it to your local terminal:
export KAGGLE_API_TOKEN="your_token_here"
Execution
From the root of the project, grant execution permissions and run the download script: Bash
chmod +x scripts/01_download_dataset.sh
./scripts/01_download_dataset.sh
π Post-Download Structure
Once the script completes, this directory will automatically populate with the following structure: Plaintext
dataset/
βββ chest_xray_data/
β βββ train/ # Training images (NORMAL & PNEUMONIA)
β βββ val/ # Validation images
β βββ test/ # Testing images
βββ README.md
β οΈ Important: Ensure that dataset/chest_xray_data/ is included in your project's .gitignore file to prevent pushing large image files to GitHub.