Sample code
run-ilastik.bat --headless
--project path\to\the\project.ilp
--raw_data="path\to\the\picture.tif"
--probabilities="path\to\the\picture_Probabilities.h5"
--input_axes=zyx
--export_dtype float32
--export_source="object indentities"
--output_filename_format="{dataset_dir}/{nickname}_{result_type}.tiff"
--output_format="multipage tiff"
Error
ERROR 2021-01-14 16:58:50,100 log_exception 3068 14032 Traceback (most recent call last):
File "C:\Program Files\ilastik-1.3.3post3\ilastik-meta\ilastik\ilastik\shell\projectManager.py", line 467, in _loadProject
self.workflow.onProjectLoaded(self)
File "C:\Program Files\ilastik-1.3.3post3\ilastik-meta\ilastik\ilastik\workflows\objectClassification\objectClassificationWorkflow.py", line 352, in onProjectLoaded
self.batchProcessingApplet.run_export_from_parsed_args(self._batch_input_args)
File "C:\Program Files\ilastik-1.3.3post3\ilastik-meta\ilastik\ilastik\applets\batchProcessing\batchProcessingApplet.py", line 64, in run_export_from_parsed_args
return self.run_export(role_path_dict, parsed_args.input_axes, sequence_axis=parsed_args.stack_along)
File "C:\Program Files\ilastik-1.3.3post3\ilastik-meta\ilastik\ilastik\applets\batchProcessing\batchProcessingApplet.py", line 118, in run_export
progress_callback=partial(lerpProgressSignal, global_progress_start, global_progress_end),
File "C:\Program Files\ilastik-1.3.3post3\ilastik-meta\ilastik\ilastik\applets\batchProcessing\batchProcessingApplet.py", line 180, in export_dataset
logger.info(f"Exporting to {opDataExport.ExportPath.value}")
File "C:\Program Files\ilastik-1.3.3post3\ilastik-meta\lazyflow\lazyflow\slot.py", line 1015, in value
temp = self[:].wait()
File "C:\Program Files\ilastik-1.3.3post3\ilastik-meta\lazyflow\lazyflow\slot.py", line 958, in __getitem__
raise Slot.SlotNotReadyError(slotInfoMsg)
lazyflow.slot.Slot.SlotNotReadyError: Can't get data from slot <class 'ilastik.utility.opMultiLaneWrapper.OpMultiLaneWrapper'>.ExportPath yet. It isn't ready.First upstream problem slot is: OpExportSlot/OpExportSlot.Input []: {_ready : False, shape : None, has_mask : None, _dirty : True}
ERROR 2021-01-14 16:58:50,102 log_exception 3068 14032 Project could not be loaded due to the exception shown above.
Background
I am trying to run this command from Windows terminal.
I already succeed in generating Simple_Segmentation_multipage.tiff and Picture_Probabilities.h5 with other previous commands.
Analysis goals
I am not sure how to provide this extra information (probabilities) and how to get an object_identities_multipage.tiff file as output.
I already did it manually successfully through the GUI but I would like to do it in the headless mode.
Challenges
-
How can I provide object identities as output_source? From the documentation doesn’t seem possible but from the GUI in Ilastik it is.
-
The dtype is set up to float32 because is the only way I figured out to be able to export a multipage tiff file with the labels on it.
Thank you in advance to everyone!
Best regards,
Miguel