-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gwelliannau/improvements & Common Voice 8
- Loading branch information
1 parent
4f7656e
commit 513be4f
Showing
29 changed files
with
766 additions
and
215 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
models | ||
homedir |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
models | ||
recordings | ||
recordings | ||
data |
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
data | ||
models | ||
recordings | ||
recordings |
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 |
---|---|---|
@@ -1,32 +1,54 @@ | ||
default: build | ||
|
||
$(eval DEVICE = cpu) | ||
#$(eval DEVICE = gpu) | ||
|
||
config: | ||
# to use a local model, provide the full /models/.... path for WAV2VEC2_MODEL_NAME and | ||
# leave the MODEL_VERSION blank empty string. | ||
$(eval WAV2VEC2_MODEL_NAME = techiaith/wav2vec2-xlsr-ft-cy) | ||
$(eval MODEL_VERSION = 21.08) | ||
mkdir -p ${PWD}/data/ | ||
|
||
|
||
build: config | ||
docker build --rm -t techiaith/wav2vec2-xlsr-ft-cy \ | ||
docker build --rm -t techiaith/wav2vec2-xlsr-ft-cy-${USER} \ | ||
--build-arg WAV2VEC2_MODEL_NAME=${WAV2VEC2_MODEL_NAME} \ | ||
--build-arg MODEL_VERSION=${MODEL_VERSION} \ | ||
. | ||
|
||
run: config run-${DEVICE} | ||
|
||
run: config | ||
mkdir -p ${PWD}/recordings/ | ||
docker run --name techiaith-wav2vec2-xlsr-ft-cy \ | ||
run-gpu: | ||
docker run --gpus all --name techiaith-wav2vec2-xlsr-ft-cy-${USER} \ | ||
--restart=always \ | ||
-it \ | ||
-v ${PWD}/models/:/models \ | ||
-v ${PWD}/recordings/:/recordings \ | ||
techiaith/wav2vec2-xlsr-ft-cy | ||
-v ${PWD}/data/:/data \ | ||
techiaith/wav2vec2-xlsr-ft-cy-${USER} | ||
|
||
run-cpu: | ||
docker run --name techiaith-wav2vec2-xlsr-ft-cy-${USER} \ | ||
--restart=always \ | ||
-it \ | ||
-v ${PWD}/models/:/models \ | ||
-v ${PWD}/data/:/data \ | ||
techiaith/wav2vec2-xlsr-ft-cy-${USER} | ||
|
||
|
||
fetch-test: | ||
if [ ! -d "data/corpws-profi-adnabod-lleferydd" ]; then \ | ||
mkdir -p data; \ | ||
cd data && git clone -b fersiwn2 --single-branch https://git.techiaith.bangor.ac.uk/data-porth-technolegau-iaith/corpws-profi-adnabod-lleferydd.git; \ | ||
fi | ||
|
||
stop: config | ||
-docker stop techiaith-wav2vec2-xlsr-ft-cy | ||
-docker rm techiaith-wav2vec2-xlsr-ft-cy | ||
-docker stop techiaith-wav2vec2-xlsr-ft-cy-${USER} | ||
-docker rm techiaith-wav2vec2-xlsr-ft-cy-${USER} | ||
|
||
|
||
clean: config stop | ||
-docker rmi techiaith/wav2vec2-xlsr-ft-cy | ||
-docker rmi techiaith/wav2vec2-xlsr-ft-cy-${USER} | ||
|
||
purge: clean | ||
sudo rm -rf models |
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
Oops, something went wrong.