Skip to content

Commit

Permalink
update model with actipy training data
Browse files Browse the repository at this point in the history
  • Loading branch information
angerhang committed Apr 16, 2024
1 parent 1696194 commit 05d7c03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def sleepnet(pretrained=True, my_device="cpu", num_classes=2, lstm_nn_size=128,
state_dict)
else:
checkpoint = 'https://github.com/OxWearables/asleep/' \
'releases/download/0.0.3/bi_sleepnet.mdl'
'releases/download/0.4.9/sleepnet_apr_16_2024.mdl'
model.load_state_dict(
torch.hub.load_state_dict_from_url(
checkpoint,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name = "asleep" # Required
#
# For a discussion on single-sourcing the version, see
# https://packaging.python.org/guides/single-sourcing-package-version/
version = "0.4.8" # Required
version = "0.4.9" # Required

# This is a one-line description or tagline of what your project does. This
# corresponds to the "Summary" metadata field:
Expand Down
2 changes: 1 addition & 1 deletion src/asleep/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def read(filepath, resample_hz='uniform'):

data, info = actipy.read_device(
filepath,
lowpass_hz=20,
lowpass_hz=15,
calibrate_gravity=True,
detect_nonwear=False,
resample_hz=resample_hz,
Expand Down

0 comments on commit 05d7c03

Please sign in to comment.