-
Notifications
You must be signed in to change notification settings - Fork 14
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 #955 from anarkiwi/ts
Build gamutRF image with bespoke torchsig libraries, for new augmenta…
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 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
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 ubuntu:22.04 as torchsig-builder | ||
WORKDIR /root | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN apt-get update && apt-get install -y --no-install-recommends build-essential ca-certificates cmake git python3-pip python3-dev && pip install -U pip | ||
# Cause torch CPU only to be installed, no cuda dependencies | ||
RUN pip install torch --extra-index-url https://download.pytorch.org/whl/cpu | ||
RUN git clone https://github.com/TorchDSP/torchsig -b v0.4.1 | ||
WORKDIR /root/torchsig | ||
RUN sed -i -E "s/torch==[0-9\.]+/torch/g" pyproject.toml | ||
RUN pip install . | ||
|
||
FROM iqtlabs/gamutrf:latest | ||
WORKDIR /root | ||
ENV DEBIAN_FRONTEND noninteractive | ||
# TODO: find a better way cherrypick just Torchsig itself, without Torch et al. Torchsig transforms have dependencies on | ||
# Torch, even though we don't need Torch for the standalone transforms we want. | ||
COPY --from=torchsig-builder /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages | ||
RUN python3 -c "from torchsig.transforms import transforms" | ||
RUN python3 -c "from gamutrf import grscan" |