From e2f67ac8c389b1c92973d208391d2d9da312c6db Mon Sep 17 00:00:00 2001 From: lispczz Date: Fri, 23 Aug 2019 08:53:28 +0000 Subject: [PATCH 1/2] fix datapath --- examples/cinc17/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cinc17/setup.sh b/examples/cinc17/setup.sh index 7d2fd311..b678f0a5 100755 --- a/examples/cinc17/setup.sh +++ b/examples/cinc17/setup.sh @@ -1,6 +1,6 @@ #!/bin/bash -url=https://www.physionet.org/challenge/2017/ +url=https://archive.physionet.org/challenge/2017/ mkdir data && cd data From 53fa669f41587e3a294adb45f34746668e9b50ab Mon Sep 17 00:00:00 2001 From: "felix.grzelka" Date: Fri, 22 Nov 2019 23:21:59 +0000 Subject: [PATCH 2/2] fix num_labels not being an int by using floor division --- examples/cinc17/build_datasets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cinc17/build_datasets.py b/examples/cinc17/build_datasets.py index f889c6c7..0a0272c0 100644 --- a/examples/cinc17/build_datasets.py +++ b/examples/cinc17/build_datasets.py @@ -20,7 +20,7 @@ def load_all(data_path): ecg_file = os.path.join(data_path, record + ".mat") ecg_file = os.path.abspath(ecg_file) ecg = load_ecg_mat(ecg_file) - num_labels = ecg.shape[0] / STEP + num_labels = ecg.shape[0] // STEP dataset.append((ecg_file, [label]*num_labels)) return dataset