Skip to content

Commit

Permalink
fix(labels): init labels
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Jan 20, 2024
1 parent 4d9ef04 commit 230634c
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions train/label_split_data/.amlignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
*.ipynb
*.lock
*.toml
/dataset-cats-dogs-others-labels
1 change: 1 addition & 0 deletions train/label_split_data/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.ipynb
*.lock
*.toml
/dataset-cats-dogs-others-labels
1 change: 1 addition & 0 deletions train/label_split_data/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
output_images/
output_integration/
dataset-cats-dogs-others-labels/
11 changes: 11 additions & 0 deletions train/label_split_data/dataset-cats-dogs-others-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
$schema: https://azuremlschemas.azureedge.net/latest/data.schema.json

# Supported paths include:
# local: ./<path>
# blob: https://<account_name>.blob.core.windows.net/<container_name>/<path>
# ADLS gen2: abfss://<file_system>@<account_name>.dfs.core.windows.net/<path>/
# Datastore: azureml://datastores/<data_store_name>/paths/<path>
type: uri_folder
name: cats_dogs_others_labels
description: Cats Dogs and Others Labels
path: ./dataset-cats-dogs-others-labels
19 changes: 19 additions & 0 deletions train/label_split_data/init_dataset.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
resource_group=$1
workspace_name=$2
dataset_name=cats_dogs_others_labels
dataset_version=1

echo "Init label dataset"

RESULT=$(az ml data show --resource-group $resource_group --workspace-name $workspace_name --version $dataset_version --name $dataset_name > /dev/null 2>&1; echo $?)
if [ $RESULT -eq 0 ]; then
echo "Dataset already exist"
else
echo "Dataset not found so create it"
git clone https://github.com/guillaume-chervet/dataset-cats-dogs-others-labels
rm -rf dataset-cats-dogs-others-labels/.git
az ml data create -f dataset-cats-dogs-others-labels.yml --resource-group $resource_group --workspace-name $workspace_name

fi

echo "Init label dataset done"

0 comments on commit 230634c

Please sign in to comment.