-
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.
gwellianau ar gyfer 22.06/CV9 improvements
- Loading branch information
1 parent
513be4f
commit a286b97
Showing
20 changed files
with
358 additions
and
311 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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
train/models | ||
train/homedir | ||
train/logs | ||
train/data | ||
*pycache* | ||
*.json | ||
*.pid | ||
*.log | ||
*.lock | ||
gh |
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,54 @@ | ||
FROM ubuntu:20.04 | ||
MAINTAINER Uned Technolegau Iaith, Prifysgol Bangor University, Language Technologies Unit | ||
|
||
LABEL maintainer="techiaith" | ||
LABEL repository="wav2vec2-xlsr-ft-cy" | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Europe/London | ||
|
||
RUN apt update -q \ | ||
&& apt install -y -qq tzdata bash build-essential git curl wget software-properties-common \ | ||
vim ca-certificates libffi-dev libssl-dev libsndfile1 libbz2-dev liblzma-dev locales \ | ||
libboost-all-dev libboost-tools-dev libboost-thread-dev cmake \ | ||
python python3 python3-pip python3-setuptools python3-dev curl zip zlib1g-dev vim \ | ||
ffmpeg sox alsa-utils \ | ||
&& python3 -m pip install --upgrade pip | ||
|
||
|
||
# gosod YouTube downloader | ||
RUN wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl \ | ||
&& chmod a+rx /usr/local/bin/youtube-dl | ||
|
||
# | ||
ARG MODEL_VERSION | ||
ARG WAV2VEC2_MODEL_NAME | ||
|
||
# | ||
ENV MODEL_VERSION=${MODEL_VERSION} | ||
ENV WAV2VEC2_MODEL_NAME=${WAV2VEC2_MODEL_NAME} | ||
|
||
# Set the locale | ||
RUN locale-gen cy_GB.UTF-8 | ||
ENV LANG cy_GB.UTF-8 | ||
ENV LANGUAGE cy_GB:en | ||
ENV LC_ALL cy_GB.UTF-8 | ||
|
||
# Install local Python files and dependencies.. | ||
RUN mkdir -p /wav2vec2 | ||
|
||
WORKDIR /wav2vec2 | ||
|
||
COPY python/requirements.txt /wav2vec2/ | ||
RUN pip3 install -r requirements.txt | ||
|
||
ENV PATH="${PATH}:/wav2vec2" | ||
ENV PYTHONPATH "${PYTHONPATH}:/wav2vec2" | ||
|
||
# install ctc-decode | ||
RUN git clone --recursive https://github.com/parlance/ctcdecode.git /tmp/ctcdecode \ | ||
&& cd /tmp/ctcdecode && pip3 install . | ||
|
||
COPY python /wav2vec2/ | ||
COPY speech.wav /wav2vec2/ | ||
|
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,15 @@ | ||
FROM nvidia/cuda:11.4.0-cudnn8-devel-ubuntu20.04 | ||
|
||
LABEL maintainer="techiaith" | ||
LABEL repository="wav2vec2-xlsr-ft-cy" | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Europe/London | ||
|
||
RUN apt update -q \ | ||
&& apt install -y -qq tzdata bash build-essential git curl wget software-properties-common \ | ||
vim ca-certificates libffi-dev libssl-dev libsndfile1 libbz2-dev liblzma-dev locales \ | ||
libboost-all-dev libboost-tools-dev libboost-thread-dev cmake \ | ||
python python3 python3-pip python3-setuptools python3-dev curl zip zlib1g-dev vim \ | ||
ffmpeg sox alsa-utils \ | ||
&& python3 -m pip install --upgrade pip |
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 was deleted.
Oops, something went wrong.
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.