Upload folder using huggingface_hub
Browse files- README.md +45 -38
- hparams.yaml +1 -0
- model_weights.pth +2 -2
- model_weights_original.pth +3 -0
- training_info.json +8 -4
README.md
CHANGED
|
@@ -9,50 +9,57 @@ metrics:
|
|
| 9 |
# Model Card for ECGDenoiser
|
| 10 |
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
|
| 49 |
# Example
|
| 50 |
|
| 51 |
-
import
|
| 52 |
|
| 53 |
-
|
| 54 |
|
| 55 |
-
model =
|
| 56 |
|
| 57 |
signal = torch.rand(1, 100, 1) # Example input signal
|
| 58 |
|
|
|
|
| 9 |
# Model Card for ECGDenoiser
|
| 10 |
|
| 11 |
|
| 12 |
+
Collection: NeuralLib: Deep Learning Models for Biosignals Processing
|
| 13 |
+
|
| 14 |
+
Description: GRU-based model for ECG noise removal. Model and results published in the paper 'Cleaning ECG with Deep Learning: A Denoiser Tested in Industrial Settings'
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
- **Architecture**: GRUseq2seq
|
| 18 |
+
- **Model Name**: ECGDenoiser
|
| 19 |
+
- **Task**: ecg denoising: removing MA, BW and EM noise
|
| 20 |
+
- **Train Dataset**: PTB-XL+MIT-BIH-Noise-Stress-Test-Database
|
| 21 |
+
|
| 22 |
+
Biosignal(s): ECG
|
| 23 |
+
|
| 24 |
+
Sampling frequency: 360
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
# Benchmark Results
|
| 28 |
+
|
| 29 |
+
**Validation Loss**: 0.0000
|
| 30 |
+
|
| 31 |
+
**Training Time**: 0.00 seconds
|
| 32 |
+
|
| 33 |
+
**FLOPs per timestep**: 0
|
| 34 |
+
|
| 35 |
+
**Number of trainable parameters**: 26121
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
# Hyperparameters
|
| 40 |
+
|
| 41 |
+
| Parameter | Value |
|
| 42 |
+
|-----------|-------|
|
| 43 |
+
| bidirectional | True |
|
| 44 |
+
| dropout | 0 |
|
| 45 |
+
| hid_dim | [64, 64] |
|
| 46 |
+
| learning_rate | 0.005 |
|
| 47 |
+
| model_name | ECGDenoiser |
|
| 48 |
+
| multi_label | False |
|
| 49 |
+
| n_features | 1 |
|
| 50 |
+
| n_layers | 2 |
|
| 51 |
+
| num_classes | NA |
|
| 52 |
+
| task | regression |
|
| 53 |
+
| fc_out_bool | False |
|
| 54 |
|
| 55 |
|
| 56 |
# Example
|
| 57 |
|
| 58 |
+
import NeuralLib.model_hub as mh
|
| 59 |
|
| 60 |
+
model_name = ECGDenoiser()
|
| 61 |
|
| 62 |
+
model = mh.ProductionModel(model_name=model_name)
|
| 63 |
|
| 64 |
signal = torch.rand(1, 100, 1) # Example input signal
|
| 65 |
|
hparams.yaml
CHANGED
|
@@ -10,3 +10,4 @@ n_features: 1
|
|
| 10 |
n_layers: 2
|
| 11 |
num_classes: NA
|
| 12 |
task: regression
|
|
|
|
|
|
| 10 |
n_layers: 2
|
| 11 |
num_classes: NA
|
| 12 |
task: regression
|
| 13 |
+
fc_out_bool: false
|
model_weights.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b04c18e6862488314f14c1c4a39a1d582bb022aebe016dc72af08586961cfd5a
|
| 3 |
+
size 107002
|
model_weights_original.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:176e109c8b4e8210536c6911c4c549eaadef63a3bde21d548a4983ed7834abc8
|
| 3 |
+
size 106407
|
training_info.json
CHANGED
|
@@ -1,13 +1,17 @@
|
|
| 1 |
{
|
| 2 |
"architecture": "GRUseq2seq",
|
| 3 |
-
"
|
| 4 |
"train_dataset": "PTB-XL+MIT-BIH-Noise-Stress-Test-Database",
|
|
|
|
|
|
|
| 5 |
"task": "ecg denoising: removing MA, BW and EM noise",
|
| 6 |
"gpu_model": "NVIDIA GeForce GTX 1080 Ti",
|
| 7 |
"epochs": 200,
|
| 8 |
"optimizer": "Adam",
|
| 9 |
"learning_rate": 0.005,
|
| 10 |
-
"validation_loss":
|
| 11 |
-
"training_time":
|
| 12 |
-
"retraining": false
|
|
|
|
|
|
|
| 13 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"architecture": "GRUseq2seq",
|
| 3 |
+
"model_name": "ECGDenoiser",
|
| 4 |
"train_dataset": "PTB-XL+MIT-BIH-Noise-Stress-Test-Database",
|
| 5 |
+
"biosignal": "ECG",
|
| 6 |
+
"sampling_frequency": 360,
|
| 7 |
"task": "ecg denoising: removing MA, BW and EM noise",
|
| 8 |
"gpu_model": "NVIDIA GeForce GTX 1080 Ti",
|
| 9 |
"epochs": 200,
|
| 10 |
"optimizer": "Adam",
|
| 11 |
"learning_rate": 0.005,
|
| 12 |
+
"validation_loss": 0,
|
| 13 |
+
"training_time": 0,
|
| 14 |
+
"retraining": false,
|
| 15 |
+
"efficiency_flops": 0,
|
| 16 |
+
"efficiency_params": 26121
|
| 17 |
}
|