Skip to content

Commit

Permalink
added assests and sample outputs for README
Browse files Browse the repository at this point in the history
- cleanup remove `train.py` file
- scripts were added
- Makefile:: added `deployment cmd`
  • Loading branch information
Muthukamalan committed Nov 25, 2024
1 parent 8c7ebe2 commit fece3f1
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pull: ## pulling data from s3
train: ## train mode to check
HYDRA_FULL_ERROR=1 python src/train.py
echo "pushing scripted model to s3"
aws s3 mv samples/checkpoints/mambaout.pt s3://mhema-dog-breeds-bucket/models/
# aws s3 mv samples/checkpoints/mambaout.pt s3://mhema-dog-breeds-bucket/models/


test: ## pytest and code-cov
Expand Down Expand Up @@ -81,3 +81,8 @@ format: ## Run pre-commit hooks
sync: ## Merge changes from main branch to your current branch
git pull
git pull origin main



deploy: ## deploy app to huggingface
cd gradio/ && gradio deploy
Binary file added assets/test_confusion_matrix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/train_confusion_matrix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/val_confusion_matrix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added samples/outputs/guess1_prediction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added samples/outputs/guess2_prediction.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions scripts/schedule.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# Schedule execution of many runs
# Run from root folder with: bash scripts/schedule.sh

python src/train.py trainer.max_epochs=5 logger=csv

python src/train.py trainer.max_epochs=10 logger=csv
dvc pull
python src/train.py experiment=hparams logger=csv
python src/eval.py
python src/inference.py --input_folder samples/inputs/ --output_folder samples/outputs/ --ckpt_path samples/checkpoints/epoch_019.ckpt
Empty file removed train.py
Empty file.

0 comments on commit fece3f1

Please sign in to comment.