Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: no keywords provided for dir_name_init when loading input data #156

Open
DereureErwan opened this issue Jan 28, 2025 · 0 comments
Open

Comments

@DereureErwan
Copy link

Bug description

In connectomics/data/dataset/build.py, line 351 the input loading works the following way:

volume, label, valid_mask = _get_input(cfg, mode, rank, dir_name_init, img_name_init, min_size=sample_volume_size)

However, if we look at the function _get_input definition:

def _get_input(cfg, mode='train', rank=None, preload_data=None, dir_name_init: Optional[list] = None, img_name_init: Optional[list] = None, min_size: Optional[tuple] = None, image_only_test: bool = True):

Which means that in line 351, dir_name_init will be used as preload_data in the _get_input function

Bug fix proposition

Changing line 351 by adding a keyword for dir_name_init:

volume, label, valid_mask = _get_input(cfg, mode, rank, dir_name_init=dir_name_init, img_name_init=img_name_init, min_size=sample_volume_size)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant