This repo contains code of a classification task of different car types (ex. trucks, sedan...etc.)
You will find two branches for different models trained and tested on given datasets
data_analysis_ipynb
: notebook for data analysis with insightsdataloader.py
: has function that prepares dataloaders for the training/testprep_csv.py
: preparing csv files from datasettest.py
: testing file for datasettrain.py
: training fileTrucksDataset.py
: Dataset fileutils.py
: has some utily functionsdata_analysis.pdf
: same jupyter notebook file but in pdf
- dataset (contains train test folders)
- plots (plots drawn during training)
- saved_models (dvc files of saved models)
- trial_runs (text files of outputs of training/testing trials)
- DVC for dataset shared on a drive link, to pull data:
dvc fetch
dvc pull
- MLFLow for models, to run the MLFLow UI
- run
mlflow ui --port 8800
in command (supposedly, will be run by default inside the docker contained) - open
localhost:8800
in your browser
- run
- Docker image (to do), to run it:
- docker ...
git clone https://github.com/RadwaSK/AITask.git
cd AITask
- Move dataset into folder
dataset
(there should be dataset/train and dataset/test, and you would find the csv files cloned with the repo) - Pull docker container
docker pull radwask/aitask
- Download the attached model ResNet_0 and move it into a folder "saved_models" in the repo folder
- To run test script:
sudo docker run -v <path to repo>/AITask/dataset:/AITask/dataset -v <path to repo>/AITask/saved_models:/AITask/saved_models --gpus device=0 radwask/aitask python3 test.py -m ResNet_0 -b 4