I managed to produce TOM but I've some difficulties when I try to perform the tracking step :
(base) clementjean@MacBook-Pro DWI % Tracking -i peaks.nii.gz
0%| | 0/72 [00:03<?, ?it/s]
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/Users/clementjean/opt/anaconda3/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, *kwds))
File "/Users/clementjean/opt/anaconda3/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar
return list(map(args))
File "/Users/clementjean/opt/anaconda3/lib/python3.8/site-packages/tractseg/libs/tractseg_prob_tracking.py", line 157, in process_seedpoint
streamline_part1, length_1 = process_one_way(peaks, streamline1, max_nr_steps, step_size, probabilistic,
File "/Users/clementjean/opt/anaconda3/lib/python3.8/site-packages/tractseg/libs/tractseg_prob_tracking.py", line 52, in process_one_way
dir_raw = get_at_idx(peaks, (last_point[0], last_point[1], last_point[2]))
File "/Users/clementjean/opt/anaconda3/lib/python3.8/site-packages/tractseg/libs/tractseg_prob_tracking.py", line 43, in get_at_idx
return img[int(idx[0]), int(idx[1]), int(idx[2])]
TypeError: 'NoneType' object is not subscriptable
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/clementjean/opt/anaconda3/bin/Tracking", line 168, in
main()
File "/Users/clementjean/opt/anaconda3/bin/Tracking", line 158, in main
tracking.track(bundle, input_path, Config.PREDICT_IMG_OUTPUT,
File "/Users/clementjean/opt/anaconda3/lib/python3.8/site-packages/tractseg/libs/tracking.py", line 220, in track
streamlines = tractseg_prob_tracking.track(tom_peaks, max_nr_fibers=nr_fibers, smooth=5,
File "/Users/clementjean/opt/anaconda3/lib/python3.8/site-packages/tractseg/libs/tractseg_prob_tracking.py", line 263, in track
streamlines_tmp = pool.map(partial(process_seedpoint, next_step_displacement_std=next_step_displacement_std,
File "/Users/clementjean/opt/anaconda3/lib/python3.8/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/Users/clementjean/opt/anaconda3/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
TypeError: 'NoneType' object is not subscriptable
Hi everyone !
I managed to produce TOM but I've some difficulties when I try to perform the tracking step :
(base) clementjean@MacBook-Pro DWI % Tracking -i peaks.nii.gz 0%| | 0/72 [00:03<?, ?it/s] multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/Users/clementjean/opt/anaconda3/lib/python3.8/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, *kwds)) File "/Users/clementjean/opt/anaconda3/lib/python3.8/multiprocessing/pool.py", line 48, in mapstar return list(map(args)) File "/Users/clementjean/opt/anaconda3/lib/python3.8/site-packages/tractseg/libs/tractseg_prob_tracking.py", line 157, in process_seedpoint streamline_part1, length_1 = process_one_way(peaks, streamline1, max_nr_steps, step_size, probabilistic, File "/Users/clementjean/opt/anaconda3/lib/python3.8/site-packages/tractseg/libs/tractseg_prob_tracking.py", line 52, in process_one_way dir_raw = get_at_idx(peaks, (last_point[0], last_point[1], last_point[2])) File "/Users/clementjean/opt/anaconda3/lib/python3.8/site-packages/tractseg/libs/tractseg_prob_tracking.py", line 43, in get_at_idx return img[int(idx[0]), int(idx[1]), int(idx[2])] TypeError: 'NoneType' object is not subscriptable """
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/Users/clementjean/opt/anaconda3/bin/Tracking", line 168, in
main()
File "/Users/clementjean/opt/anaconda3/bin/Tracking", line 158, in main
tracking.track(bundle, input_path, Config.PREDICT_IMG_OUTPUT,
File "/Users/clementjean/opt/anaconda3/lib/python3.8/site-packages/tractseg/libs/tracking.py", line 220, in track
streamlines = tractseg_prob_tracking.track(tom_peaks, max_nr_fibers=nr_fibers, smooth=5,
File "/Users/clementjean/opt/anaconda3/lib/python3.8/site-packages/tractseg/libs/tractseg_prob_tracking.py", line 263, in track
streamlines_tmp = pool.map(partial(process_seedpoint, next_step_displacement_std=next_step_displacement_std,
File "/Users/clementjean/opt/anaconda3/lib/python3.8/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/Users/clementjean/opt/anaconda3/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
TypeError: 'NoneType' object is not subscriptable
Can someone help me ? Thanks