25508c13627f06510f3cab96d742360b0187640a,tests/windows_aggregator_grid_v2_test.py,GridSamplesAggregatorTest,test_init_2d_mo,#GridSamplesAggregatorTest#,413
Before Change
sampler.set_num_threads(2)
while more_batch:
out = sess.run(sampler.pop_batch_op())
min_val = np.sum((np.asarray(out["image"]).flatten()))
stats_val = [np.min(out), np.max(out), np.sum(out)]
more_batch = aggregator.decode_batch(
{"window_image":out["image"], "csv_sum":min_val},
out["image_location"])
output_filename = "window_image_{}_niftynet_out.nii.gz".format(
After Change
with self.cached_session() as sess:
sampler.set_num_threads(2)
while more_batch:
out = sess.run(sampler.pop_batch_op())
out_flatten = np.reshape(np.asarray(out["image"]), [10, -1])
min_val = np.sum(np.reshape(np.asarray(out["image"]),
[10,-1]),1)
stats_val = np.concatenate([np.min(out_flatten,1,
keepdims=True), np.max(
out_flatten, 1,keepdims=True), np.sum(
out_flatten,1,keepdims=True)],1)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 13
Instances
Project Name: NifTK/NiftyNet
Commit Name: 25508c13627f06510f3cab96d742360b0187640a
Time: 2019-06-29
Author: carole.sudre@kcl.ac.uk
File Name: tests/windows_aggregator_grid_v2_test.py
Class Name: GridSamplesAggregatorTest
Method Name: test_init_2d_mo
Project Name: NifTK/NiftyNet
Commit Name: 25508c13627f06510f3cab96d742360b0187640a
Time: 2019-06-29
Author: carole.sudre@kcl.ac.uk
File Name: tests/windows_aggregator_grid_v2_test.py
Class Name: GridSamplesAggregatorTest
Method Name: test_3d_init_mo
Project Name: NifTK/NiftyNet
Commit Name: 16120dfa28abb4ee21d6beb04bf235633e413bfa
Time: 2019-06-08
Author: carole.sudre@kcl.ac.uk
File Name: tests/windows_aggregator_grid_v2_test.py
Class Name: GridSamplesAggregatorTest
Method Name: test_3d_init_mo
Project Name: NifTK/NiftyNet
Commit Name: 16120dfa28abb4ee21d6beb04bf235633e413bfa
Time: 2019-06-08
Author: carole.sudre@kcl.ac.uk
File Name: tests/windows_aggregator_grid_v2_test.py
Class Name: GridSamplesAggregatorTest
Method Name: test_init_2d_mo
Project Name: NifTK/NiftyNet
Commit Name: 25508c13627f06510f3cab96d742360b0187640a
Time: 2019-06-29
Author: carole.sudre@kcl.ac.uk
File Name: tests/windows_aggregator_grid_v2_test.py
Class Name: GridSamplesAggregatorTest
Method Name: test_init_2d_mo