Skip to content

Commit

Permalink
test debug
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Sep 2, 2024
1 parent 087ae76 commit dca0950
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,13 @@ jobs:
id: train
run: |
az extension add -n ml
echo "here"
MODEL_VERSION=$(python bin/retrieve_output.py ./train/train_output.txt model_version)
echo "here1"
echo "MODEL_VERSION=$MODEL_VERSION" >> $GITHUB_OUTPUT
INTEGRATION_DATASET_VERSION=$(python bin/retrieve_output.py ./train/train_output.txt integration_dataset_version)
echo "here2"
echo "INTEGRATION_DATASET_VERSION=$INTEGRATION_DATASET_VERSION" >> $GITHUB_OUTPUT
EXPERIMENT_ID=$(python bin/retrieve_output.py ./train/train_output.txt experiment_id)
echo "EXPERIMENT_ID=$EXPERIMENT_ID" >> $GITHUB_OUTPUT
Expand All @@ -197,7 +201,9 @@ jobs:
rm -r model
mkdir model
cd model
echo "here3"
az ml model download --name cats-dogs-others --version $MODEL_VERSION --resource-group ${{ env.AZURE_RESOURCE_GROUP_NAME }} --workspace-name ${{ env.AZURE_ML_WORKSPACE_NAME }}
echo "here4"
# find files recursively and copy them to the current directory root
find ./ -name '*.keras' -exec cp "{}" ./ \;
find ./ -name '*.json' -exec cp "{}" ./ \;
Expand Down
2 changes: 1 addition & 1 deletion train/train/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


batch_size = 64
epochs = 20
epochs = 2
params = {
"batch_size": batch_size,
"epochs": epochs,
Expand Down

0 comments on commit dca0950

Please sign in to comment.