-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch over arguments and defaults to use PortableRunner in emulation of
Dataflow runner, using our Docker image. Added Dockerfile and .dockerfileignore to Manifest.in
- Loading branch information
1 parent
2c3d4fd
commit 4225ade
Showing
9 changed files
with
47 additions
and
23 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,8 @@ | ||
.git | ||
.tox | ||
**/.mypy_cache | ||
**/.pytest_cache | ||
**/__pycache__ | ||
**/*.wav | ||
**/saved_models | ||
**/basic-pitch/saved_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM apache/beam_python3.10_sdk:2.51.0 | ||
|
||
RUN --mount=type=cache,target=/var/cache/apt \ | ||
apt-get update \ | ||
&& apt-get install --no-install-recommends -y --fix-missing \ | ||
sox \ | ||
libsndfile1 \ | ||
libsox-fmt-all \ | ||
ffmpeg \ | ||
libhdf5-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY . /basic-pitch | ||
WORKDIR basic-pitch | ||
RUN --mount=type=cache,target=/root/.cache \ | ||
pip3 install --upgrade pip && \ | ||
pip3 install --upgrade setuptools wheel && \ | ||
pip3 install -e '.[train]' | ||
|
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,5 +1,6 @@ | ||
include *.txt tox.ini *.rst *.md LICENSE | ||
include catalog-info.yaml | ||
include Dockerfile .dockerignore | ||
recursive-include tests *.py *.wav *.npz *.jams *.zip | ||
recursive-include basic_pitch *.py | ||
recursive-include basic_pitch/saved_models *.index *.pb variables.data* *.mlmodel *.json *.onnx *.tflite *.bin |
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 +0,0 @@ | ||
DOWNLOAD = True | ||
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
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