def vol_seg(volpath, segpath, proc_vol_fn=None, proc_seg_fn=None, verbose=False, name='vol_seg', ext='.npz', nb_restart_cycle=None, nb_labels_reshape=(- 1), collapse_2d=None, force_binary=False, nb_input_feats=1, relabel=None, vol_rand_seed=None, seg_binary=False, vol_subname='norm', seg_subname='aseg', **kwargs):
    '\n    generator with (volume, segmentation)\n\n    verbose is passed down to the base generators.py primitive generator (e.g. vol, here)\n\n    ** kwargs are any named arguments for vol(...),\n        except verbose, data_proc_fn, ext, nb_labels_reshape and name\n            (which this function will control when calling vol())\n    '
    vol_gen = vol(volpath, **kwargs, ext=ext, nb_restart_cycle=nb_restart_cycle, collapse_2d=collapse_2d, force_binary=False, relabel=None, data_proc_fn=proc_vol_fn, nb_labels_reshape=1, name=(name + ' vol'), verbose=verbose, nb_feats=nb_input_feats, vol_rand_seed=vol_rand_seed)
    vol_files = [f.replace(vol_subname, seg_subname) for f in _get_file_list(volpath, ext, vol_rand_seed)]
    seg_gen = vol(segpath, **kwargs, ext=ext, nb_restart_cycle=nb_restart_cycle, collapse_2d=collapse_2d, force_binary=force_binary, relabel=relabel, vol_rand_seed=vol_rand_seed, data_proc_fn=proc_seg_fn, nb_labels_reshape=nb_labels_reshape, keep_vol_size=True, expected_files=vol_files, name=(name + ' seg'), binary=seg_binary, verbose=False)
    while 1:
        input_vol = next(vol_gen).astype('float16')
        output_vol = next(seg_gen).astype('float16')
        (yield (input_vol, output_vol))
generator with (volume, segmentation)

verbose is passed down to the base generators.py primitive generator (e.g. vol, here)

** kwargs are any named arguments for vol(...),
    except verbose, data_proc_fn, ext, nb_labels_reshape and name
        (which this function will control when calling vol())
def vol_seg(volpath, segpath, proc_vol_fn=None, proc_seg_fn=None, verbose=False, name='vol_seg', ext='.npz', nb_restart_cycle=None, nb_labels_reshape=(- 1), collapse_2d=None, force_binary=False, nb_input_feats=1, relabel=None, vol_rand_seed=None, seg_binary=False, vol_subname='norm', seg_subname='aseg', **kwargs):
    '\n    generator with (volume, segmentation)\n\n    verbose is passed down to the base generators.py primitive generator (e.g. vol, here)\n\n    ** kwargs are any named arguments for vol(...),\n        except verbose, data_proc_fn, ext, nb_labels_reshape and name\n            (which this function will control when calling vol())\n    '
    vol_gen = vol(volpath, **kwargs, ext=ext, nb_restart_cycle=nb_restart_cycle, collapse_2d=collapse_2d, force_binary=False, relabel=None, data_proc_fn=proc_vol_fn, nb_labels_reshape=1, name=(name + ' vol'), verbose=verbose, nb_feats=nb_input_feats, vol_rand_seed=vol_rand_seed)
    vol_files = [f.replace(vol_subname, seg_subname) for f in _get_file_list(volpath, ext, vol_rand_seed)]
    seg_gen = vol(segpath, **kwargs, ext=ext, nb_restart_cycle=nb_restart_cycle, collapse_2d=collapse_2d, force_binary=force_binary, relabel=relabel, vol_rand_seed=vol_rand_seed, data_proc_fn=proc_seg_fn, nb_labels_reshape=nb_labels_reshape, keep_vol_size=True, expected_files=vol_files, name=(name + ' seg'), binary=seg_binary, verbose=False)
    while 1:
        input_vol = next(vol_gen).astype('float16')
        output_vol = next(seg_gen).astype('float16')
        (yield (input_vol, output_vol))