Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pycqa/isort
rev: 5.8.0
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
Expand Down
8 changes: 4 additions & 4 deletions environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ channels:
- conda-forge
dependencies:
- python=3.9
- gwpy=2.1.0
- astropy<5.0.0
- python-ldas-tools-framecpp
- gwpy=2.1.5
- astropy
- python-ldas-tools-framecpp<3.0.0
- python-nds2-client
- pytorch
- pytorch=1.13.1
- torchvision
- cudatoolkit=11.3
195 changes: 128 additions & 67 deletions libs/trainer/poetry.lock

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion libs/trainer/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ packages = [

[tool.poetry.dependencies]
python = "^3.8,<3.10"
torch = "^1.0"
torch = {version = "^1.13", source = "torch"}

# include signal processing libraries
# for preprocessing steps
Expand All @@ -26,6 +26,12 @@ torch = "^1.0"

"hermes.typeo" = "^0.1.5"

[[tool.poetry.source]]
name = "torch"
url = "https://download.pytorch.org/whl/cu116"
secondary = true
default = false

[tool.poetry.dev-dependencies]
pytest = "^6.2"

Expand Down
4 changes: 2 additions & 2 deletions projects/sandbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Compute and plot the ASDs of the raw and cleaned frames, as well as the ratio be
## Running
If you installed the `pinto` command line utility described in the root [README](../../README.md), you can build each component's environment individually by running `pinto build <path to component>`. Consult each component's documentation for the commands and options they expose.

Running the workflow end-to-end requires exporting three environment variables (with apologies for the inconsistent naming conventions for now)
Running the workflow end-to-end requires exporting three environment variables

```console
PROJECT_DIRECTORY="..." # the directory to write workflow outputs to
PROJECT_DIR="..." # the directory to write workflow outputs to
DATA_DIR="..." # the path to a directory of 1s .gwf witness/strain files
MODEL_REPOSITORY="..." # the directory to serve models from
```
Expand Down
364 changes: 253 additions & 111 deletions projects/sandbox/analyze/poetry.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion projects/sandbox/export/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ def export(
logging.info(f"Creating model and loading weights from {weights}")
nn = architecture(len(channels) - 1)
nn = PrePostDeepClean(nn)
nn.load_state_dict(torch.load(weights))
state_dict = torch.load(weights, map_location="cpu")
nn.load_state_dict(state_dict)
nn.eval()

# instantiate a model repository at the
Expand Down
Loading