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 in ilastik connector: if unassigned pixel files in pixeldata folder (no labels can be assigend) #4

Open
cmohl2013 opened this issue Jun 25, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@cmohl2013
Copy link
Contributor

if in the pixeldata folder there are image files that cannot be assigned to a label image in the ilp project, a None is assigned

labelfilename: None
Traceback (most recent call last):
  File "/mnt/moehlc/idaf/IDAF_Projects/170512_max_neurite_classification/code/venv_animate_yapic_vs01/bin/yapic", line 11, in <module>
    load_entry_point('yapic-cli', 'console_scripts', 'yapic')()
  File "/mnt/moehlc/idaf/IDAF_Projects/170512_max_neurite_classification/code/yapic_vs01/yapic_cli/yapic_cli/main.py", line 99, in entry_point
    res = main(arguments)
  File "/mnt/moehlc/idaf/IDAF_Projects/170512_max_neurite_classification/code/yapic_vs01/yapic_cli/yapic_cli/main.py", line 90, in main
    res = train(args)
  File "/mnt/moehlc/idaf/IDAF_Projects/170512_max_neurite_classification/code/yapic_vs01/yapic_cli/yapic_cli/train.py", line 138, in train
    val_fraction)
  File "/mnt/moehlc/idaf/IDAF_Projects/170512_max_neurite_classification/code/yapic_vs01/yapic_cli/yapic_cli/train.py", line 45, in import_training_data
    conn = io_connector(image_path, label_path).filter_labeled()
  File "/mnt/moehlc/idaf/IDAF_Projects/170512_max_neurite_classification/code/yapic_vs01/yapic_io/yapic_io/connector.py", line 12, in io_connector
    return IlastikConnector(image_path, label_path, *args, **kwds)
  File "/mnt/moehlc/idaf/IDAF_Projects/170512_max_neurite_classification/code/yapic_vs01/yapic_io/yapic_io/tiff_connector.py", line 119, in __init__
    original_labels = self.original_label_values_for_all_images()
  File "/mnt/moehlc/idaf/IDAF_Projects/170512_max_neurite_classification/code/yapic_vs01/yapic_io/yapic_io/ilastik_connector.py", line 149, in original_label_values_for_all_images
    filename, (img, lbl, prediction) = self.ilp[label_filename]
  File "/mnt/moehlc/idaf/IDAF_Projects/170512_max_neurite_classification/code/venv_animate_yapic_vs01/lib/python3.5/site-packages/pyilastik/ilastik_storage_version_01.py", line 89, in __getitem__
    idx = self.image_path_list().index(i)
ValueError: 'None' is not in list
@cmohl2013 cmohl2013 added the bug Something isn't working label Jun 25, 2019
cmohl2013 added a commit to cmohl2013/yapic_io that referenced this issue Oct 1, 2020
…files in pixeldata folder no image can be assigned to ilastik labels
cmohl2013 added a commit that referenced this issue Oct 1, 2020
… in pixeldata folder no image can be assigned to ilastik labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant