Skip to content

Commit db050fc

Browse files
updated README with new Zenodo upload
1 parent cfa8361 commit db050fc

File tree

3 files changed

+49
-7
lines changed

3 files changed

+49
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ You can set up an environment using [`uv`](https://github.com/astral-sh/uv) by r
77
uv sync
88
```
99

10-
To run the model, download the weights and testing dataset from the following link: [DeepFixel](https://zenodo.org/records/14962758).
10+
To run the model, download the weights and testing dataset from the following link: [https://zenodo.org/records/16587458](https://zenodo.org/records/16587458).
1111

1212
- Unzip and copy the testing data to `./test_data`
1313
- Put the weights in `./models/pretrained`

run_deep_fixel.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
kappa = 100
1414
n_fibers = 'both'
1515
healpix = True
16+
min_separation_angle = 0
1617
save_dir = "./models"
1718
test_dir = "./test_data"
1819

@@ -52,4 +53,7 @@
5253
test_dir=test_dir,
5354
gpu_id=gpu_id,
5455
healpix=healpix,
56+
use_dipy=True,
57+
min_separation_angle=min_separation_angle,
58+
is_symmetric=True
5559
)

run_pretrained_deep_fixel.py

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@
33

44
lr = 1e-3
55
batch_size = 512
6-
n_steps = 10000
7-
validation_patience = 5
86
loss = "MSE"
97
model = "mesh_mlp"
10-
gpu_id = 1
8+
gpu_id = 0
119
seed = 42
12-
mesh_subdivide = 3
10+
mesh_subdivide = 1
11+
healpix = True
1312
kappa = 100
13+
min_separation_angle = 0
1414
n_fibers = 'both'
15-
model_path = "./models/pretrained/best_model.pth"
15+
model_path = "./models/pretrained/best_model_mlp.pth"
1616
test_dir = "./test_data"
17-
output_dir = './outputs/pretrained'
17+
output_dir = './outputs/pretrained_mlp'
1818
amp_threshold = 0.1
1919

2020
deep_fixel.test_mesh_model(
21+
model=model,
2122
model_path=model_path,
2223
batch_size=batch_size,
2324
n_fibers=n_fibers,
@@ -27,4 +28,41 @@
2728
kappa=kappa,
2829
test_dir=test_dir,
2930
gpu_id=gpu_id,
31+
healpix=healpix,
32+
use_dipy=True,
33+
min_separation_angle=min_separation_angle,
34+
is_symmetric=True
35+
)
36+
37+
lr = 1e-3
38+
batch_size = 512
39+
loss = "MSE"
40+
model = "mesh_scnn"
41+
gpu_id = 0
42+
seed = 42
43+
mesh_subdivide = 1
44+
healpix = True
45+
kappa = 100
46+
min_separation_angle = 0
47+
n_fibers = 'both'
48+
model_path = "./models/pretrained/best_model_scnn.pth"
49+
test_dir = "./test_data"
50+
output_dir = './outputs/pretrained_scnn'
51+
amp_threshold = 0.1
52+
53+
deep_fixel.test_mesh_model(
54+
model=model,
55+
model_path=model_path,
56+
batch_size=batch_size,
57+
n_fibers=n_fibers,
58+
subdivide_mesh=mesh_subdivide,
59+
amp_threshold=amp_threshold,
60+
output_dir=output_dir,
61+
kappa=kappa,
62+
test_dir=test_dir,
63+
gpu_id=gpu_id,
64+
healpix=healpix,
65+
use_dipy=True,
66+
min_separation_angle=min_separation_angle,
67+
is_symmetric=True
3068
)

0 commit comments

Comments
 (0)