Пример #1
0
        meta_crops_hist_path=t2s_model.train_metacrop_history_path,
    )

    # ## Val

    data = voldata_val
    labels = vollabels_val

    volume_shape = data.shape

    grid_pos_gen = SequentialGridPosition.build_min_overlap(
        volume_shape=volume_shape,
        crop_shape=crop_shape,

        # [manual-input]
        # reduce the total number of crops
        #         n_steps_x=11,
        #         n_steps_y=11,
        n_steps_z=10,
    )

    crop_seq_val = VolumeCropSequence(

        data_volume=data,
        labels_volume=labels,

        batch_size=batch_size,

        # go through all the crops in validation
        epoch_size=len(grid_pos_gen),
Пример #2
0
        **vol_crop_seq_common_kwargs,
        meta_crops_hist_path=t2s_model.train_metacrop_history_path,
    )

    # ## Val

    data = voldata_val
    labels = vollabels_val

    volume_shape = data.shape

    grid_pos_gen = SequentialGridPosition.build_min_overlap(
        volume_shape=volume_shape,
        crop_shape=crop_shape,

        # [manual-input]
        # reduce the total number of crops
        n_steps_x=9,  # same as the 2d/2.5d
        n_steps_y=7,
        n_steps_z=10,
    )

    crop_seq_val = VolumeCropSequence(
        data_volume=data,
        labels_volume=labels,
        batch_size=batch_size,

        # go through all the crops in validation
        epoch_size=len(grid_pos_gen),

        # data augmentation
        meta_crop_generator=MetaCrop3DGenerator.build_no_augmentation(