-
Notifications
You must be signed in to change notification settings - Fork 1
/
Run_Instructions.txt
57 lines (44 loc) · 1.66 KB
/
Run_Instructions.txt
1
2
3
4
5
6
7
8
9
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
50
51
52
53
54
55
56
57
To run the python files:
Insure you have these minimum packages installed:
-Install pytorch and torchvision
-pip install -r requirements.txt
These are the minimum requirements. We ran on higher versions with no issues.
Insure you have the datasets installed and saved somewhere locally. The folders should have the following format:
├── Data
├── NTU-Fi_HAR
│ ├── test_amp
│ ├── train_amp
├── NTU-Fi-HumanID
│ ├── test_amp
│ ├── train_amp
├── UT_HAR
│ ├── data
│ ├── label
├── Widardata
│ ├── test
│ ├── train
To run the code use the following command: python run.py --model [model name] --dataset [dataset name]
where [model name] is:
MLP
LeNet
ResNet18
ResNet50
ResNet101
RNN
GRU
LSTM
BiLSTM
CNN+GRU
ViT
and [dataset name] is:
UT_HAR_data
NTU-Fi-HumanID
NTU-Fi_HAR
Widar
Review the code if you are planning to downsample, the run.py, dataset.py, and whichever dataset_model.py file you are using i.e. if using NTU-Fi_HAR make the necessary edits to the NTU_Fi_model.py file. The code has been commented with where to edit depending on the input matrix size.
To run the matlab file:
Download the .m file and the dataset that can be found in the source document. In matlab pass the following command:
>>load('dataset_lab_276_dl.mat')
>>[net_info, perf] = signfi_cnn_example(csid_lab,label_lab)
Code has been commented with where to edit to downsample.
For additional help, contact Emmanuel Magana Mendez ([email protected]) or Pooya Aghanoury ([email protected]).