This guide provides step-by-step instructions to set up the environment for training the waste classification model.
Google Drive link 🔗 Dataset
Extract the folder named "datasets" to the same level as modelT.ipynb
The Dataset is already preprossed You dont have to Run the preprocessing code again!!.
First, install Python 3.12.3 from the official website:
🔗 Download Python
After installation, verify the installation by running:
python --versionDownload and install Miniconda from the official website:
🔗 Download Miniconda
After installation, verify the installation by running:
conda --versionInside Conda Command Prompt, run:
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0This installs CUDA 11.2 and cuDNN 8.1.0, which are required for TensorFlow GPU support.
Navigate to your project folder and create a new folder named envs inside it.
Then, create a Conda environment:
conda create --name waste_sorting python=3.9 -yActivate the environment:
conda activate waste_sortingInstall TensorFlow 2.10 (latest version that supports GPU acceleration):
python -m pip install "tensorflow<2.11"Verify if GPU is being used:
python -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"Install all necessary libraries:
pip install numpy==1.23.5
pip install matplotlib
pip install keras-efficientnet
pip install keras opencv-python pandas scikit-learn tqdm pillowTo list all installed packages inside the Conda environment:
conda listThis should display all the installed dependencies.
You are now ready to proceed with the project. 🚀