6e670b4c66cd96a347e72f14e9380b0606515083,deepmedic/dataManagement/sampling.py,,load_subj_and_get_samples,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,235

Before Change


        // Check if the weight map is fully-zeros. In this case, don"t call the sampling function, just continue.
        // Note that this way, the data loaded on GPU will not be as much as I initially wanted. Thus calculate number-of-batches from this actual number of extracted segments.
        if np.sum(sampling_map>0) == 0 :
            log.print3(id_str+" WARN: Sampling mask/map was found just zeros! No [" + cat_string + "] samples for this subject!")
            continue
        
        coords_of_samples = sample_coords_of_segments(log,
                                            job_i,

After Change


        n_samples_for_cat = n_samples_per_cat[cat_i]
        sampling_map = sampling_maps_per_cat[cat_i]
        // Check if the class is valid for sampling. Invalid if eg there is no such class in the subject"s manual segmentation.
        if not valid_cats[cat_i] :
            log.print3(id_str+" WARN: Invalid sampling category! Sampling map just zeros! No [" + cat_string + "] samples from this subject!")
            assert n_samples_for_cat == 0
            continue
        
        coords_of_samples = sample_coords_of_segments(log,
                                            job_i,
                                            n_samples_for_cat,
                                            dims_highres_segment,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Kamnitsask/deepmedic
Commit Name: 6e670b4c66cd96a347e72f14e9380b0606515083
Time: 2019-05-26
Author: konstantinos.kamnitsas12@imperial.ac.uk
File Name: deepmedic/dataManagement/sampling.py
Class Name:
Method Name: load_subj_and_get_samples


Project Name: Kamnitsask/deepmedic
Commit Name: d1a8e0407fd6cee275b1e9c569f22780db1c5026
Time: 2019-02-11
Author: konstantinos.kamnitsas12@imperial.ac.uk
File Name: deepmedic/routines/training.py
Class Name:
Method Name: do_training


Project Name: Kamnitsask/deepmedic
Commit Name: 968bca03e3d4345a143d9f3d279fd05b5d8db87b
Time: 2019-02-10
Author: konstantinos.kamnitsas12@imperial.ac.uk
File Name: deepmedic/routines/training.py
Class Name:
Method Name: do_training