-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun_pretrained_deep_fixel.py
More file actions
68 lines (64 loc) · 1.41 KB
/
run_pretrained_deep_fixel.py
File metadata and controls
68 lines (64 loc) · 1.41 KB
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
58
59
60
61
62
63
64
65
66
67
68
import deep_fixel
from datetime import datetime
lr = 1e-3
batch_size = 512
loss = "MSE"
model = "mesh_mlp"
gpu_id = 0
seed = 42
mesh_subdivide = 1
healpix = True
kappa = 100
min_separation_angle = 0
n_fibers = 'both'
model_path = "./models/pretrained/best_model_mlp.pth"
test_dir = "./test_data"
output_dir = './outputs/pretrained_mlp'
amp_threshold = 0.1
deep_fixel.test_mesh_model(
model=model,
model_path=model_path,
batch_size=batch_size,
n_fibers=n_fibers,
subdivide_mesh=mesh_subdivide,
amp_threshold=amp_threshold,
output_dir=output_dir,
kappa=kappa,
test_dir=test_dir,
gpu_id=gpu_id,
healpix=healpix,
use_dipy=True,
min_separation_angle=min_separation_angle,
is_symmetric=True
)
lr = 1e-3
batch_size = 512
loss = "MSE"
model = "mesh_scnn"
gpu_id = 0
seed = 42
mesh_subdivide = 1
healpix = True
kappa = 100
min_separation_angle = 0
n_fibers = 'both'
model_path = "./models/pretrained/best_model_scnn.pth"
test_dir = "./test_data"
output_dir = './outputs/pretrained_scnn'
amp_threshold = 0.1
deep_fixel.test_mesh_model(
model=model,
model_path=model_path,
batch_size=batch_size,
n_fibers=n_fibers,
subdivide_mesh=mesh_subdivide,
amp_threshold=amp_threshold,
output_dir=output_dir,
kappa=kappa,
test_dir=test_dir,
gpu_id=gpu_id,
healpix=healpix,
use_dipy=True,
min_separation_angle=min_separation_angle,
is_symmetric=True
)