Marek Bukowicki commited on
Commit
36595a6
·
1 Parent(s): 5b32793

add 600MHz training

Browse files
Readme.md CHANGED
@@ -11,7 +11,7 @@ Python 3.9+
11
 
12
  GPU version (for training and inference)
13
  ```
14
- pip install -r requirements.txt
15
  ```
16
 
17
  CPU version (for inference, not recommended for training)
@@ -159,18 +159,30 @@ dic, data = ng.varian.read(varian_fid_path)
159
 
160
  If you want to train the network using the calibration data from our paper, follow the procedure below.
161
 
162
- 1. Download multiplets database and our SCRF file:
163
  ```
164
  python download_files.py --multiplets --SCRF --no-weights
165
  ```
 
 
166
  2. Configure run
167
- ```bash
168
- mkdir -p runs/repeat_paper_training
169
- cp configs/shimnet_700.yaml runs/repeat_paper_training/config.yaml
170
- ```
 
 
 
 
 
 
171
  3. Run training:
172
  ```
173
- python train.py runs/repeat_paper_training
 
 
 
 
174
  ```
175
- Training results will appear in `runs/repeat_paper_training` directory.
176
 
 
11
 
12
  GPU version (for training and inference)
13
  ```
14
+ pip install -r requirements-gpu.txt
15
  ```
16
 
17
  CPU version (for inference, not recommended for training)
 
159
 
160
  If you want to train the network using the calibration data from our paper, follow the procedure below.
161
 
162
+ 1. Download multiplets database and our SCRF files:
163
  ```
164
  python download_files.py --multiplets --SCRF --no-weights
165
  ```
166
+ or directly download from Google Drive and store in `data/` directory: [Response Functions 600MHz](https://drive.google.com/file/d/1J-DsPtaITXU3TFrbxaZPH800U1uIiwje/view?usp=sharing), [Response Functions 700MHz](https://drive.google.com/file/d/113al7A__yYALx_2hkESuzFIDU3feVtNY/view?usp=sharing), [Multiplets data](https://drive.google.com/file/d/1QGvV-Au50ZxaP1vFsmR_auI299Dw-Wrt/view?usp=sharing)
167
+
168
  2. Configure run
169
+ - For 600MHz spectrometer:
170
+ ```bash
171
+ mkdir -p runs/repeat_paper_training_600MHz
172
+ cp configs/shimnet_600.yaml runs/repeat_paper_training_600MHz/config.yaml
173
+ ```
174
+ - For 700 MHz spectrometer:
175
+ ```bash
176
+ mkdir -p runs/repeat_paper_training_700MHz
177
+ cp configs/shimnet_700.yaml runs/repeat_paper_training_700MHz/config.yaml
178
+ ```
179
  3. Run training:
180
  ```
181
+ python train.py runs/repeat_paper_training_600MHz
182
+ ```
183
+ or
184
+ ```
185
+ python train.py runs/repeat_paper_training_700MHz
186
  ```
187
+ Training results will appear in `runs/repeat_paper_training_600MHz` or `runs/repeat_paper_training_700MHz` directory.
188
 
configs/shimnet_600.yaml CHANGED
@@ -23,7 +23,7 @@ data:
23
  # Paste path to your SCRF file here
24
  # - Can be absolute path
25
  # - Can be relative to repository root
26
- - data/600hz-2-Lnative/scrf_81.pt
27
  atom_groups_data_file: data/multiplets_10000_parsed.txt
28
  response_function_stretch_min: 1.0
29
  response_function_stretch_max: 1.0
 
23
  # Paste path to your SCRF file here
24
  # - Can be absolute path
25
  # - Can be relative to repository root
26
+ - data/scrf_81_600MHz.pt
27
  atom_groups_data_file: data/multiplets_10000_parsed.txt
28
  response_function_stretch_min: 1.0
29
  response_function_stretch_max: 1.0
download_files.py CHANGED
@@ -14,6 +14,10 @@ ALL_FILES_TO_DOWNLOAD = {
14
  "SCRF": [{
15
  "url": "https://drive.google.com/uc?export=download&id=113al7A__yYALx_2hkESuzFIDU3feVtNY",
16
  "destination": "data/scrf_61_700MHz.pt"
 
 
 
 
17
  }],
18
  "mupltiplets": [{
19
  "url": "https://drive.google.com/uc?export=download&id=1QGvV-Au50ZxaP1vFsmR_auI299Dw-Wrt",
@@ -38,7 +42,7 @@ def parse_args():
38
  dest='weights',
39
  help='Do not download weights file.',
40
  )
41
- parser.add_argument('--SCRF', action='store_true', help='Download SCRF file')
42
  parser.add_argument('--multiplets', action='store_true', help='Download multiplets data file')
43
  parser.add_argument('--development', action='store_true', help='Download development weights file')
44
 
 
14
  "SCRF": [{
15
  "url": "https://drive.google.com/uc?export=download&id=113al7A__yYALx_2hkESuzFIDU3feVtNY",
16
  "destination": "data/scrf_61_700MHz.pt"
17
+ },
18
+ {
19
+ "url": "https://drive.google.com/uc?export=download&id=1J-DsPtaITXU3TFrbxaZPH800U1uIiwje",
20
+ "destination": "data/scrf_81_600MHz.pt"
21
  }],
22
  "mupltiplets": [{
23
  "url": "https://drive.google.com/uc?export=download&id=1QGvV-Au50ZxaP1vFsmR_auI299Dw-Wrt",
 
42
  dest='weights',
43
  help='Do not download weights file.',
44
  )
45
+ parser.add_argument('--SCRF', action='store_true', help='Download SCRF files - Shim Coil Response Functions')
46
  parser.add_argument('--multiplets', action='store_true', help='Download multiplets data file')
47
  parser.add_argument('--development', action='store_true', help='Download development weights file')
48
 
requirements.txt → requirements-gpu.txt RENAMED
File without changes