-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from owczr/develop
Add distributed strategy for training
- Loading branch information
Showing
9 changed files
with
133 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
python -m scripts.azure.machine_learning.run_job \ | ||
--model mobilenet \ | ||
--optimizer adam \ | ||
--loss binary_crossentropy \ | ||
--epochs 2 \ | ||
--batch_size 128 \ | ||
--distributed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
OPTIMIZER="adam" | ||
LOSS="binary_crossentropy" | ||
EPOCHS=5 | ||
BATCH_SIZE=128 | ||
|
||
for model in mobilenet nasnet efficientnet efficientnetv2 densenet inceptionnet xception resnet resnetv2 convnext inceptionresnet vgg; | ||
do | ||
python -m scripts.azure.machine_learning.run_job \ | ||
--model "$model" \ | ||
--optimizer "$OPTIMIZER" \ | ||
--loss "$LOSS" \ | ||
--epochs "$EPOCHS" \ | ||
--batch_size "$BATCH_SIZE" \ | ||
--distributed | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
scripts/azure/machine_learning/train_distributed_models.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
OPTIMIZER="adam" | ||
LOSS="binary_crossentropy" | ||
EPOCHS=100 | ||
BATCH_SIZE=128 | ||
|
||
for model in mobilenet nasnet efficientnet efficientnetv2 densenet inceptionnet xception resnet resnetv2 convnext inceptionresnet vgg; | ||
do | ||
python -m scripts.azure.machine_learning.run_job \ | ||
--model "$model" \ | ||
--optimizer "$OPTIMIZER" \ | ||
--loss "$LOSS" \ | ||
--epochs "$EPOCHS" \ | ||
--batch_size "$BATCH_SIZE" \ | ||
--distributed | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters